symbol lookup error: /usr/lib/libopagent.so: undefined symbol: bfd_init

Bug #1148682 reported by Ryo Onodera
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
oprofile (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

libopagent.so have to be linked to libbfd.

I just created a tiny patch for it. However, I'm not sure if this is the right way to fix it..

Please review this.

ldd's change:

Before:

ryoqun@rrm:~/rubinius/ryoqun$ ldd /usr/lib/libopagent.so
        linux-vdso.so.1 => (0x00007fff0c39a000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb3cfc55000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb3d0238000)

After:

ryoqun@rrm:~/rubinius/ryoqun$ ldd /usr/lib/libopagent.so
        linux-vdso.so.1 => (0x00007fff5f1ff000)
        libbfd-2.22.90-system.20120924.so => /usr/lib/libbfd-2.22.90-system.20120924.so (0x00007f88dc80b000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f88dc44c000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f88dc247000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f88dc030000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f88dcd3d000)

Tags: patch
Revision history for this message
Ryo Onodera (ryoqun) wrote :
Ryo Onodera (ryoqun)
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "oprofile-link-libbfd.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Ryo Onodera (ryoqun) wrote :

As reported at Bug 1154025, my original patch wasn't correct. We need to link statically to libbfd.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in oprofile (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oprofile - 0.9.9-0ubuntu7

---------------
oprofile (0.9.9-0ubuntu7) trusty; urgency=medium

  * Drop debian/patches/static-libbfd-libopagnet-makefile.patch, which is
    causing libopagent to incorrectly avoid linking with libbfd, instead of
    linking with the available libbfd.so.
  * Amend debian/patches/static-libbfd.patch; we'll still link oprofile
    statically, but we want libopagent linked dynamically. LP: #1148682.
 -- Steve Langasek <email address hidden> Tue, 11 Mar 2014 02:33:39 +0000

Changed in oprofile (Ubuntu):
status: Confirmed → 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.