[MPlayer-cygwin] While compile TOOLS/netstream in MINGW32 (WinXP), some error

qiangdy dongya at suminet-sh.com
Fri Sep 24 05:26:49 CEST 2004


While compile TOOLS/netstream in MINGW32 (Under WinXP OS),  for I want to
get a WIN32 netstream executable file, but some error here:

$ make
gcc -I../libvo -I../../libvo  -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I../.. -I../../loader  netstream.o -o netstream ../../libmpdemux/libmpdemux.a ../../libmpdvdkit2/libmpdvdkit.a ../../libmpcodecs/native/minilzo.o ../../libvo/aclib.o ../../libmpcodecs/img_format.o ../../liba52/liba52.a ../../libao2/afmt.o ../../m_option.o ../../m_struct.o ../../subreader.o ../../mp_msg.o ../../osdep/shmem.o ../../osdep/timer-*.o ../../osdep/strl.o       -lpthread  -lm
g:\MinGW\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe: cannot find -lpthread
make: *** [netstream] Error 1

Then I remove "-lpthread" from Makefile, and compile it again, also other error here:
(Could you help me, thanks a lot)

:):)


$ make
gcc -I../libvo -I../../libvo  -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I../.. -I../../loader  netstream.o -o netstream ../../libmpdemux/libmpdemux.a ../../libmpdvdkit2/libmpdvdkit.a ../../libmpcodecs/native/minilzo.o ../../libvo/aclib.o ../../libmpcodecs/img_format.o ../../liba52/liba52.a ../../libao2/afmt.o ../../m_option.o ../../m_struct.o ../../subreader.o ../../mp_msg.o ../../osdep/shmem.o ../../osdep/timer-*.o ../../osdep/strl.o        -lm
netstream.o(.text+0x209):netstream.c: undefined reference to `send at 16'
netstream.o(.text+0x420):netstream.c: undefined reference to `send at 16'
netstream.o(.text+0x50b):netstream.c: undefined reference to `send at 16'
netstream.o(.text+0x645):netstream.c: undefined reference to `socket at 12'
netstream.o(.text+0x67d):netstream.c: undefined reference to `htons at 4'
netstream.o(.text+0x6a1):netstream.c: undefined reference to `bind at 12'
netstream.o(.text+0x6eb):netstream.c: undefined reference to `listen at 8'
netstream.o(.text+0x915):netstream.c: undefined reference to `kill'
netstream.o(.text+0x93e):netstream.c: undefined reference to `usleep'
netstream.o(.text+0x97f):netstream.c: undefined reference to `send at 16'
netstream.o(.text+0xa64):netstream.c: undefined reference to `send at 16'
netstream.o(.text+0xbbb):netstream.c: undefined reference to `send at 16'
netstream.o(.text+0xcc2):netstream.c: undefined reference to `send at 16'
netstream.o(.text+0xda1):netstream.c: undefined reference to `send at 16'
netstream.o(.text+0xf7c):netstream.c: more undefined references to `send at 16' follow
netstream.o(.text+0x12c8):netstream.c: undefined reference to `select at 20'
netstream.o(.text+0x12e8):netstream.c: undefined reference to `__WSAFDIsSet at 8'
netstream.o(.text+0x1309):netstream.c: undefined reference to `__WSAFDIsSet at 8'
netstream.o(.text+0x1411):netstream.c: undefined reference to `accept at 12'
netstream.o(.text+0x1426):netstream.c: undefined reference to `inet_ntoa at 4'
netstream.o(.text+0x15d8):netstream.c: undefined reference to `recv at 16'
netstream.o(.text+0x166d):netstream.c: undefined reference to `recv at 16'
../../libmpdemux/libmpdemux.a(stream.o)(.text+0x9d1):stream.c: undefined reference to `WSAStartup at 8'
../../libmpdemux/libmpdemux.a(stream.o)(.text+0xb96):stream.c: undefined reference to `closesocket at 4'
../../libmpdemux/libmpdemux.a(stream.o)(.text+0xbb2):stream.c: undefined reference to `WSACleanup at 0'
../../libmpdemux/libmpdemux.a(stream_netstream.o)(.text+0x214):stream_netstream.c: undefined reference to `closesocket at 4'
../../libmpdemux/libmpdemux.a(stream_netstream.o)(.text+0x4e2):stream_netstream.c: undefined reference to `send at 16'
../../libmpdemux/libmpdemux.a(stream_netstream.o)(.text+0x818):stream_netstream.c: undefined reference to `recv at 16'
../../libmpdemux/libmpdemux.a(stream_netstream.o)(.text+0x8ad):stream_netstream.c: undefined reference to `recv at 16'
../../libmpdemux/libmpdemux.a(stream_ftp.o)(.text+0x26a):stream_ftp.c: undefined reference to `closesocket at 4'
../../libmpdemux/libmpdemux.a(stream_ftp.o)(.text+0x2c5):stream_ftp.c: undefined reference to `send at 16'
......




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cygwin/attachments/20040924/371da8c5/attachment.htm>


More information about the MPlayer-cygwin mailing list