compilation error : conflicting types for 'gettimeofday'
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
On Mon, Dec 20, 2010 at 12:52:00PM +0100, Selo Max wrote:
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
So it seems that our local implementation is triggered. I wonder why, OS X 10.6 should have gettimeofday(). Can you attach config.log?
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).
Why are you using --enable-rpath in the first place? Diego
participants (2)
-
Diego Biurrun -
Selo Max