[vlc-devel] Re: solaris 8 build error

Kuldipsingh Pabla Kuldipsingh.Pabla at Sun.COM
Wed May 17 19:08:10 CEST 2006


Hi Bill,

You may want to try the following patch.

Can someone apply this patch so that it is fixed for ever? Please!

You need to include "-D_XPG4_2 -D__EXTENSIONS__" in CFLAGS for the
CMSG stuff and apply this patch to fix the AF_LOCAL problem: src/Makefile

--- vlc-0.8.5-20060302.orig/src/network/rootwrap.c      2006-03-02 
15:33:14.408349000 +0100
+++ vlc-0.8.5-20060302/src/network/rootwrap.c   2006-03-02 
18:40:39.737228000 +0100
@@ -52,6 +52,10 @@
  #include <netinet/in.h>
  #include <pthread.h>
 

+#ifndef AF_LOCAL
+#define AF_LOCAL AF_UNIX
+#endif
+
  /*#ifndef HAVE_CLEARENV
  extern char **environ;

-Kuldip


Bill Hamlin wrote:
> I’m building vlc-0.8.5 on a solaris 8 sparc system.  Make results in 
> these errors in compiling rootwrap.c:
> 
>  
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/opt/gnome/include 
> -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include 
> -DSYS_SOLARIS -I../include `top_builddir=".." ../vlc-config --cflags 
> vlc` -Wsign-compare -Wall  -D_POSIX_PTHREAD_SEMANTICS -pipe -c -o 
> network/libvlc_a-rootwrap.o `test -f 'network/rootwrap.c' || echo 
> './'`network/rootwrap.c
> 
> network/rootwrap.c: In function `send_fd':
> 
> network/rootwrap.c:121: warning: implicit declaration of function 
> `CMSG_SPACE'
> 
> network/rootwrap.c:128: structure has no member named `msg_control'
> 
> network/rootwrap.c:129: structure has no member named `msg_controllen'
> 
> network/rootwrap.c:131: warning: assignment from incompatible pointer type
> 
> network/rootwrap.c:134: warning: implicit declaration of function 
> `CMSG_FIRSTHDR'
> 
> network/rootwrap.c:134: warning: assignment makes pointer from integer 
> without a cast
> 
> network/rootwrap.c:137: warning: implicit declaration of function `CMSG_LEN'
> 
> network/rootwrap.c:138: warning: implicit declaration of function 
> `CMSG_DATA'
> 
> network/rootwrap.c:138: warning: passing arg 1 of `memcpy' makes pointer 
> from integer without a cast
> 
> network/rootwrap.c:139: structure has no member named `msg_controllen'
> 
> network/rootwrap.c: In function `rootprocess':
> 
> network/rootwrap.c:199: `IPV6_V6ONLY' undeclared (first use in this 
> function)
> 
> network/rootwrap.c:199: (Each undeclared identifier is reported only once
> 
> network/rootwrap.c:199: for each function it appears in.)
> 
> network/rootwrap.c: In function `rootwrap':
> 
> network/rootwrap.c:271: `AF_LOCAL' undeclared (first use in this function)
> 
> network/rootwrap.c: In function `recv_fd':
> 
> network/rootwrap.c:322: structure has no member named `msg_control'
> 
> network/rootwrap.c:323: structure has no member named `msg_controllen'
> 
> network/rootwrap.c:325: warning: assignment from incompatible pointer type
> 
> network/rootwrap.c:331: warning: assignment makes pointer from integer 
> without a cast
> 
> network/rootwrap.c:332: warning: implicit declaration of function 
> `CMSG_NXTHDR'
> 
> network/rootwrap.c:332: warning: assignment makes pointer from integer 
> without a cast
> 
> network/rootwrap.c:336: warning: comparison between signed and unsigned
> 
> network/rootwrap.c:338: warning: passing arg 2 of `memcpy' makes pointer 
> from integer without a cast
> 
>  
> 
> Any easy fix?  It seems like some low-level stuff is going on in this file.
> 
>  
> 
> My config was:
> 
>  
> 
> ./configure --disable-libcdio --disable-libcddb --disable-ffmpeg 
> --disable-libmpeg2 --disable-wxwidgets --disable-skins2
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> __________________________
> 
> William Hamlin
> 
> Sr. Network Engineer
> 
> IP Unity, Inc.
> 
> Milpitas, CA
> 
> 408-781-1259
> 
>  
> 

-- 
Mam-Lite: Video Asset/Ingest Management

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