[PyQt] undefined reference to PyProperty_Type

Tom Brown tom at nextstate.net
Mon Apr 28 14:33:57 BST 2008


Hi,

OS: Ubuntu 64bit
Qt: qt-x11-opensource-src-4.4.0-rc1
sip: sip-4.7.5-snapshot-20080424 
PyQt: PyQt-x11-gpl-4.4-snapshot-20080427

Qt and sip compiled/installed fine. The PyQt compile produced these
errors:

...
sipQtCorecmodule.o: In function `qtcore_pyqtproperty_traverse':
sipQtCorecmodule.cpp:(.text+0xb5): undefined reference to
`PyProperty_Type'
sipQtCorecmodule.o: In function `func_Q_FLAGS':
sipQtCorecmodule.cpp:(.text+0x209): undefined reference to
`_Py_NoneStruct'
sipQtCorecmodule.o: In function `func_Q_ENUMS':
sipQtCorecmodule.cpp:(.text+0x2a9): undefined reference to
`_Py_NoneStruct'
sipQtCorecmodule.o: In function `func_pyqtRestoreInputHook':
sipQtCorecmodule.cpp:(.text+0x332): undefined reference to
`PyOS_InputHook'
sipQtCorecmodule.cpp:(.text+0x343): undefined reference to
`_Py_NoneStruct'
sipQtCorecmodule.o: In function `func_pyqtRemoveInputHook':
sipQtCorecmodule.cpp:(.text+0x3a2): undefined reference to
`PyOS_InputHook'
sipQtCorecmodule.cpp:(.text+0x3b0): undefined reference to
`_Py_NoneStruct'
sipQtCorecmodule.o: In function `func_qRemovePostRoutine':
sipQtCorecmodule.cpp:(.text+0x461): undefined reference to
`_Py_NoneStruct'
sipQtCorecmodule.cpp:(.text+0x482): undefined reference to
`_Py_NoneStruct'
...

There were many more errors like these. I did find in the sip change log
that the build system was modified to remove -Wl,--no-undefined when
generating a Makefile. Then this change was backed out. Does that have
anything to do with these errors? Or am I way off target?

A google search turned up the same errors for an Ubuntu package for PyQt
4.3.1, but no solutions.

Any ideas what I did wrong?

Thanks,
Tom




More information about the PyQt mailing list