[vlc-devel] Re: Compilation error on Solaris
Kuldipsingh Pabla
Kuldipsingh.Pabla at Sun.COM
Mon Apr 3 04:52:15 CEST 2006
Hi Alex,
This works! Thanx for the patch. Could someone apply this patch please.
At the same time, I am running into another compilation error:
misc/charset.c:544:26: warning: multi-character character constant
misc/charset.c: In function `GetFallbackEncoding':
misc/charset.c:569: warning: implicit declaration of function `setlocale'
misc/charset.c:569: error: `LC_CTYPE' undeclared (first use in this
function)
misc/charset.c:569: error: (Each undeclared identifier is reported only once
misc/charset.c:569: error: for each function it appears in.)
misc/charset.c:569: warning: passing arg 1 of `FindFallbackEncoding'
makes pointer from integer without a cast
gmake[4]: *** [misc/libvlc_a-charset.o] Error 1
gmake[4]: Leaving directory `/export/home/vlc/vlc-0.8.5-test2/src'
Thanx,
-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