[Bug 1336912] [NEW] linunwind unable to find some lzma_ symbols

mbel 1336912 at bugs.launchpad.net
Wed Jul 2 19:43:43 UTC 2014


Public bug reported:

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

** Affects: libunwind (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libunwind in Ubuntu.
https://bugs.launchpad.net/bugs/1336912

Title:
  linunwind unable to find some lzma_ symbols

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libunwind/+bug/1336912/+subscriptions



More information about the Ubuntu-server-bugs mailing list