[MPlayer-dev-eng] [PATCH] fix build with --disable-networking

Andrew Wason rectalogic at rectalogic.com
Fri Aug 27 23:00:11 CEST 2010


MPlayer r32026 build fails when using configure --disable-networking

Undefined symbols:
  "_ff_http_set_headers", referenced from:
      _mmsh_open in libavformat.a(mmsh.o)
      _mmsh_open in libavformat.a(mmsh.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status


Attached patch disables CONFIG_MMSH_PROTOCOL and CONFIG_MMST_PROTOCOL
when networking is disabled.

Andrew
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 32026)
+++ configure	(working copy)
@@ -3427,7 +3427,7 @@
   def_network='#undef CONFIG_NETWORK'
   def_networking='#undef CONFIG_NETWORKING'
   _ftp=no
-  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//)
+  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//)
 fi
 echores "$networking"


More information about the MPlayer-dev-eng mailing list