[vlc-devel] Re: compile error using FC6

Damien Fouilleul damien.fouilleul at laposte.net
Thu May 24 11:19:21 CEST 2007


Jean-Paul Saman wrote:
> 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]#
>>
>
> Libiconv is either installed on your running system, check with: 
> locate libiconv.so. If not then check if extras/contrib/libiconv is 
> present in your build.
>
> If it is installed on your system then configure/build vlc with 
> LDFLAGS="-L/path/to/lib/dir -liconv" ./configure --prefix=/usr ... && 
> make
>
> Hope that helps. I am also building vlc on FC6 and do not have the 
> problems you described above.
>
> Gtz,
> Jean-Paul Saman
>
I've add this problem before, the fix for it is to NOT compile libiconv 
in the contribs, because iconv() is now part of the GNU stdlib

Damien

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