Hello,
I'm new to Ubuntu, having switched from Debian just yesterday. After a mostly enjoyable install, I decided to sit and vegetate in front of some mind-numbing movie for a while. My fresh new Linux distribution had some helpful advice to offer about that decision:
MPlayer interrupted by signal 11 in module: decode_audio
Highly annoying. So after a little well-intentioned cursing and muttering to myself, I strace'd it, and found that liba52 was poking around weird memory addresses (I hear there's a big party for misbehaving audio codecs at 0x0). An apt-get build-dep mplayer; apt-get source mplayer later, I try to see if I can get it to behave. After a little experimentation, I find that if I compile mplayer with the regular ./configure; make we all know and love, it results in a working mplayer that'll play anything I throw at it; whereas if I do a debian/rules binary, I get the segfaulting audio decoder. Obviously, something in the packaging is going wrong.
Now, I don't like having an application the size of mplayer outside my package management, so I checked out the contents of debian/patches -- and sure enough, in debian/patches/03_configure.dpatch, I spot these interesting lines:
Code:
@@ -1267,7 +1267,7 @@
# GOTCHA: the variables below defines the default behavior for autodetection
# and have - unless stated otherwise - at least 2 states : yes no
# If autodetection is available then the third state is: auto
-_libavcodec=auto
+_libavcodec=no
_libavcodecso=auto
_libavformat=auto
_fame=auto
Oho! We're telling mplayer to not go with its own libavcodec, since we're using the one in Ubuntu. There's an easy "solution", though: After removing this block, mplayer can compile with debian/rules binary, so we get working mplayer-custom packages that can be managed using apt. It's not as good as fixing the broken libavcodec, but it'll work for now.
There's a patch for it at the bottom of this post. To apply the patch, put it in a file, hop into the mplayer source directory and patch -p1 < patchfilename
NOTE: You might need to export DEB_BUILD_OPTIONS="custom" before you do the build. Otherwise, you get a bunch of empty .debs.
Cheers,
Simon
Here's the patch:
Code:
diff -ruN mplayer-1.0-pre6/debian/patches/03_configure.dpatch mplayer-1.0-pre6-fixed/debian/patches/03_configure.dpatch
--- mplayer-1.0-pre6/debian/patches/03_configure.dpatch 2005-07-19 00:33:31.974622320 +0200
+++ mplayer-1.0-pre6-fixed/debian/patches/03_configure.dpatch 2005-07-19 01:25:51.772300520 +0200
@@ -15,15 +15,6 @@
--- configure.orig 2004-12-25 10:53:30.000000000 +0100
+++ configure 2004-12-25 10:57:24.000000000 +0100
-@@ -1267,7 +1267,7 @@
- # GOTCHA: the variables below defines the default behavior for autodetection
- # and have - unless stated otherwise - at least 2 states : yes no
- # If autodetection is available then the third state is: auto
--_libavcodec=auto
-+_libavcodec=no
- _libavcodecso=auto
- _libavformat=auto
- _fame=auto
@@ -5563,16 +5563,16 @@
echores "yes (using $_livelibdir)"
_def_live='#define STREAMING_LIVE_DOT_COM 1'
Bookmarks