FS#23130 - [boost] undefined symbols in /usr/lib/libboost_python.so.1.46.0

Attached to Project: Arch Linux
Opened by Michael Schubert (mschu) - Friday, 04 March 2011, 09:37 GMT
Last edited by Ionut Biru (wonder) - Wednesday, 19 October 2011, 14:20 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Kevin Piche (kpiche)
Ionut Biru (wonder)
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Issue  FS#22800  should be fixed with boost 1.46 from testing but it is not. When trying to use python3 C++-bindings, the same error still occurs:

ImportError: /usr/lib/libboost_python.so.1.46.0: undefined symbol: PyClass_Type

ldd still has the same output:

> ldd -r /usr/lib/libboost_python.so.1.46.0
linux-gate.so.1 => (0xb783a000)
libutil.so.1 => /lib/libutil.so.1 (0xb77bb000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb77a2000)
libdl.so.2 => /lib/libdl.so.2 (0xb779e000)
librt.so.1 => /lib/librt.so.1 (0xb7795000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb76a5000)
libm.so.6 => /lib/libm.so.6 (0xb767f000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7663000)
libc.so.6 => /lib/libc.so.6 (0xb7517000)
/lib/ld-linux.so.2 (0xb783b000)
undefined symbol: PyExc_ImportError (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyProperty_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyExc_StopIteration (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyBool_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyClass_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyExc_ValueError (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyList_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: _Py_NotImplementedStruct (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyExc_TypeError (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyInt_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyComplex_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyExc_ReferenceError (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyModule_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyBaseObject_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyFloat_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyExc_IndexError (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyUnicode_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyTuple_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyExc_RuntimeError (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyType_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyMethod_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyStaticMethod_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyLong_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: _Py_NoneStruct (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyExc_OverflowError (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyExc_AttributeError (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyCFunction_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyString_Type (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyType_GenericAlloc (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyList_Insert (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyString_InternFromString (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyString_AsString (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyUnicodeUCS4_FromEncodedObject (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyImport_Import (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_InPlaceRshift (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_CallMethod (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyIter_Next (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_Remainder (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyType_Ready (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: _PyEval_SliceIndex (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyFile_AsFile (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyLong_FromUnsignedLong (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyMem_Free (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_InPlaceXor (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_InPlaceOr (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyBool_FromLong (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_Items (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_InPlaceRemainder (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyErr_NoMemory (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyComplex_ImagAsDouble (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_IsTrue (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_Lshift (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_InPlaceMultiply (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: _PyObject_New (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_GetItem (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyString_FromStringAndSize (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_InPlaceLshift (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyString_Size (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_Update (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyComplex_RealAsDouble (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyErr_Format (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_And (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyUnicodeUCS4_AsWideChar (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_InPlaceAdd (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_GetAttr (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyErr_ExceptionMatches (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyErr_Occurred (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_Copy (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyArg_ParseTupleAndKeywords (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_Divide (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyEval_GetGlobals (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_Keys (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyErr_SetObject (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_Multiply (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyRun_FileExFlags (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_Size (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyString_FromString (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyString_FromFormat (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_InPlaceAnd (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyInt_FromLong (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_Size (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_GetItem (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_SetItem (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyInt_AsLong (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_RichCompare (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyCFunction_NewEx (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_Values (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_Rshift (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyStaticMethod_New (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyType_IsSubtype (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_Add (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyList_Sort (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PySequence_DelSlice (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyErr_WarnEx (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_Xor (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_ClearWeakRefs (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_Subtract (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PySlice_New (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_GetAttrString (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_IsInstance (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyRun_StringFlags (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_SetAttrString (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyWeakref_NewRef (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyErr_NewException (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyList_Append (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_SetAttr (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_GetItemString (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_InPlaceDivide (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyLong_AsLongLong (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyLong_AsUnsignedLongLong (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_Or (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_DelItem (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyNumber_InPlaceSubtract (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: Py_InitModule4 (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyMethod_New (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyEval_CallFunction (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PySequence_GetSlice (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyTuple_Size (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyImport_ImportModule (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyErr_Clear (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyTuple_New (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyTuple_GetItem (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyErr_SetString (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyObject_CallFunction (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyList_Reverse (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyFile_FromString (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: _PyType_Lookup (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyList_New (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyMem_Malloc (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyCallable_Check (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_Clear (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PySequence_SetSlice (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyLong_AsUnsignedLong (/usr/lib/libboost_python.so.1.46.0)
undefined symbol: PyDict_New (/usr/lib/libboost_python.so.1.46.0)
This task depends upon

Closed by  Ionut Biru (wonder)
Wednesday, 19 October 2011, 14:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.47.0
Comment by Ionut Biru (wonder) - Friday, 04 March 2011, 09:53 GMT
how do you compile your application? do you pass -lpython3 ?
Comment by Michael Schubert (mschu) - Friday, 04 March 2011, 10:23 GMT
Yes. Here is my PKGBUILD and patch (note that the .so is not yet added to the library path).
Comment by Ionut Biru (wonder) - Friday, 04 March 2011, 10:37 GMT
the fun part is that it compiled fine for me.

==> Finished making: pythonmagick 0.9.4-1 (Fri Mar 4 10:33:40 UTC 2011)
┌─[ ioni @ alderaan ] - [ ~/packages/la ]
└─[$]> ls
fix_ssize.patch PKGBUILD pythonmagick-0.9.4-1-i686.pkg.tar.xz PythonMagick-0.9.4.tar.gz
┌─[ ioni @ alderaan ] - [ ~/packages/la ]
└─[$]> als pythonmagick-0.9.4-1-i686.pkg.tar.xz
-rw-r--r-- root/root 562 2011-03-04 02:33 .PKGINFO
drwxr-xr-x root/root 0 2011-03-04 02:33 usr/
drwxr-xr-x root/root 0 2011-03-04 02:33 usr/lib/
drwxr-xr-x root/root 0 2011-03-04 02:33 usr/lib/python3.2/
drwxr-xr-x root/root 0 2011-03-04 02:33 usr/lib/python3.2/site-packages/
drwxr-xr-x root/root 0 2011-03-04 02:33 usr/lib/python3.2/site-packages/PythonMagick/
-rw-r--r-- root/root 399 2011-03-04 02:33 usr/lib/python3.2/site-packages/PythonMagick/__init__.py
-rwxr-xr-x root/root 1065 2011-03-04 02:33 usr/lib/python3.2/site-packages/PythonMagick/_PythonMagick.la
-rwxr-xr-x root/root 2462824 2011-03-04 02:33 usr/lib/python3.2/site-packages/PythonMagick/_PythonMagick.so
-rw-r--r-- root/root 1128 2011-03-04 02:33 usr/lib/python3.2/site-packages/PythonMagick/__init__.pyo
-rw-r--r-- root/root 8021172 2011-03-04 02:33 usr/lib/python3.2/site-packages/PythonMagick/_PythonMagick.a
-rw-r--r-- root/root 1128 2011-03-04 02:33 usr/lib/python3.2/site-packages/PythonMagick/__init__.pyc
Comment by Michael Schubert (mschu) - Friday, 04 March 2011, 10:57 GMT
Have you tried importing the module?

> cd /usr/lib/python3.2/site-packages/PythonMagick
> python -c "import _PythonMagick"
Comment by Ionut Biru (wonder) - Friday, 04 March 2011, 13:02 GMT
ok. we are not the only ones who have this problem. I suggest to report it upstream and paste the link here and i would add additional infos, if required.
Comment by Michael Schubert (mschu) - Friday, 04 March 2011, 14:24 GMT Comment by Thomas Dziedzic (tomd123) - Tuesday, 08 March 2011, 16:51 GMT
Hey mschu,
Can you try what the last comment [1] suggests to try?

[1] - https://svn.boost.org/trac/boost/ticket/5263#comment:2
Comment by Michael Schubert (mschu) - Friday, 18 March 2011, 20:53 GMT
I tried it with Ionut's user-config.jam, tests seem to work (see link above)

Loading...