[MPlayer-users] Re: [BUG] Cygwin Compilation failure with--disable-streaming
Diego Biurrun
diego at biurrun.de
Sat Jan 4 14:36:19 CET 2003
Sascha Sommer wrote:
>>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
It does crash with gcc 2.95.3-10 and --disable-streaming:
gcc-2.exe -c -O4 -march=k6 -mcpu=k6 -pipe -ffast-math
-fomit-frame-pointer -D__C
YGWIN__ -I../loader -o demux_mov.o demux_mov.c
gcc-2: Internal compiler error: program cc1 got fatal signal 11
make[1]: *** [demux_mov.o] Error 1
make[1]: Leaving directory `/home/Administrator/tree/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Error 2
{standard input}: Assembler messages:
{standard input}:0: Warning: end of file not at end of a line; newline
inserted
{standard input}:1103: Error: unknown pseudo-op: `.by'
Hmm, what about just removing that #ifndef? gcc 3.2 is the standard
compiler on Cygwin nowadays and we have a tradition of not bowing to
compiler errors ;-) Besides getting rid of an #ifdef is always nice, so...
Diego
More information about the MPlayer-users
mailing list