[vlc-devel] Re: AC_TRY_LINK ignores VLC_ADD_LDFLAGS?

Hakan Yilmaz yedekhesap34 at yahoo.com
Sat Feb 3 22:55:45 CET 2007


Hi,
   
  You need to install live555 and give its path to vlc configure option (check out the correct option syntax from configure help)--with-livelib = /usr/lib/live
   
  Hakan

Ismail Dönmez <ismail at pardus.org.tr> wrote:
  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
VLC_ADD_BUILTINS([live555])
VLC_ADD_LDFLAGS([live555], 
[-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.

Regards,
ismail

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



 
---------------------------------
Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070203/016f4ceb/attachment.html>


More information about the vlc-devel mailing list