linunwind unable to find some lzma_ symbols

Bug #1336912 reported by mbel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libunwind (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I'm trying to build perf with dwarf support and found that libunwind, which is needed for that, is unusable for perf. The following simple test from perf configure script

gcc -o test-libunwind test-libunwind.c -lunwind -lunwind-x86 -lelf

fails with the following errors

/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libunwind-x86.so: undefined reference to `lzma_stream_buffer_decode'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libunwind-x86.so: undefined reference to `lzma_index_uncompressed_size'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libunwind-x86.so: undefined reference to `lzma_index_end'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libunwind-x86.so: undefined reference to `lzma_index_buffer_decode'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libunwind-x86.so: undefined reference to `lzma_stream_footer_decode'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libunwind-x86.so: undefined reference to `lzma_index_size'
collect2: error: ld returned 1 exit status

mentioned symbols are actually exists in liblzma.so (provided by liblzma-dev) but are not found by libunwind. Moreover, adding -llzma to the command line above does not solve the problem, everything is the same

strangely, while requiring all these symbols, libunwind-x86.so requires only libc.so and doesn't mention liblzma.so.6. Looks like some building bug

system info:

"lsb_release -rd" output
Description: Ubuntu 14.04 LTS
Release: 14.04

"apt-cache policy pkgname" output
libunwind8-dev:
  Installed: 1.1-2.2ubuntu3
  Candidate: 1.1-2.2ubuntu3
  Version table:
 *** 1.1-2.2ubuntu3 0
        500 http://mirror.yandex.ru/ubuntu/ trusty/main i386 Packages
        100 /var/lib/dpkg/status

Tags: patch
Revision history for this message
mbel (mbel) wrote :

actually when I tried to rebuild libunwind by myself I found that there are a lot of warnings printed during packaging process. Like:

dpkg-shlibdeps: warning: symbol lzma_index_buffer_decode used by debian/libunwind8/usr/lib/i386-linux-gnu/libunwind-x86.so.8.0.1 found in none of the libraries
(about 20 such warnings)

Looks like lzma compression for symbols is a relatively new feature and not fully tested on all architectures. I created a fix which solves problem and removes all warnings on x86 platform. Sorry, I do not have x86_64 to test how it works there

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch for lzma and other warnings (quick and dirty)" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

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

This bug was fixed in the package libunwind - 1.1-3ubuntu1

---------------
libunwind (1.1-3ubuntu1) utopic; urgency=medium

  * Merge with Debian; remaining changes:
     - Enable test suite for amd64 architecture:
       + d/rules: Execute test suite when building for amd64 only.
       + d/patches/20123007_workaround_test-ptrace.patch: Walk default test
         arguments to ensure child process has visibility.
     - d/p/AArch64-port.diff: Add Aarch64 port.
     - d/p/ppc64el.diff: Add PPC64 LE port.
  * d/patches/fix-lzma-linking.patch: Fix lzma linking for all supported
    architectures. LP: #1336912.

libunwind (1.1-3) unstable; urgency=low

  * Added a new patch: debian/patches/20140507-ppc_lib64.patch
    to fix FTBFS on ppc64 by using /usr/lib instread of /usr/lib64.
    Thanks to Hiroyuki Yamamoto for sending a patch. (Closes: #747157)
  * debian/libunwind-setjmp0.postinst: Cleanup diversions from wheezy.
    Thanks to Andreas Beckmann for sending a patch. (Closes: #739383)
 -- Matthias Klose <email address hidden> Thu, 03 Jul 2014 09:18:17 +0200

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