[vlc-devel] Re: solaris 8 build error
Kuldipsingh Pabla
Kuldipsingh.Pabla at Sun.COM
Thu May 18 00:18:07 CEST 2006
This is not required on Solaris 10 x86/x64. You may want to consider
moving to opensolaris (http://www.opensolaris.org) or solaris10.
-Kuldip
Bill Hamlin wrote:
> I had to also add this to rootwrap.c
>
> #ifndef CMSG_ALIGN
> # ifdef __sun__
> # define CMSG_ALIGN _CMSG_DATA_ALIGN
> # else
> # define CMSG_ALIGN(len) (((len)+sizeof(long)-1) &
> ~(sizeof(long)-1))
> # endif
> #endif
>
> #ifndef CMSG_SPACE
> # define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct
> cmsghdr))+CMSG_ALIGN(len))
> #endif
>
> #ifndef CMSG_LEN
> # define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr))+(len))
> #endif
>
>
>
>
> -----Original Message-----
> From: vlc-devel-bounce at videolan.org
> [mailto:vlc-devel-bounce at videolan.org] On Behalf Of Kuldipsingh Pabla
> Sent: Wednesday, May 17, 2006 10:08 AM
> To: vlc-devel at videolan.org
> Subject: [vlc-devel] Re: solaris 8 build error
>
> 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