FS#32277 - [boost] python binding raise undefined references

Attached to Project: Arch Linux
Opened by Filip Volejnik (volca) - Monday, 29 October 2012, 13:16 GMT
Last edited by Stéphane Gaudreault (stephane) - Friday, 11 January 2013, 15:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Stéphane Gaudreault (stephane)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Boost python seems to be broken. It reports undefined references to following symbols when compiling a small test:

/usr/lib/libboost_python3.so: undefined reference to `PyUnicodeUCS4_FromEncodedObject'
/usr/lib/libboost_python3.so: undefined reference to `PyUnicodeUCS4_FromString'
/usr/lib/libboost_python3.so: undefined reference to `PyUnicodeUCS4_AsWideChar'
/usr/lib/libboost_python3.so: undefined reference to `PyUnicodeUCS4_FromStringAndSize'
/usr/lib/libboost_python3.so: undefined reference to `_PyUnicode_AsString'
/usr/lib/libboost_python3.so: undefined reference to `PyUnicodeUCS4_FromFormat'
/usr/lib/libboost_python3.so: undefined reference to `PyUnicodeUCS4_AsUTF8String


Additional info:
* package version(s):
extra/boost 1.50.0-2
extra/boost-libs 1.50.0-2
extra/python 3.3.0-1


Steps to reproduce:

cat > test_boost.c <<EOF
int main ()
{
return 0;
}
EOF

gcc -o test_boost -L/usr/lib -lboost_python3 -lpython3 test_boost.c
This task depends upon

Closed by  Stéphane Gaudreault (stephane)
Friday, 11 January 2013, 15:51 GMT
Reason for closing:  Works for me
Comment by Filip Volejnik (volca) - Monday, 29 October 2012, 13:22 GMT
Tested against python 3.2.3-3, there was no bug. It seems to me new python is missing the listed symbols. Maybe (guess) --enable-unicode=ucs4 was ommited from python build.


 FS#10760  is related to this.
Comment by Stéphane Gaudreault (stephane) - Wednesday, 09 January 2013, 01:22 GMT
Work for me with

boost 1.50.0-3
python 3.3.0-3

Loading...