[mplayerosx-devel] compilation error : conflicting types for 'gettimeofday'
Selo Max
selomax at gmail.com
Mon Dec 20 12:52:00 CET 2010
hi there
I am using osx version 10.6.4
I have latest version of mplayer from SVN...
./configure
make
make install
compiles and installs flawlessly.
However I run into a problem if I customize the call of configure as it
follows...
./configure --enable-macosx-bundle --enable-macosx-finder --enable-rpath
> --extra-libs=/opt/local/lib --enable-x264 --enable-caca --enable-aa
> --enable-xvid
in this case, make returns the following error:
cc -MD -MP -O4 -march=core2 -mtune=core2 -pipe -ffast-math
-fomit-frame-pointer -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=core2 -mtune=core2 -pipe -ffast-math
-fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -Ilibdvdread4 -falign-loops=16 -shared-libgcc
-mdynamic-no-pic -I. -Iffmpeg -DPIC -I/usr/X11/include
-I/opt/local/include/ -c -o osdep/gettimeofday.o osdep/gettimeofday.c
osdep/gettimeofday.c:24: error: conflicting types for 'gettimeofday'
/usr/include/sys/time.h:210: error: previous declaration of 'gettimeofday'
was here
make: *** [osdep/gettimeofday.o] Error 1
the option --enable-rpath seems to be the problem, because when I exclude it
the make command proceeds longer (and finally got stuck at another level. I
am not pasting here the error as it would better belong to another post).
Best,
bonobo
More information about the mplayerosx-devel
mailing list