[MPlayer-users] build failure on MacOS 10.5.8

Christian Ebert blacktrash at gmx.net
Wed Sep 22 13:16:53 CEST 2010


* Ilja Sekler on Wednesday, September 22, 2010 at 12:15:11 +0200
> On 22.09.2010 10:50, Guillaume POIRIER wrote:
>> On Wed, Sep 22, 2010 at 1:31 AM, Christian Ebert <blacktrash at gmx.net> wrote:
>>> svn r32341 fails to build on:
>>> 
>>> $ sw_vers
>>> ProductName:    Mac OS X
>>> ProductVersion: 10.5.8
>>> BuildVersion:   9L30
>>> 
>>> like so:
>>> 
>>> In file included from libmpcodecs/ad_faad.c:46:
>>> ./libfaad2/faad.h:29: warning: ignoring #pragma message
>>> cc -MMD -MF libfaad2/bits.d -MT libfaad2/bits.o -Ilibfaad2 -D_GNU_SOURCE
>>> -DHAVE_CONFIG_H  -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
>>> -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes
>>> -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
>>> -std=gnu99  -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math
>>> -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
>>> -D_LARGEFILE64_SOURCE -falign-loops=16 -shared-libgcc -mdynamic-no-pic -I.
>>> -I/usr/local/include -I/sw/include  -I/usr/X11/include -I/sw/include/SDL
>>> -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/local/include -I/sw/include/freetype2
>>> -I/sw/include  -I/sw/include   -I/usr/local/include
>>> -I/usr/local/include/libdvdread -c -o libfaad2/bits.o libfaad2/bits.c
>>> In file included from /usr/include/math.h:28,
>>>                from libfaad2/common.h:349,
>>>                from libfaad2/bits.c:28:
>>> /usr/include/architecture/i386/math.h:383: error: conflicting types for
>>> 'lrintf'
>>> libfaad2/common.h:324: error: previous definition of 'lrintf' was here
>>> 
>> 
>> For me, this compilation error reads that there's a conflict in the 
>> declaration of "lrintf" in FAAD's version and OSX's version. To put
>> it in a nutshell, it means that the problem is in FAAD, not in MPlayer.
>> 
>> BTW, you can safely uninstall FAAD since now libavcodec is able to decode
>> all flavors of AAC.
> 
> The same build failure on Ubuntu Maverick, --disable-faad-internal is
> now prerequisite for a successful compilation. Presumably r32335 is
> responsible.
> 
> ------------------------------------------------------------------------
> 
> r32335 | diego | 2010-09-21 15:04:05 +0200 (Di, 21. Sep 2010) | 2 Zeilen
> Geänderte Pfade:
>   M /trunk/libfaad2/common.h
>   M /trunk/libfaad2/local_changes.diff
> 
> Remove local HAVE_LRINTF hack; it should no longer be necessary.
> 
> ------------------------------------------------------------------------

Ah right, builds with --disable-faad-internal, and with
mplayer -afm ffmpeg I can silence the resulting warning:

Requested audio codec family [faad] (afm=faad) not available.
Enable it at compilation.
 
c
-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions


More information about the MPlayer-users mailing list