[MPlayer-dev-eng] [PATCH] Link failure when using --disable-networking

Andrew Wason rectalogic at rectalogic.com
Thu Jan 26 23:50:56 CET 2012


Linking fails when mplayer is configured with --disable-networking:


Undefined symbols for architecture x86_64:
  "_ff_network_init", referenced from:
      _sap_read_header in libavformat.a(sapdec.o)
  "_ff_network_close", referenced from:
      _sap_read_header in libavformat.a(sapdec.o)
      _sap_read_close in libavformat.a(sapdec.o)
ld: symbol(s) not found for architecture x86_64

Attached patch disables sap demuxer when networking disabled.

Andrew
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 34601)
+++ configure	(working copy)
@@ -3359,7 +3359,7 @@
   def_networking='#undef CONFIG_NETWORKING'
   def_rtpdec='#define CONFIG_RTPDEC 0'
   libavprotocols=$(echo $libavprotocols | sed -e s/GOPHER_PROTOCOL// -e s/HTTP_PROTOCOL// -e s/RTMP_PROTOCOL// -e s/RTP_PROTOCOL// -e s/TCP_PROTOCOL// -e s/UDP_PROTOCOL// -e s/MMSH_PROTOCOL// -e s/MMST_PROTOCOL//)
-  libavdemuxers=$(echo $libavdemuxers | sed -e s/RTSP_DEMUXER// -e s/SDP_DEMUXER// -e s/RTP_DEMUXER//)
+  libavdemuxers=$(echo $libavdemuxers | sed -e s/RTSP_DEMUXER// -e s/SDP_DEMUXER// -e s/SAP_DEMUXER// -e s/RTP_DEMUXER//)
 fi
 echores "$networking"
 


More information about the MPlayer-dev-eng mailing list