[MPlayer-users] Mplayer compiling error

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Dec 15 11:55:24 CET 2008


On Mon, Dec 15, 2008 at 09:35:35AM +0100, Guillaume POIRIER wrote:
> On Mon, Dec 15, 2008 at 3:43 AM, Reiser <metaller at fromru.com> wrote:
> > cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I..
> > -I.. -march=x86-64 -mtune=core2 -O3 -pipe -D_REENTRANT
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.
> > -I/usr/include/freetype2 -I/usr/include   -c -o nellymoserdec.o
> > nellymoserdec.c
> > cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I..
> > -I.. -march=x86-64 -mtune=core2 -O3 -pipe -D_REENTRANT
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.
> > -I/usr/include/freetype2 -I/usr/include   -c -o nellymoser.o nellymoser.c
> > cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I..
> > -I.. -march=x86-64 -mtune=core2 -O3 -pipe -D_REENTRANT
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.
> > -I/usr/include/freetype2 -I/usr/include   -c -o nellymoserenc.o
> > nellymoserenc.c
> > nellymoserenc.c: In function 'get_exponent_greedy':
> > nellymoserenc.c:175: warning: incompatible implicit declaration of
> > built-in function 'lrintf'
> > nellymoserenc.c: In function 'get_exponent_dynamic':
> > nellymoserenc.c:205: error: 'INFINITY' undeclared (first use in this
> > function)
> > nellymoserenc.c:205: error: (Each undeclared identifier is reported only
> > once
> > nellymoserenc.c:205: error: for each function it appears in.)
> > make[1]: *** [nellymoserenc.o] Error 1
> > make[1]: *** Waiting for unfinished jobs....
> > make[1]: Leaving directory
> > `/var/abs/local/yaourtbuild/mplayer-svn/src/mplayer-build/libavcodec'
> > make: *** [libavcodec/libavcodec.a] Error 2
> 
> Please latest SVN version, and don't alter CFLAGS. It should work out
> of the box.

I think that's not quite true, e.g. older OpenBSD versions lack the
INFINITY define in math.h (even though it is required by C99 and POSIX
IIRC).
A patch to fix this has been discussed on ffmpeg-devel but not applied.
If you can not update your system to follow C99/POSIX better you can add
#define INFINITY (1.0/0.0)
to the file that fails.

Greetings,
Reimar Döffinger



More information about the MPlayer-users mailing list