[MPlayer-cygwin] compilation issue
Anatoli Marinov
anatoli.marinov at gmail.com
Wed Jul 18 11:21:40 CEST 2007
Hi friends,
This morning I've updated to current sources and cant compile the
project under mingw.
Compilation fails with:
gcc -I../libavcodec -I../libavformat -Wdisabled-optimization
-Wno-pointer-sign -
Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch
-Wpointer -arith -Wredundant-decls -O4
-march=prescott -mtune=prescott -pipe -ffast-math -
fomit-frame-pointer -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SO
URCE -Ic:/mingw/include/freetype2 -Ic:/mingw/include -c -o vo_mga.o
vo_mga.c
vo_mga.c:15:23: error: sys/ioctl.h: No such file or directory
In file included from c:/mingw/include/unistd.h:10,
from vo_mga.c:16:
c:/mingw/include/io.h:233: warning: redundant redeclaration of 'remove'
c:/mingw/include/stdio.h:174: warning: previous declaration of 'remove' was here
c:/mingw/include/io.h:234: warning: redundant redeclaration of 'rename'
c:/mingw/include/stdio.h:175: warning: previous declaration of 'rename' was here
c:/mingw/include/io.h:243: warning: redundant redeclaration of '_unlink'
c:/mingw/include/stdio.h:182: warning: previous declaration of
'_unlink' was her e
c:/mingw/include/io.h:292: warning: redundant redeclaration of 'unlink'
c:/mingw/include/stdio.h:187: warning: previous declaration of 'unlink' was here
vo_mga.c:18:22: error: sys/mman.h: No such file or directory
vo_mga.c:19:22: error: linux/fb.h: No such file or directory
In file included from vo_mga.c:35:
mga_common.c: In function 'vo_mga_flip_page':
mga_common.c:129: warning: implicit declaration of function 'ioctl'
mga_common.c:129: warning: implicit declaration of function '_IOR'
mga_common.c:129: error: expected expression before 'int'
mga_common.c: In function 'mga_fullscreen':
mga_common.c:226: error: expected expression before 'mga_vid_config_t'
mga_common.c: In function 'control':
mga_common.c:247: error: expected expression before 'int'
mga_common.c:268: error: expected expression before 'int'
mga_common.c:286: error: expected expression before 'int'
mga_common.c: In function 'mga_init':
mga_common.c:392: error: expected expression before 'mga_vid_config_t'
mga_common.c:392: warning: suggest parentheses around assignment used
as truth v alue
mga_common.c:411: error: expected expression before 'mga_vid_config_t'
mga_common.c:421: warning: implicit declaration of function 'mmap'
mga_common.c:421: error: 'PROT_WRITE' undeclared (first use in this function)
mga_common.c:421: error: (Each undeclared identifier is reported only once
mga_common.c:421: error: for each function it appears in.)
mga_common.c:421: error: 'MAP_SHARED' undeclared (first use in this function)
mga_common.c:432: warning: implicit declaration of function '_IO'
mga_common.c: In function 'mga_uninit':
mga_common.c:441: warning: implicit declaration of function 'munmap'
mga_common.c: In function 'set_window':
mga_common.c:565: error: expected expression before 'mga_vid_config_t'
vo_mga.c: In function 'config':
vo_mga.c:45: error: storage size of 'fbinfo' isn't known
vo_mga.c:48: error: 'FBIOGET_VSCREENINFO' undeclared (first use in
this function )
vo_mga.c:45: warning: unused variable 'fbinfo'
make[1]: *** [vo_mga.o] Error 1
make[1]: Leaving directory `/install/mplayer/libvo'
make: *** [libvo/libvo.a] Error 2
My backup from 3 days back works but current fails. Later I will
investigate the problem why it fails but now I just want to inform
you.
Currently I see 2 missing headers. But I think configuration procedure
have to detect this and must disable mga.
Best wishes
Anatoli Marinov
More information about the MPlayer-cygwin
mailing list