[Ffmpeg-devel] mathematics.c kills compilation on Mac Os X Tiger (gcc3.4 & gcc4.0.1)

carboncopy public carboncopy.public
Sun Dec 4 09:38:06 CET 2005


I have been trying to compile ffmpeg latest cvs since sometime ago. But failed.

System Mac Os X Tiger
Xcode 2.2 (tried gcc4.0.1 and gcc3.4)
ffmpeg as current as CVS can be.

My configure parameters:
~/coding/ffmpeg/configure --prefix=/opt/local
--mandir=/opt/local/share/man --disable-debug --enable-a52
--enable-mp3lame --enable-faad --enable-pthre
ads --enable-gpl --tune=970 --powerpc-perf-enable
--extra-cflags="-fast -I/opt/local/include" --extra-ldflags="-d

Output for configuration and make:
orca:~/coding/ffmpeg_build carboncopy$ ./myconf2.sh
install prefix   /opt/local
source path      /Users/carboncopy/coding/ffmpeg
C compiler       cc
make             make
CPU              powerpc (970)
big-endian       yes
inttypes.h       yes
broken inttypes.h no
AltiVec enabled  yes
gprof enabled    no
zlib enabled     no
libgsm enabled   no
mp3lame enabled  yes
libogg enabled   no
Vorbis enabled   no
Theora enabled   no
FAAD enabled     yes
faadbin enabled  no
FAAC enabled     no
XviD enabled     no
x264 enabled     no
a52 support      yes
a52 dlopened     no
DTS support      no
pp support       no
debug symbols    no
strip symbols    yes
optimize         yes
shared pp        no
video hooking    no
SDL support      yes
Sun medialib support no
pthreads support yes
AMR-NB float support no
AMR-NB fixed support no
AMR-WB float support no
AMR-WB IF2 support no
network support      yes
IPv6 support         no
License: GPL
Creating config.mak and config.h...
orca:~/coding/ffmpeg_build carboncopy$ make
make -C libavutil all
cc -O3 -Wall -Wno-switch -O3 -mcpu=970 -mtune=970 -fast
-I/opt/local/include -no-cpp-precomp -pipe -fomit-frame-pointer
-force_cpusubtype_ALL -Wno-sign-compare -mcpu=970 -mtune=970
-mpowerpc-gfxopt -mpowerpc64 -faltivec -mdynamic-no-pic
-D_GNU_SOURCE  -c -o mathematics.o
In file included from
/Users/carboncopy/coding/ffmpeg/libavutil/common.h:551: error: static
declaration of 'lrintf' follows non-static declaration
make[1]: *** [mathematics.o] Error 1
make: *** [lib] Error 2

I noticed this have came up a while ago in the ffmpeg-devel mailing list.

Is there a fix for this?

Thanks in advance.

More information about the ffmpeg-devel mailing list