[PyQt] PyQt4 snapshot build issue with Qt 4.4.3

Hans-Peter Jansen hpj at urpla.net
Wed Jan 5 12:35:45 GMT 2011


On Tuesday 04 January 2011, 15:31:53 Phil Thompson wrote:
> On Tue, 4 Jan 2011 13:35:14 +0100, "Hans-Peter Jansen"
> <hpj at urpla.net>
>
> wrote:
> > Hi Phil,
> >
> > wishing you a Happy New Year.
> >
> > Starting over right away, current PyQt4 snapshots seem to suffer
> > from a build issue with Qt 4.4.3 resulting in:
> >
> > g++ -c -pipe -march=i586 -mtune=i686  -fmessage-length=0 -O2 -Wall
> > -D_FORTIFY_SOURCE=2 -fstack-protector  -funwind-tables
> > -fasynchronous-unwind-tables -g -fno-strict-aliasing -g  -fPIC
> > -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
> > -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore
> > -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui
> > -I/usr/include -I/usr/include/python2.6 -I../../QtCore -I. -I. -I.
> > -o qpycore_pyqtmethodproxy.o qpycore_pyqtmethodproxy.cpp
> > qpycore_pyqtmethodproxy.cpp: In function 'PyObject*
> > pyqtMethodProxy_call(PyObject*, PyObject*, PyObject*)':
> > qpycore_pyqtmethodproxy.cpp:195: error: 'class QMetaMethod' has no
> > member named 'invoke'
> >
> > Full build log:
>
> https://build.opensuse.org/package/live_build_log?arch=i586&package=p
>ython-qt4&project=home%3Afrispete%3APyQt-next&repository=openSUSE_11.1
>
> Should be fixed in tonight's snapshot.

Unfortunately, it morphed into another issue:

g++ -c -pipe -march=i586 -mtune=i686  -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector  -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing -g  -fPIC -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED  -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore  -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui  -I/usr/include -I/usr/include/python2.6 -I../../QtCore -I. -I. -I. -o  
qpycore_qstring.o qpycore_qstring.cpp
qpycore_qobject_getattr.cpp: In function 'PyObject* 
qpycore_qobject_getattr(QObject*, PyObject*, const char*)':
qpycore_qobject_getattr.cpp:60: error: 'Constructor' is not a member 
of 'QMetaMethod'
make[2]: *** [qpycore_qobject_getattr.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory 
`/usr/src/packages/BUILD/PyQt-x11-gpl-snapshot-4.8.3-f24d690e72b9/qpy/QtCore'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/usr/src/packages/BUILD/PyQt-x11-gpl-snapshot-4.8.3-f24d690e72b9/qpy'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.82785 (%build)

The Constructor is missing in the MethodType enum of this version:

	http://doc.qt.nokia.com/4.4/qmetamethod.html

> BTW, if there is a way to mail me directly with build problems then
> feel free to do so - rather you having to do it manually.

There's no such service available ATM, and it would be questionable as 
long as build service vm instances hang as often as they do now (about 
one of 50 builds). Nevertheless, it's a fantastic service.

I have no problem to mail these issues manually, as I regard this as my 
own humble contribution to this fine project (and I regret to not have 
enough time to supply a fix, while at it..). 

Pete



More information about the PyQt mailing list