[MPlayer-dev-eng] [PATCH] fix mplayer linking with --disable-networking

Andrew Wason rectalogic at rectalogic.com
Mon Oct 25 22:46:28 CEST 2010


Recent CONFIG_RTPDEC addition to mplayer in r32523 configure breaks
builds when disabling networking with --disable-networking:


Undefined symbols:
  "_ff_rtsp_next_attr_and_value", referenced from:
      _ff_parse_fmtp in libavformat.a(rtpdec.o)
  "_rtp_demuxer", referenced from:
      _av_register_all in libavformat.a(allformats.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 32533)
+++ configure	(working copy)
@@ -3320,14 +3320,16 @@
 if test "$networking" = yes ; then
   def_network='#define CONFIG_NETWORK 1'
   def_networking='#define CONFIG_NETWORKING 1'
+  def_rtpdec='#define CONFIG_RTPDEC 1'
   extra_ldflags="$extra_ldflags $_ld_sock"
   inputmodules="networking $inputmodules"
 else
   noinputmodules="networking $noinputmodules"
   def_network='#define CONFIG_NETWORK 0'
   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//)
+  libavdemuxers=$(echo $libavdemuxers | sed -e s/RTSP_DEMUXER// -e s/SDP_DEMUXER// -e s/RTP_DEMUXER//)
 fi
 echores "$networking"
 
@@ -8249,7 +8251,7 @@
 CONFIG_LSP     = yes
 CONFIG_MDCT    = yes
 CONFIG_RDFT    = yes
-CONFIG_RTPDEC  = yes
+CONFIG_RTPDEC  = $networking
 
 $mak_hardcoded_tables
 $mak_libavcodec_mpegaudio_hp
@@ -8756,7 +8758,7 @@
 #define CONFIG_LPC 1
 #define CONFIG_MDCT 1
 #define CONFIG_RDFT 1
-#define CONFIG_RTPDEC 1
+$def_rtpdec
 
 /* Use these registers in FFmpeg x86 inline asm. No proper detection yet. */
 #ifndef MP_DEBUG


More information about the MPlayer-dev-eng mailing list