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

Michael Niedermayer michaelni at gmx.at
Sun Sep 12 13:21:20 CEST 2010


On Sat, Sep 11, 2010 at 10:32:56PM +0300, İsmail Dönmez wrote:
> 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__)

se the gnuc case later does not work?
thats a clang bug with claiming gcc compatibility then

[...]
--
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100912/c50e50a6/attachment.pgp>


More information about the MPlayer-dev-eng mailing list