Page 1 of 1

Compiling new Contrib Tree with clang

Posted: 07 Nov 2011 16:25
by diegofn
Hi!

On November 2, @Feepk update the bootstrap to use clang compiler.

I'm try to compile contrib tree in Xcode 4.1 in MacOSX Lion x86_64 and Its my result

libdvbpsi

I receive the following error
http://pastebin.com/sNBWdBZ1

I fixed it, replacing the optimization flag in clang here

Code: Select all

--- configure-old 2011-11-07 10:21:50.000000000 -0500 +++ configure 2011-11-07 09:52:04.000000000 -0500 @@ -11655,7 +11655,7 @@ if test "$release" = "true" then - CFLAGS="${CFLAGS} -O6" + CFLAGS="${CFLAGS} -O2" else CFLAGS="${CFLAGS} -O2" fi
live555

I'm download the latest version of live555 and the Patch fails, here my Patch

Code: Select all

$ diff live-getaddrinfo.patch live-getaddrinfo.patch.old 45,47c45,47 < --- live.orig//groupsock/inet.c.orig 2011-11-12 15:06:09.000000000 -0500 < +++ live//groupsock/inet.c 2011-11-12 15:06:26.000000000 -0500 < @@ -76,16 +76,6 @@ --- > --- live.orig//groupsock/inet.c 2010-04-09 22:27:39.000000000 +0300 > +++ live//groupsock/inet.c 2010-04-17 20:14:07.000000000 +0300 > @@ -83,16 +83,6 @@ 61c61 < #ifdef USE_SYSTEM_RANDOM --- > #ifndef USE_OUR_RANDOM
libcaca

clang doesn't support weak,alias. Patching from this libcaca ticket

Code: Select all

http://caca.zoy.org/ticket/90
I'm waiting that you accept my comments and changes :)

Greetings from Colombia

Re: Compiling new Contrib Tree with clang

Posted: 08 Nov 2011 00:41
by fkuehne
Thanks for your work. Could you please send 2 patches for this to vlc-devel so I can merge them retaining your copyright?