[vlc-devel] AC_TRY_LINK ignores VLC_ADD_LDFLAGS?

Ismail Dönmez ismail at pardus.org.tr
Fri Feb 2 23:08:47 CET 2007

Hi all,

I am trying to enable live555 via --enable-live555 flag but config.log says :

cofigure:37201: checking for main in -lliveMedia
configure:37225: i686-pc-linux-gnu-g++ -o 
conftest -Wsign-compare -Wall -mtune=i686 -O2 -pipe -fomit-frame-pointer -pipe -DDATA_PATH=/usr/share/vlc 
-DSYS_LINUX -I/usr/include/liveMedia -I/usr/include/groupsock -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment  
conftest.cc -lliveMedia   >&5
 /usr/lib/gcc/i686-pc-linux-gnu/4.2.0/../../../libliveMedia.so: undefined 
reference to `our_inet_ntoa'
 /usr/lib/gcc/i686-pc-linux-gnu/4.2.0/../../../libliveMedia.so: undefined 
reference to `increaseReceiveBufferTo(UsageEnvironment&, int, unsigned int)'

[... lots of undefined references ... ]

now I noticed that its only linking to -lliveMedia 
ignoring -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment . 

But looking at configure.ac starting line 1561:

AC_CHECK_LIB(liveMedia, main, [
           # We only have -lliveMedia, do builtins
[-lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment])

looks like LDFLAGS added via VLC_ADD_LDFLAGS ignored by AC_TRY_LINK or am I 
missing something here? FWIW I regenerate configure with autoreconf -fi.

Any help appreciated.


This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html

More information about the vlc-devel mailing list