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

İsmail Dönmez ismail at namtrac.org
Sun Sep 12 14:05:28 CEST 2010


Hi;

2010/9/12 Michael Niedermayer <michaelni at gmx.at>:
> 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

 I guess so.


More information about the MPlayer-dev-eng mailing list