[pkg-boost-devel] Bug#734504: Bug#734504: libboost-python1.54-dev: shared library not linked against python

Simon Richter sjr at debian.org
Tue Jan 7 18:46:25 UTC 2014


Hi,

On 07.01.2014 18:45, Dimitri John Ledkov wrote:

>> /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to `PyList_Sort'

>> It appears that the shared library is not linked against python.

> Do you have a full build log & source-code/package available to inspect?

Difficult -- it's the hg version of luxrays I was trying to build.

The problem is fairly obvious though:

$ nm -D /usr/lib/x86_64-linux-gnu/libboost_python.so | grep \ Py

gives a set of undefined symbols that would be provided by libpython2.7

$ nm -D /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 | grep \ Py

but libboost_python.so is not linked against libpython2.7:

$ ldd
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_python.so
        linux-vdso.so.1 (0x00007fff809ef000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1
(0x00007fd5390d9000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fd538ebd000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd538cb8000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd538ab0000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007fd5387ad000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd5384ae000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
(0x00007fd538298000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd537eec000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fd53954b000)

   Simon



More information about the pkg-boost-devel mailing list