Bug 128466 - media-video/totem-1.4.0 fails with --as-needed
Bug#: 128466 Product:  Gentoo Linux Version: 2005.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gnome@gentoo.org Reported By: nichoj@gentoo.org
Component: Ebuilds
URL:  http://bugzilla.gnome.org/show_bug.cgi?id=341486
Summary: media-video/totem-1.4.0 fails with --as-needed
Keywords:  
Status Whiteboard: 
Opened: 2006-04-01 20:58 0000
Description:   Opened: 2006-04-01 20:58 0000
linking fails with excessive unresolved symbols. They seem to all related to
gstreamer and gconf, which suggests that totem isn't actually linking against
these, when it should be.

------- Comment #1 From Josh Nichols (RETIRED) 2006-04-01 20:58:52 0000 -------
Created an attachment (id=83681) [details]
totem-1.4.0 log

------- Comment #2 From Diego E. 'Flameeyes' Pettenò 2006-04-02 05:56:28 0000 -------
It's an ordering problem, I'll see to take a look.

------- Comment #3 From Diego E. 'Flameeyes' Pettenò 2006-04-02 06:31:39 0000 -------
Created an attachment (id=83710) [details]
totem-1.2.1-asneeded.patch

Okay, seems like totem systematically use the wrong linking order on every
single linking.

The attached patch reorders the linking so that --as-needed should work as
intended, at least I hope so.
If there are still linking failures, they are likely caused by gstreamer not
being compatible with --as-needed itself, in which case we have to check the
libraries themselves, shouldn't be difficult tho.

Give the patch a try and tell me if it behaves :)

------- Comment #4 From Josh Nichols (RETIRED) 2006-04-02 10:45:15 0000 -------
Created an attachment (id=83731) [details]
totem-1.4.0-asneeded.patch

Updated patch for 1.4.0.

------- Comment #5 From Patrizio Bassi 2006-04-14 00:54:47 0000 -------
patch is perfect, works on 1.4.0

------- Comment #6 From Sander Sweers 2006-04-23 02:45:26 0000 -------
Thanks, it behaves :) Tested mp3, ogg, wav, flac and an avi with xvid video and
mp3 audio playback. Also the goom visualation plugin works, nice!

------- Comment #7 From Luke Fisher 2006-04-30 06:44:03 0000 -------
Patch for 1.40 works fine for xine-lib backend too (1.1.2_pre)

------- Comment #8 From John N. Laliberte (RETIRED) 2006-05-11 16:39:00 0000 -------
thanks, in cvs and in upstream bug.