[PyQt] PyQt4 fails to build dbus.mainloop.qt extension with Python 3

Scott Kitterman debian at kitterman.com
Sun Jan 29 04:13:26 GMT 2012


On Sunday, January 29, 2012 05:00:44 AM Arfrever Frehtes Taifersar Arahesis 
wrote:
> 2012-01-27 11:42:04 Phil Thompson napisał(a):
> > Try tonight's PyQt snapshot - completely untested.
> 
> dbus.cpp: In function ‘dbus_bool_t add_watch(DBusWatch*, void*)’:
> dbus.cpp:39:14: warning: ‘int dbus_watch_get_fd(DBusWatch*)’ is deprecated
> (declared at /usr/include/dbus-1.0/dbus/dbus-connection.h:450)
> dbus.cpp:39:37: warning: ‘int dbus_watch_get_fd(DBusWatch*)’ is deprecated
> (declared at /usr/include/dbus-1.0/dbus/dbus-connection.h:450) dbus.cpp: In
> function ‘void remove_watch(DBusWatch*, void*)’:
> dbus.cpp:72:14: warning: ‘int dbus_watch_get_fd(DBusWatch*)’ is deprecated
> (declared at /usr/include/dbus-1.0/dbus/dbus-connection.h:450)
> dbus.cpp:72:37: warning: ‘int dbus_watch_get_fd(DBusWatch*)’ is deprecated
> (declared at /usr/include/dbus-1.0/dbus/dbus-connection.h:450) dbus.cpp: In
> function ‘void toggle_watch(DBusWatch*, void*)’:
> dbus.cpp:104:14: warning: ‘int dbus_watch_get_fd(DBusWatch*)’ is deprecated
> (declared at /usr/include/dbus-1.0/dbus/dbus-connection.h:450)
> dbus.cpp:104:37: warning: ‘int dbus_watch_get_fd(DBusWatch*)’ is deprecated
> (declared at /usr/include/dbus-1.0/dbus/dbus-connection.h:450) dbus.cpp: In
> function ‘PyObject* DBusQtMainLoop(PyObject*, PyObject*, PyObject*)’:
> dbus.cpp:344:51: warning: deprecated conversion from string constant to
> ‘char*’ dbus.cpp: In function ‘PyObject* PyInit_qt()’:
> dbus.cpp:408:5: warning: missing initializer for member
> ‘PyModuleDef_Base::m_init’ dbus.cpp:408:5: warning: missing initializer for
> member ‘PyModuleDef_Base::m_index’ dbus.cpp:408:5: warning: missing
> initializer for member ‘PyModuleDef_Base::m_copy’ dbus.cpp:408:5: warning:
> missing initializer for member ‘PyModuleDef::m_reload’ dbus.cpp:408:5:
> warning: missing initializer for member ‘PyModuleDef::m_traverse’
> dbus.cpp:408:5: warning: missing initializer for member
> ‘PyModuleDef::m_clear’ dbus.cpp:408:5: warning: missing initializer for
> member ‘PyModuleDef::m_free’ dbus.cpp:413:9: error: return-statement with
> no value, in function returning ‘PyObject*’ make[1]: *** [dbus.o] Error 1

The Ubuntu patch that Jonathan Riddell mentioned at least compiles.  You might 
give that a try.

Scott K


More information about the PyQt mailing list