alsalib symbol problem
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Paul Davis
the problem is that libasound itself calls
dlopen(), and the initial (non-RTLD_GLOBAL) linkage hasn't put libasound's symbol into the global namespace. hence, libasound's own dlopen'ed code can't access libasound itself.
I know, that's why I suggested to not do dlopen(NULL, ...) inside libasound (see the code from my previous mail).
Juergen
Signature · 8 lines
Juergen Kreileder, Blackdown Java-Linux Team http://www.blackdown.org/java-linux/java2-status/ ------------------------------------------------------- Sponsored by: AMD - Your access to the experts on Hammer Technology! Open Source & Linux Developers, register now for the AMD Developer Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
Quoted 9 lines
Quoted 4 lines · Paul Davis
the problem is that libasound itself calls
dlopen(), and the initial (non-RTLD_GLOBAL) linkage hasn't put libasound's symbol into the global namespace. hence, libasound's own dlopen'ed code can't access libasound itself.I know, that's why I suggested to not do
dlopen(NULL, ...)inside libasound (see the code from my previous mail).
how does this help?
-------------------------------------------------------
Sponsored by: AMD - Your access to the experts on Hammer Technology! Open Source & Linux Developers, register now for the AMD Developer Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
At Tue, 17 Sep 2002 10:59:17 -0400,
Quoted 8 lines · Paul Davis
Quoted 8 lines
Quoted 4 lines · Paul Davis
the problem is that libasound itself calls
dlopen(), and the initial (non-RTLD_GLOBAL) linkage hasn't put libasound's symbol into the global namespace. hence, libasound's own dlopen'ed code can't access libasound itself.
Quoted 4 lines
Quoted 2 lines
I know, that's why I suggested to not do
dlopen(NULL, ...)inside libasound (see the code from my previous mail).how does this help?
it openes /usr/lib/libasound.so.2 (resolved from dladdr) explicitly, so you'll get symbols from the handle without referring to the global namespace.
this solution sounds nice to me -- if it really works ;)
can anyone test it?
Takashi
-------------------------------------------------------
Sponsored by: AMD - Your access to the experts on Hammer Technology! Open Source & Linux Developers, register now for the AMD Developer Symposium. Code: EX8664 http://www.developwithamd.com/developerlab