[pkg-boost-devel] Bug#631079: Bug#631079: [boost1.46] Please build boost.python for pythonX-dbg too

Steve M. Robbins steve at sumost.ca
Mon Jun 20 02:10:17 UTC 2011


On Mon, Jun 20, 2011 at 01:30:25AM +0200, Cristian Greco wrote:

> $ python-dbg -c "import libtorrent"
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> ImportError: /usr/lib/libboost_python-py26.so.1.46.1: undefined symbol: Py_InitModule4_64
> [15005 refs]
> 
> This error is obliviously due to the fact boost.python is built against
> pythonX and not pythonX-dbg.

This is not obvious to me.  In the past [1], this symptom has been traced to a mismatch
between the python version used to build Boost and the python version used to build
the application -- i.e. python-libtorrent.

I note that python2.6 (2.6.7-1) was recently uploaded.  So first question is: does a
rebuild of python WITHOUT CHANGES fix the problem?


The boost python library references Py_InitModule4_64 but does
not define it:

  $ objdump --demangle -T /usr/lib/libboost_python-py26.so.1.46.1| grep Py_InitModule4_64
  0000000000000000      D  *UND*  0000000000000000              Py_InitModule4_64

The python library defines this symbol:

  $ objdump -T --demangle /usr/lib/libpython2.6.so |grep Py_InitModule4
  000000000010d970 g    DF .text  00000000000002c7  Base        Py_InitModule4_64

Nothing in /usr/share/doc/python2.6-dbg/README.debug suggests it would be needed to
define this symbol.



[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=430659

-Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20110619/271dc4c2/attachment.pgp>


More information about the pkg-boost-devel mailing list