libunwind-1.8.1

Introduction to libunwind

The libunwind package contains a portable and efficient C programming interface (API) to determine the call-chain of a program. The API additionally provides the means to manipulate the preserved (callee-saved) state of each call-frame and to resume execution at any point in the call-chain (non-local goto). The API supports both local (same-process) and remote (across-process) operation.

Installation of libunwind

Install libunwind by running the following commands:

./configure --prefix=/usr --disable-static &&
make

To test the results, issue: make check. Two tests, run-coredump-unwind and run-coredump-unwind-mdi, are skipped.

Now, as the root user:

make install

32-bit Installation of libunwind

First clean the directory:

make clean

Install lib32-libunwind by running the following commands:

CC="gcc -m32" CXX="g++ -m32"                     \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig             \
./configure --prefix=/usr                        \
            --libdir=/usr/lib32                  \
            --host=i686-pc-linux-gnu             \
            --disable-static &&

make

Now, as the root user:

make DESTDIR=$PWD/DESTDIR install                      &&
cp -vr DESTDIR/usr/lib32/* /usr/lib32                  &&
cp -v DESTDIR/usr/include/libunwind-x86.h /usr/include &&
rm -rf DESTDIR                                         &&
ldconfig

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

Contents

Installed Programs: None
Installed Libraries: libunwind.so, libunwind-coredump.so, libunwind-generic.so (symlink to libunwind-x86*.so), libunwind-ptrace.so, libunwind-setjmp.so, and libunwind-x86_64.so (libunwind-x86.so on i686)
Installed Directories: /usr/libexec/libunwind