[vlc-devel] Re: compile error with undefined symbol IPV6_V6ONLY

frahm at irsamc.ups-tlse.fr frahm at irsamc.ups-tlse.fr
Fri Feb 10 07:00:56 CET 2006

On  9 Feb, To: vlc-devel at videolan.org wrote:
> I have recently tried to compile the snapshot version of vlc:
> vlc-snapshot-20060202 (vlc-0.8.5-svn) and the compilation stopped
> complaining about the undefined symbol IPV6_V6ONLY in the file
> src/network/rootwrap.c. I have compared with the source of vlc-0.8.4a
> and I have found that here (in a different file) there is a
> #ifdef/#endif directive to check if the symbol is defined. I have
> therefore also added these directives to the file src/network/rootwrap.c
> (see the patch below) and afterwards the compilation went well and the
> resulting binary seems to work very well for me. 
> I have also verified that the problem ist not solved in the latest
> snapshot version yet available.

I have tried the latest snapshot after the correction/patch from: 
"[vlc-devel] vlc: svn commit r14195 (courmisch)" but the compile error
is still present:

if gcc -DHAVE_CONFIG_H -I. -I. -I.   -DSYS_LINUX -I./include `top_builddir="." ./vlc-config --cflags vlc` -Wsign-compare -Wall  -pipe -MT src/network/lib_libvlc_a-rootwrap.o -MD -MP -MF "src/network/.deps/lib_libvlc_a-rootwrap.Tpo" -c -o src/network/lib_libvlc_a-rootwrap.o `test -f 'src/network/rootwrap.c' || echo './'`src/network/rootwrap.c; \
then mv -f "src/network/.deps/lib_libvlc_a-rootwrap.Tpo" "src/network/.deps/lib_libvlc_a-rootwrap.Po"; else rm -f "src/network/.deps/lib_libvlc_a-rootwrap.Tpo"; exit 1; fi
src/network/rootwrap.c: In function `rootprocess':
src/network/rootwrap.c:199: error: `IPV6_V6ONLY' undeclared (first use in this function)
src/network/rootwrap.c:199: error: (Each undeclared identifier is reported only once
src/network/rootwrap.c:199: error: for each function it appears in.)
make[2]: *** [src/network/lib_libvlc_a-rootwrap.o] Error 1
make[2]: Leaving directory `/users1/klaus/VLC/vlc_new/vlc-0.8.5-svn'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/users1/klaus/VLC/vlc_new/vlc-0.8.5-svn'
make: *** [all] Error 2

Actually the problem is the macro IPV6_V6ONLY and not AF_INET6.
Apparantly AF_INET6 is defined while IPV6_V6ONLY is not. 
When I replace the latter by the former in the #ifdef directive the
compilation is okay but of course I do not know if this is the correct
way to correct the problem, maybe the bug is that IPV6_V6ONLY is not
defined while AF_INET6 is. 

Greetings Klaus.

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