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

Phil Thompson phil at riverbankcomputing.com
Sun Jan 29 11:11:20 GMT 2012


On Sun, 29 Jan 2012 05:00:44 +0100, Arfrever Frehtes Taifersar Arahesis
<arfrever.fta at gmail.com> 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

Whoops - fixed for tonight's snapshot.

To fix just change the "return" to "return 0".

Phil


More information about the PyQt mailing list