Re: alsa-lib: alsa.pc's Libs shouldn't contain -lm -ldl -lpthread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

r10 kindsofpeople wrote:
> Please forgive my ignorance, but how can I work around this?
>
> I tried editing utils/alsa.pc.in as you indicate and re-running ./configure, 
> with no change.
>
> John
>   
if you build alsa library without those linkage, you'll have undefined
reference to some functions (and btw your library will not be built):

gcc -g -O2 -o .libs/aserver aserver.o  ../src/.libs/libasound.so
../src/.libs/libasound.so: undefined reference to `log'
../src/.libs/libasound.so: undefined reference to `sqrt'
../src/.libs/libasound.so: undefined reference to `pthread_create'
../src/.libs/libasound.so: undefined reference to `sqrtf'
../src/.libs/libasound.so: undefined reference to `dladdr'
../src/.libs/libasound.so: undefined reference to `dlclose'
../src/.libs/libasound.so: undefined reference to `rint'
../src/.libs/libasound.so: undefined reference to `fmod'
../src/.libs/libasound.so: undefined reference to `dlopen'
../src/.libs/libasound.so: undefined reference to `pow'
../src/.libs/libasound.so: undefined reference to `log10'
../src/.libs/libasound.so: undefined reference to `dlsym'
../src/.libs/libasound.so: undefined reference to `exp'
../src/.libs/libasound.so: undefined reference to `pthread_mutex_trylock'
../src/.libs/libasound.so: undefined reference to `pthread_join'

pthread_* => libpthread
dl* => libdl
others => libm

why do you want to remove those dependencies ?

Hope that helps you,

Ben


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux