On Thu, 2012-03-08 at 12:43 +0100, Clemens Ladisch wrote:
Jonathan Andrews wrote:
On Thu, 2012-03-08 at 10:55 +0100, Clemens Ladisch wrote:
Jonathan Andrews wrote:
I'm using this script to build both static and dynamic versions of the alsalib. Can you check the configure arguments are correct.
They look correct.
Tried to compile my application, still fails asking for pthreads.
The configure.in file contains the patch, but the generated configure script does not have it (although its time stamp is newer). Please ensure that you've run autoconf (although make should do this automatically).
Getting closer, alsalib now builds without the need for pthreads but seems to insist on dlopen dlclose even in static lib ?
Compiling udp-many-way-audio-rx.c -> udp-many-way-audio-rx_alsa_arms (static) /usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/lib/libasound.a(pcm_dshare.o): In function `snd_pcm_dshare_sync_ptr': pcm_dshare.c:(.text+0x6a4): warning: Warning: snd_pcm_hwsync() is deprecated, consider to use snd_pcm_avail() /usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/lib/libasound.a(pcm_direct.o): In function `snd1_pcm_direct_parse_open_conf': pcm_direct.c:(.text+0x58c8): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/lib/libasound.a(pcm_shm.o): In function `_snd_pcm_shm_open': pcm_shm.c:(.text+0x27dc): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/lib/libasound.a(dlmisc.o): In function `snd_dlopen': dlmisc.c:(.text+0x38): undefined reference to `dlopen' /usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/lib/libasound.a(dlmisc.o): In function `snd_dlclose': dlmisc.c:(.text+0x90): undefined reference to `dlclose' /usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/lib/libasound.a(dlmisc.o): In function `snd_dlsym_verify': dlmisc.c:(.text+0x190): undefined reference to `dlsym' /usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/lib/libasound.a(dlmisc.o): In function `snd_dlsym': dlmisc.c:(.text+0x2f8): undefined reference to `dlsym' /usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/lib/libasound.a(pcm_ladspa.o): In function `snd_pcm_ladspa_free_plugins': pcm_ladspa.c:(.text+0x3cc): undefined reference to `dlclose' /usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/lib/libasound.a(pcm_ladspa.o): In function `snd_pcm_ladspa_check_file': pcm_ladspa.c:(.text+0x41c4): undefined reference to `dlopen' pcm_ladspa.c:(.text+0x41e4): undefined reference to `dlsym' pcm_ladspa.c:(.text+0x4250): undefined reference to `dlclose' pcm_ladspa.c:(.text+0x4344): undefined reference to `dlclose' pcm_ladspa.c:(.text+0x43b0): undefined reference to `dlclose' collect2: ld returned 1 exit status ~