[vlc-devel] Re: Compilation error on Solaris

Kuldipsingh Pabla Kuldipsingh.Pabla at Sun.COM
Wed Mar 29 14:53:50 CEST 2006


Thanx Alex,

I'll give it a try,

-Kuldip

Alexander Gall wrote:
> On Sun, 26 Mar 2006 19:44:22 -0800, Kuldipsingh Pabla <Kuldipsingh.Pabla at Sun.COM> said:
> 
> 
>>I have been trying to build VLC for Solaris10U1 for x86/x64 I had to fix 
>>  on rootwrap to overcome the following compilation error. You may want 
>>to fix it in the trunk.
> 
> 
>>#if defined (HAVE_GETEUID) && !defined (SYS_BEOS) && !defined (SYS_SOLARIS)
>>                                                   ^^^^^^^^^^^^^^^^^^
>># define ENABLE_ROOTWRAP 1
>>#endif
> 
> 
> 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:
> 
> diff -Naur vlc-0.8.5-test1.orig/src/network/rootwrap.c vlc-0.8.5-test1/src/network/rootwrap.c
> --- 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;
>  
> --
> Alex
> 

-- 
Project Buz :: Orchestrated Communication :: http://software.sfbay/buz

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