[Pkg-alsa-devel] undefined versioned symbol name snd_pcm_hw_params_get_buffer_size_max
Stephen Gaito
stephen@greyson-gaito.demon.co.uk
Sat, 03 Jul 2004 20:46:46 +0100
Hello,
I have found that if I try to statically link libasound.a into
HelixPlayer's ALSA driver I get the ld error:
undefined versioned symbol name
snd_pcm_hw_params_get_buffer_size_max@ALSA0.9
Which when I look at the source code for alsa-lib (1.0.5 taken from the
debian site), this method has multiple versions for symbolic linking.
I noticed on the web the following two references:
http://www.linuxfromscratch.org/blfs/view/stable/multimedia/alsa-lib.html
and
http://lecs.cs.ucla.edu/~hbwang/stargate/audio/alsa-compile.txt
They both suggest that the libasound.a static library should be compiled
from an alsa-lib package which has been configured with
--enable-static=yes and --enable-shared=no. Upon doing this on my
machine I found this linkage error diasappeared since the multiple
versions were no longer found in the libasound.a library.
I noticed at least one other person on the web who has had the same
problem compiling a different package (though I don't know if they were
using debian's libasound2-dev package).
http://mythtv.org/pipermail/mythtv-dev/2004-June/022857.html
I do not know if this is a bug in the libasound2-dev package or a
misunderstanding on my part... I would love your comments before I
formally raise this issue as a bug.
Cheers!
Stephen Gaito