Skip to contentSkip to conversation

More on compiling alsa-lib with uclibc

DISCUSSION Adrian McMenamin 2 participants 2 messages Nov 30, 2005 – Dec 1, 2005

lore
Share & tools
lore
#0 lore raw

I have worked through the source files patching them as I go, but now have a linker problem (this is a ia32 to sh4 cross compile). I will post a patch shortly to both lists that fixes all the compile problems - but not this linker issue...

Can someone offer me guidance as to what is wrong below?

fi
/bin/sh ../libtool
--mode=link /home/adrian/buildroot/build_sh4/staging_dir/sh4-linux-uclibc/bin/gcc -g -O2 -o aserver aserver.o ../src/libasound.la
mkdir .libs
/home/adrian/buildroot/build_sh4/staging_dir/sh4-linux-uclibc/bin/gcc -g
-O2 -o aserver aserver.o ../src/.libs/libasound.a -lm -ldl -lpthread /home/adrian/buildroot/build_sh4/staging_dir/sh4-linux-uclibc/bin/../lib/gcc/sh4-linux-uclibc/3.4.2/../../../../sh4-linux-uclibc/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
make[1]: *** [aserver] Error 1
make[1]: Leaving directory `/home/adrian/alsa-lib-1.0.10/aserver'
make: *** [all-recursive] Error 1

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#1 lore raw

At Wed, 30 Nov 2005 23:06:53 +0000,

Quoted 7 lines · Adrian McMenamin

I have worked through the source files patching them as I go, but now have a linker problem (this is a ia32 to sh4 cross compile). I will post a patch shortly to both lists that fixes all the compile problems - but not this linker issue...

Can someone offer me guidance as to what is wrong below?

Obviously, ulibc has no libpthread.
Remove -lpthread from libasound_la_LDFLAGS in src/Makefile.am.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click