[MPlayer-users] Link failure when using --disable-network

Andrew Wason rectalogic at rectalogic.com
Thu Jan 14 22:02:28 CET 2010


When configured with --disable-network, mplayer fails to link (tested
on MacOS 10.6.2).

Link error is:

Undefined symbols:
  "_closesocket", referenced from:
      _tcp_close in libavformat.a(tcp.o)
      _tcp_open in libavformat.a(tcp.o)
      _tcp_open in libavformat.a(tcp.o)
      _udp_close in libavformat.a(udp.o)
      _udp_open in libavformat.a(udp.o)
  "_ff_socket_nonblock", referenced from:
      _tcp_open in libavformat.a(tcp.o)
      _udp_open in libavformat.a(udp.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1


Disabling libavformat network protocols fixes the build:

./configure --disable-network --disable-protocol=udp
--disable-protocol=tcp --disable-protocol=rtp


Andrew


More information about the MPlayer-users mailing list