mplayer: Symbol `ff_codec_wav_tags’ has different size in shared object, consider re-linking

When upgrading from stable to testing, consider commenting the lines concerning the unofficial Debian ftp servers. Once done, after the upgrade, check whether you still have installed packages coming from other sources, like debian-multimedia.

While lauching mplayer, here are the errors I got :

mplayer: Symbol `ff_codec_wav_tags’ has different size in shared object, consider re-linking
mplayer: Symbol `ff_codec_bmp_tags’ has different size in shared object, consider re-linking

With dpkg -p mplayer, I noticed that mplayer’s version came from on unofficial source. And so are the depending packages.

In order to remove the error messages, remove the following packages :

fool@localhost:~$ dpkg -l | grep -E ‘(libavcodec52|libavcodec-extra-52|libavdevice52|libavdevice-extra-52|libavfilter1|libavfilter-extra-1|libavformat52|libavformat-extra-52|libavutil50|libavutil-extra-50|libpostproc51|libpostproc-extra-51|libswscale0|libswscale-extra-0)’

ii  libavcodec52                          5:0.6.1+svn20101128-0.2           library to encode decode multimedia streams – runtime files
ii  libavdevice52                         5:0.6.1+svn20101128-0.2           ffmpeg device handling library
ii  libavfilter1                          5:0.6.1+svn20101128-0.2           a graphics library;
ii  libavformat52                         5:0.6.1+svn20101128-0.2           ffmpeg file format library
ii  libavutil50                           5:0.6.1+svn20101128-0.2           avutil shared libraries – runtime files
ii  libmythavcodec52                      0.24.1-0.0squeeze1                libavcodec52 package for MythTV.
ii  libmythavutil50                       0.24.1-0.0squeeze1                libavutil50 package for MythTV.
ii  libmythswscale0                       0.24.1-0.0squeeze1                libswscale0 package for MythTV.
ii  libpostproc51                         5:0.6.1+svn20101128-0.2           postproc shared libraries
ii  libswscale0                           5:0.6.1+svn20101128-0.2           ffmpeg video scaling library

Some troubles with ffmpeg as well :
The following packages have unmet dependencies:
 ffmpeg : Depends: libavcodec52 (< 4:0.6.2-99) but 5:0.6.1+svn20101128-0.2 is to be installed or
                   libavcodec-extra-52 (< 4:0.6.2-99) but it is not installable
          Depends: libavdevice52 (< 4:0.6.2-99) but 5:0.6.1+svn20101128-0.2 is to be installed or
                   libavdevice-extra-52 (< 4:0.6.2-99) but it is not installable
          Depends: libavfilter1 (< 4:0.6.2-99) but 5:0.6.1+svn20101128-0.2 is to be installed or
                   libavfilter-extra-1 (< 4:0.6.2-99) but it is not installable
          Depends: libavformat52 (< 4:0.6.2-99) but 5:0.6.1+svn20101128-0.2 is to be installed or
                   libavformat-extra-52 (< 4:0.6.2-99) but it is not installable
          Depends: libavutil50 (< 4:0.6.2-99) but 5:0.6.1+svn20101128-0.2 is to be installed or
                   libavutil-extra-50 (< 4:0.6.2-99) but it is not installable
          Depends: libpostproc51 (< 4:0.6.2-99) but 5:0.6.1+svn20101128-0.2 is to be installed or
                   libpostproc-extra-51 (< 4:0.6.2-99) but it is not installable
          Depends: libswscale0 (< 4:0.6.2-99) but 5:0.6.1+svn20101128-0.2 is to be installed or
                   libswscale-extra-0 (< 4:0.6.2-99) but it is not installable
E: Broken packages

Remove all the broken packages with the following command-line :

root@localhost:~# apt-get purge libavcodec52 libavdevice52 libavfilter1 libavformat52 libavutil50 libpostproc51 libswscale0

Reading package lists… Done
Building dependency tree       
Reading state information… Done
The following packages were automatically installed and are no longer required:
  libboost-regex1.42.0 libclutter-gst-1.0-0 libcheese1 libclutter-gtk-1.0-0 dvdauthor libgee2 libcluttergesture-0.0.2-0
  libgtkmm-2.4-1c2a bombono-dvd-data libmx-1.0-2 libxml++2.6-2 libcheese-gtk20 scons libboost-filesystem1.42.0 libmlt-data
  libclutter-imcontext-0.1-0 libboost-system1.42.0
Use ‘apt-get autoremove’ to remove them.
The following packages will be REMOVED:
  bombono-dvd* cheese* dvgrab* frei0r-plugins* gnash* gnash-common* gnome-video-effects* kino* libasound2-plugins*
  libavcodec52* libavcore0* libavdevice52* libavfilter1* libavformat52* libavutil50* libcvaux2.1* libhighgui2.1*
  libmjpegtools-1.9* libpostproc51* libquicktime1* libquicktime2* libsox-dev* libsox-fmt-all* libsox-fmt-ffmpeg*
  libswscale-dev* libswscale0* libxine1-ffmpeg* libxine1-plugins* mjpegtools* mplayer* swfdec-gnome* vlc* vlc-nox*
  vlc-plugin-notify* vlc-plugin-pulse* xine-ui*
0 upgraded, 0 newly installed, 36 to remove and 0 not upgraded.
After this operation, 70.9 MB disk space will be freed.

Uninstall ffmpeg, ffmpeg-doc, mplayer and mplayer-doc as well :

root@localhost:m~#apt-get purge ffmpeg ffmpeg-doc mplayer mplayer-doc

Reinstall all of them. This time, all the packages will be fetched from the official Debian repositories :

root@localhost:~#apt-get install ffmpeg ffmpeg-doc
Reading package lists… Done
Building dependency tree       
Reading state information… Done
The following packages were automatically installed and are no longer required:
  libva-x11-1 libboost-regex1.42.0 libxcb-keysyms1 libclutter-gst-1.0-0 libtar0 libcheese1 libcddb2 libclutter-gtk-1.0-0
  libdvbpsi7 dvdauthor libgee2 libupnp3 libgavl1 libcluttergesture-0.0.2-0 libgtkmm-2.4-1c2a libxcb-randr0 libcv2.1
  bombono-dvd-data libmx-1.0-2 libxml++2.6-2 libcheese-gtk20 scons libboost-filesystem1.42.0 libmlt-data
  libclutter-imcontext-0.1-0 libebml3 libboost-system1.42.0 libmatroska4
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
  libav-doc libavcodec52 libavdevice52 libavfilter1 libavformat52 libavutil50 libpostproc51 libswscale0
The following NEW packages will be installed:
  ffmpeg ffmpeg-doc libav-doc libavcodec52 libavdevice52 libavfilter1 libavformat52 libavutil50 libpostproc51 libswscale0
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.0 MB of archives.
After this operation, 141 MB of additional disk space will be used.

root@localhost:~# apt-get install mplayer mplayer-doc
Reading package lists… Done
Building dependency tree       
Reading state information… Done
mplayer-doc is already the newest version.
The following packages were automatically installed and are no longer required:
  libva-x11-1 libboost-regex1.42.0 libxcb-keysyms1 libclutter-gst-1.0-0 libtar0 libcheese1 libcddb2 libclutter-gtk-1.0-0
  libdvbpsi7 dvdauthor libgee2 libupnp3 libgavl1 libcluttergesture-0.0.2-0 libgtkmm-2.4-1c2a libxcb-randr0 libcv2.1
  bombono-dvd-data libmx-1.0-2 libxml++2.6-2 libcheese-gtk20 scons libboost-filesystem1.42.0 libmlt-data
  libclutter-imcontext-0.1-0 libebml3 libboost-system1.42.0 libmatroska4
Use ‘apt-get autoremove’ to remove them.
The following NEW packages will be installed:
  mplayer
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2957 kB of archives.
After this operation, 5579 kB of additional disk space will be used.

Normally, no more errors when using mplayer.
You should have a look as well at the following bug report :

Debian bug report #616541

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s