[vlc-devel] Report on contrib tree clang issues

Olivier Gambier olivier at webitup.fr
Tue Jan 17 03:19:18 CET 2012

Hi list,

Following on the previous discussion on that topic:

and using clang 3.

Most stuff is fine now, except:

* Libgcrypt: still needs the mentioned patches (from homebrew)
use CFLAGS="-std=gnu89 -fheinous-gnu-extensions"
configure with --disable-asm
Apply https://trac.macports.org/browser/trunk/dports/devel/libgcrypt/files/clang-asm.patch

* Libcaca: still needs to be patched as well (this one from homebrew)

--- libcaca/caca/caca.h 2011-07-05 00:09:51.000000000 -0700
+++ libcaca.new/caca/caca.h 2011-07-05 00:10:10.000000000 -0700
@@ -645,7 +645,7 @@
 #       define CACA_DEPRECATED
 #   endif
-#   if defined __GNUC__ && __GNUC__ > 3
+#   if !defined __APPLE__ && defined __GNUC__ && __GNUC__ > 3
 #       define CACA_ALIAS(x) __attribute__ ((weak, alias(#x)))
 #   else
 #       define CACA_ALIAS(x)

* zvbi:

There is a patch from a Freebsd port for the nested function issue:


and see: http://www.freshports.org/commit.php?category=devel&port=libzvbi&files=yes&message_id=201112150652.pBF6qgNm092931@repoman.freebsd.org

As for the #if #cpu problem, the freebsd port replaces them by defined in their Makefile, though that should be looked into…

I gave up on live555 though… but everything else seems fine :)

In the hope these infos will help

Best regards,

- Olivier

More information about the vlc-devel mailing list