[MPlayer-dev-eng] vf_fspp.c causes a linker failure with clang

İsmail Dönmez ismail at namtrac.org
Sat Sep 11 21:32:56 CEST 2010


On Sat, Sep 11, 2010 at 1:00 PM, İsmail Dönmez <ismail at namtrac.org> wrote:
> Hi all,
>
> I am trying to compile MPlayer trunk with clang 2.9 (trunk build) on
> MacOSX 10.6, I configure with;
>
>  ./configure --cc=clang --extra-cflags=-no-integrated-as --disable-x11
>
> And the build fails with:

The following fixes the problem;


[~/Sources/mplayer]> svn diff libavutil/mem.h
Index: libavutil/mem.h
===================================================================
--- libavutil/mem.h	(revision 25106)
+++ libavutil/mem.h	(working copy)
@@ -29,7 +29,7 @@
 #include "attributes.h"
 #include "avutil.h"

-#if defined(__ICC) && _ICC < 1200 || defined(__SUNPRO_C)
+#if defined(__ICC) && _ICC < 1200 || defined(__SUNPRO_C) || defined(__clang__)
     #define DECLARE_ALIGNED(n,t,v)      t __attribute__ ((aligned (n))) v
     #define DECLARE_ASM_CONST(n,t,v)    const t __attribute__ ((aligned (n))) v
 #elif defined(__TI_COMPILER_VERSION__)

Might be a clang problem though.

Regards,
ismail


More information about the MPlayer-dev-eng mailing list