Sysprof cannot run, looking for wrong libbfd

Bug #46224 reported by Lews
16
Affects Status Importance Assigned to Milestone
sysprof (Debian)
Fix Released
Unknown
sysprof (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I get the following error when attempting to start sysprof:

 sysprof: error while loading shared libraries: libbfd-2.16.1.so: cannot open shared object file: No such file or directory

A /usr/lib/libbfd-2.16.91.so exists, which has been installed by binutils. If I symlink this file to libbfd-2.16.1.so, sysprof starts and runs correctly.

Revision history for this message
Martin Kretzschmar (martink) wrote :

Happened again in edgy. This time sysprof 1.0.3-1 is looking for libbfd-2.16.91 but system has libbfd-2.17 (from binutils 2.17-1ubuntu1).

Apparently sysprof's binutils dependency must be tightly versioned (currently it isn't versioned at all)

Changed in sysprof:
status: Unconfirmed → Confirmed
Revision history for this message
Alex Mauer (hawke) wrote :

And again in gutsy:

sysprof: error while loading shared libraries: libbfd-2.17.50.20070426.so: cannot open shared object file: No such file or directory

Revision history for this message
Alex Mauer (hawke) wrote :

To quote the description of binutils-dev (from which the libbfd in question comes):

"Note that building Debian packages which depend on the shared libbfd is Not Allowed."

So it looks like sysprof is doing something naughty here.

Revision history for this message
Michael Bienia (geser) wrote :

sysprof needs to be rebuild everytime a new version of binutils gets uploaded.

sysprof is currently in sync with binutils in gutsy.

Changed in sysprof:
status: Confirmed → Fix Released
Revision history for this message
Alexander Jones (alex-weej) wrote :

Aaand it's broken again.

Changed in sysprof:
status: Fix Released → Confirmed
Revision history for this message
Michael Bienia (geser) wrote :

sysprof (1.0.8-3build1) gutsy; urgency=low

  * Rebuild for recent libbfd (from binutils) (LP: #46224).

 -- Michael Bienia <email address hidden> Wed, 29 Aug 2007 17:48:55 +0200

Changed in sysprof:
status: Confirmed → Fix Released
Revision history for this message
Daniel Hahler (blueyed) wrote :

Broken again in Hardy.

Changed in sysprof:
assignee: nobody → blueyed
status: Fix Released → In Progress
Revision history for this message
Daniel Hahler (blueyed) wrote :

The proposed patch fixes this once and for all by linking statically against libbfd.
I have not tested, if this causes other failures once the versions of libbfd are different on the system from the version sysprof has been linked against!
The patch is taken from the Debian bug.

The debdiff also addresses bug 30160.

Changed in sysprof:
assignee: blueyed → nobody
status: In Progress → Triaged
Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Daniel Hahler (blueyed) wrote :

I've contacted upstream (Soeren Sandmann) about this and he definitely recommends statically linking against libbfd and says additionally:
"""I think bfd using apps in general should do that. On Fedora,
"-lbfd" does that by default, so I'd suggest doing the same on
Ubuntu/Debian.

Since this is not a problem with sysprof trunk, which doesn't depend
on libbfd at all, and not a problem on Fedora, I think it makes more
sense to just let Ubuntu/Debian patch this issue.

I am not really opposed to taking a patch to make it link libbfd
statically on Ubuntu, but I don't have any more stable releases
planned for the 1.0 series, unless it gets broken by a kernel update."""

Changed in sysprof:
status: Unknown → Confirmed
Changed in sysprof:
status: Confirmed → Fix Released
Revision history for this message
Daniel Hahler (blueyed) wrote :

Please don't upload/sponsor the debdiff:
It's been fixed in Debian now, too. See the sync request at bug 186158.

Revision history for this message
Laurent Bigonville (bigon) wrote :

This is fixed in debian an will be fixed with next sync (see bug #186158)

Changed in sysprof:
status: Triaged → Fix Committed
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

Synced.

Changed in sysprof:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.