alsalib symbol problem
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Paul Davis
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?
You don't have to use RTLD_GLOBAL when dlopening libasound.so or libraries linked with libasound.so anymore.
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
Thanks ! I guess Juergen's suggestion would be of general: a plugin should be able to link to libasound with -lasound without the need that the plugin itself is linked/dlopen()'ed with RTLD_GLOBAL. With increasing adoption of ALSA, we'll see such a scenario more and more...
On the practical side - how can I solve the problem ? I can't change the way my plugin is linked to the main app, so do I need to manually dlopen() libasound myself with the RTLD_GLOBAL flag (and not use -lasound ??)
Thanks,
Florian
Quoted 32 lines · Juergen Kreileder
Quoted 11 lines · Paul Davis
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?
You don't have to use
RTLD_GLOBALwhen dlopening libasound.so or libraries linked with libasound.so anymore.Juergen
--
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
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Signature · 10 lines
Florian Bomers Java Sound Java Software/Sun Microsystems, Inc. http://java.sun.com/products/java-media/sound/ ------------------------------------------------------- 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 3 lines · Florian Bomers
On the practical side - how can I solve the problem ? I can't change the way my plugin is linked to the main app, so do I need to manually
dlopen()libasound myself with theRTLD_GLOBALflag (and not use -lasound ??)
until your copy of alsa has jaroslav's recent addition, both. after, -lasound should do.
tim
-------------------------------------------------------
This SF.NET email is 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
Thanks - Juergen just pointed out a hack to me: define LD_PRELOAD=libasound.so . It works fine - until I'll be able to use Jaroslav's fix. Thanks Jaroslav, too!
Florian
Quoted 21 lines · Tim Goetze
Quoted 3 lines · Florian Bomers
On the practical side - how can I solve the problem ? I can't change the way my plugin is linked to the main app, so do I need to manually
dlopen()libasound myself with theRTLD_GLOBALflag (and not use -lasound ??)until your copy of alsa has jaroslav's recent addition, both. after, -lasound should do.
tim
-------------------------------------------------------
This SF.NET email is 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
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Signature · 11 lines
Florian Bomers Java Sound Java Software/Sun Microsystems, Inc. http://java.sun.com/products/java-media/sound/ ------------------------------------------------------- This SF.NET email is 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