[linux-audio-dev] calling snd_seq_open in dynamically linked code

Josh Green jgreen at users.sourceforge.net
Sun Jan 26 14:21:01 UTC 2003


On Sat, 2003-01-25 at 17:08, Dave Griffiths wrote:
> I'm getting errors when I call snd_seq_open in a plugin, which go away in a standalone test app:
> 
> ALSA lib dlmisc.c:100:(snd_dlsym_verify) unable to verify version for symbol snd_config_hook_load
> ALSA lib conf.c:2655:(snd_config_hooks_call) symbol snd_config_hook_load is not defined inside (null)
> ALSA lib conf.c:3066:(snd_config_update_r) hooks failed, removing configuration
> 
> calling: snd_seq_open(&seq_handle, "default", SND_SEQ_OPEN_INPUT, 0)
> 
> What could be the reason for this?
> 
> cheers,
> 
> dave

I seem to remember having to pass a RTLD_GLOBAL flag to the dlopen call
that loads your plugin. Not sure of the exact details, but that flag
causes the symbols of subsequently loaded libraries to become global
(which is necessary for alsalib). Cheers.
	Josh Green




More information about the Linux-audio-dev mailing list