[MPlayer-users] [BUG] Cygwin Compilation failure with--disable-streaming

Sascha Sommer saschasommer at freenet.de
Fri Jan 3 15:25:04 CET 2003


> Even rc2 fails to compile with --disable-streaming:
> 
> gcc -c -O4 -march=k6-2 -mcpu=k6-2 -pipe -ffast-math -fomit-frame-pointer 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__CYGWIN__ -I../loader 
> -o demux_mov.o demux_mov.c
> demux_mov.c: In function `mov_read_header':
> demux_mov.c:1501: `O_CREAT' undeclared (first use in this function)
> demux_mov.c:1501: (Each undeclared identifier is reported only once
> demux_mov.c:1501: for each function it appears in.)
> demux_mov.c:1501: `O_WRONLY' undeclared (first use in this function)
> make[1]: *** [demux_mov.o] Error 1
> make[1]: Leaving directory `/home/diego/MPlayer-0.90rc2/libmpdemux'
> make: *** [libmpdemux/libmpdemux.a] Error 2
> 
It is because of:

// inclusion of fcntl.h cause cygwin gcc crash
#ifndef __CYGWIN__
#include <fcntl.h>
#endif

in demux_mov.c
network.h includes that file
That's why it fails with --disable-streaming
Dunno why this #ifndef is there, it doesn't crash for me with gcc 3.2

S. Sommer



More information about the MPlayer-users mailing list