[vlc-devel] Re: compile error using FC6

Bernie Purcell b.purcell at adbglobal.com
Thu May 24 01:44:20 CEST 2007


On Wed, 2007-05-23 at 22:45 +0400, Developer wrote:
> Dear VLC Developer,
> 
> I am trying to compile the latest SVN using Fedora Core 6.
> After running make at /extra/contrib., and after compile evrythings
> 
> I am getting the following error :  can you help please
> 
> 
> /bin/sh ./libtool --tag=CC --mode=link gcc -std=gnu99 -I/root/vlc/./extras/contrib/include -Wall -Wextra -Wno-unused-parameter -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wold-style-definition -Wmissing-prototypes -Wvolatile-register-var -L/root/vlc/./extras/contrib/lib -o vlc vlc-vlc.o src/libvlc.la
> gcc -std=gnu99 -I/root/vlc/./extras/contrib/include -Wall -Wextra -Wno-unused-parameter -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wold-style-definition -Wmissing-prototypes -Wvolatile-register-var -o .libs/vlc vlc-vlc.o  -L/root/vlc/./extras/contrib/lib src/.libs/libvlc.so -L/usr/local/lib -L/lib -lhal -ldbus-1 -lrt -lpthread -ldl -L/root/vlc/extras/contrib/lib  -Wl,--rpath -Wl,/usr/local/lib
> src/.libs/libvlc.so: undefined reference to `libiconv'
> src/.libs/libvlc.so: undefined reference to `libiconv_close'
> src/.libs/libvlc.so: undefined reference to `libiconv_open'
> collect2: ld returned 1 exit status
> make[2]: *** [vlc] Error 1
> make[2]: Leaving directory `/root/vlc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/vlc'
> make: *** [all] Error 2
> [root at localhost vlc]#
> 
I get the same thing on FC6 - interestingly enough not on any of the
other platforms or distros I compile for. I don't know about a proper
fix, but you can at least get an executable to compile by editing the
base Makefile, after configure has generated it, and looking for the
line that specifies vlc_LDFLAGS, and setting it thus:

vlc_LDFLAGS =  -liconv

I am assuming you do actually have the iconv libs installed, like me,
and that it is just a problem with them not being picked up for some
reason.

Bernie

-- 
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