[MPlayer-users] [BUG] SVN commit r19324 breaks compilation on MingW/MSys

Frank Aurich fa859178 at inf.tu-dresden.de
Sat Aug 5 13:24:56 CEST 2006


The commit r19324 to the svn repository ("removed udp socket creation code from 
rtp stack to a new dedicated udp helper file" by Benjamin Zores) breaks 
compilation on MSys/MingW:

<snip>
gcc -c -I../libvo -I../../libvo -fno-PIC -O4 -march=athlon-xp -mtune=athlon-xp 
-pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/src/DVB/include -I/usr/include/dxr2 
-I/usr/local/include/cdda -Ic:/mingw/include/freetype2 -Ic:/mingw/include -I.. 
-I../loader   -o udp.o udp.c
udp.c:29:19: netdb.h: No such file or directory
udp.c: In function `udp_open_socket':
udp.c:139: warning: passing arg 4 of `setsockopt' from incompatible pointer type
udp.c:151: warning: passing arg 4 of `setsockopt' from incompatible pointer type
udp.c:183: warning: passing arg 4 of `getsockopt' from incompatible pointer type
make[1]: *** [udp.o] Error 1
make[1]: Leaving directory `/home/KyleK/main/stream'
make: *** [stream/stream.a] Error 2

The header file 'netdb.h' doesn't exist on this platform, therefore the '#define 
<netdb.h>' has to be moved a couple of lines down into the '#ifndef WINSOCK2' block.


Frank




More information about the MPlayer-users mailing list