Comment 3 for bug 594919

Revision history for this message
Stefano Rivera (stefanor) wrote : Re: test failed on PylibLZMA

Here's the issue:
PYTHONPATH=build/lib.linux-x86_64-2.7 python2.7 -c 'import lzma'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: /tmp/buildd/python-lzma-0.5.3/build/lib.linux-x86_64-2.7/lzma.so: undefined symbol: PyOS_mystricmp

src/liblzma.h includes Python.h, so I assume it wants to be linked to libpython?

Here's a patch, linking the extension with libpythonXX. I assume it's the correct thing to do?