[vlc-devel] compile error with undefined symbol IPV6_V6ONLY

frahm at irsamc.ups-tlse.fr frahm at irsamc.ups-tlse.fr
Thu Feb 9 09:50:47 CET 2006


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.

Actually, I want to mention that I think that vlc is really great and I
am one of the french Freebox users (a DSL-Modem with telephone and TV
functionality). I use vlc in combination with DSL-TV to receive the
TV-program on the computer and also to send audio/video files to the TV
by the DSL-modem ("Freeplayer"). 

Concerning the compile error, I suppose I encountered this problem
because I did not activate ipv6-functionality in my Linux kernel.
Presumably with ipv6 activated in the kernel and/or in the Linux
distribution this problem does not appear and therefore it may have gone
unnoticed for some time which is why I am sending this message to the
vlc-devel-mailing list. 

Yours sincerely, Klaus Frahm.


--- src/network/rootwrap.c.old  2006-02-02 00:00:16.000000000 +0100
+++ src/network/rootwrap.c      2006-02-04 23:45:09.000000000 +0100
@@ -194,9 +194,10 @@
             const int val = 1;
 
             setsockopt (sock, SOL_SOCKET, SO_REUSEADDR, &val, sizeof (val));
+#ifdef IPV6_V6ONLY
             if (ss.ss_family == AF_INET6)
                 setsockopt (sock, IPPROTO_IPV6, IPV6_V6ONLY, &val, sizeof (val));
-
+#endif
             if (bind (sock, (struct sockaddr *)&ss, len) == 0)
             {
                 send_fd (fd, sock);



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