Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 209495

Summary: dev-python/PyQt-3.17.3 fails - error: 'class QUrl' has no member named 'operator!='
Product: Gentoo Linux Reporter: David Hilton <quercus.aeternam>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: quercus.aeternam
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build output from pyqt-3.17.3 showing build failure

Description David Hilton 2008-02-10 07:13:59 UTC
I have both qt-3.3.8-r4 and qt-4.3.2-r1 installed.  When I try to rebuild pyqt-3.17.3, I get the following error:

sipqtQUrl.cpp: In function 'PyObject* slot_QUrl___ne__(PyObject*, PyObject*)':
sipqtQUrl.cpp:1381: error: 'class QUrl' has no member named 'operator!='
sipqtQUrl.cpp:1395: error: 'class QUrl' has no member named 'operator!='

Looking at the online documentation, I see that qt-3.3 has no != operator (http://doc.trolltech.com/3.3/qurl.html), but qt-4.3 does (http://doc.trolltech.com/4.3/qurl.html).

I don't know if pyqt-3.17.3 should be compiling against qt3 or qt4, but I know that for me, it is attempting to compile against qt3 and is failing.

The error may be the fault of the build script, or an accidental change in pyqt.  

Reproducible: Always

Steps to Reproduce:

Actual Results:  
ebuild fails to build
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-10 07:31:44 UTC
Yeah, sure it attempts to build against qt3 since it's exactly what it should do. For qt4 there's dev-python/PyQt4. 

Attach emerge log here and post emerge --info output and reopen then; thanks.
Comment 2 Tim Whitehead 2008-02-21 04:44:41 UTC
Created attachment 144178 [details]
Build output from pyqt-3.17.3 showing build failure

This is reproducible...

Not sure how to "reopen" this bug...
Comment 3 Tim Whitehead 2008-02-21 04:45:42 UTC
Comment on attachment 144178 [details]
Build output from pyqt-3.17.3 showing build failure

><HTML><HEAD/><BODY><PRE>&gt;&gt;&gt; Unpacking source...
>&gt;&gt;&gt; Unpacking PyQt-x11-gpl-3.17.3.tar.gz to /build/portage/dev-python/PyQt-3.17.3/work
>&gt;&gt;&gt; Source unpacked.
>&gt;&gt;&gt; Compiling source in /build/portage/dev-python/PyQt-3.17.3/work/PyQt-x11-gpl-3.17.3 ...
>qextscintillaglobal.h could not be found in /usr/include and so the qtext
>module will not be built. If QScintilla is installed then use the -n argument
>to explicitly specify the correct directory.
>Checking to see if the qtcanvas module should be built...
>Checking to see if the qtnetwork module should be built...
>Checking to see if the qttable module should be built...
>Checking to see if the qtxml module should be built...
>Checking to see if the qtgl module should be built...
>Checking to see if the qtui module should be built...
>Checking to see if the qtsql module should be built...
>Checking to see if the QAssistantClient class is available...
>Creating features file...
>Checking to see if the QCDEStyle class is built in...
>Checking to see if the QInterlaceStyle class is built in...
>cfgtest.cpp: In function 'int main(int, char**)':
>cfgtest.cpp:5: error: expected type-specifier before 'QInterlaceStyle'
>cfgtest.cpp:5: error: expected `;' before 'QInterlaceStyle'
>Checking to see if the QMotifStyle class is built in...
>Checking to see if the QMotifPlusStyle class is built in...
>Checking to see if the QPlatinumStyle class is built in...
>Checking to see if the QSGIStyle class is built in...
>Checking to see if the QWindowsXPStyle class is built in...
>cfgtest.cpp:1:29: error: qwindowsxpstyle.h: No such file or directory
>cfgtest.cpp: In function 'int main(int, char**)':
>cfgtest.cpp:5: error: expected type-specifier before 'QWindowsXPStyle'
>cfgtest.cpp:5: error: expected `;' before 'QWindowsXPStyle'
>Checking to see if the QWindowsStyle class is built in...
>Qt v3.3.8 free edition is being used.
>SIP 4.7.3 is being used.
>These PyQt modules will be built: qt qtcanvas qtnetwork qttable qtxml qtgl qtui
>qtsql.
>Support for these Qt classes has been disabled: QInterlaceStyle
>QWindowsXPStyle.
>The PyQt modules will be installed in /usr/lib/python2.4/site-packages.
>The PyQt .sip files will be installed in /usr/share/sip.
>The Qt header files are in /usr/qt/3/include.
>The qt-mt Qt library is in /usr/qt/3/lib.
>pyuic will be installed in /usr/bin.
>pylupdate will be installed in /usr/bin.
>Generating the C++ source for the qt module...
>Creating the Makefile for the qt module...
>Generating the C++ source for the qtgl module...
>Creating the Makefile for the qtgl module...
>Generating the C++ source for the qtui module...
>Creating the Makefile for the qtui module...
>Generating the C++ source for the qtcanvas module...
>Creating the Makefile for the qtcanvas module...
>Generating the C++ source for the qtnetwork module...
>Creating the Makefile for the qtnetwork module...
>Generating the C++ source for the qtsql module...
>Creating the Makefile for the qtsql module...
>Generating the C++ source for the qttable module...
>Creating the Makefile for the qttable module...
>Generating the C++ source for the qtxml module...
>Creating the Makefile for the qtxml module...
>Creating top level Makefile...
>Creating pyuic Makefile...
>Creating pylupdate Makefile...
>Creating pyqtconfig.py...
>make[1]: Entering directory `/build/portage/dev-python/PyQt-3.17.3/work/PyQt-x11-gpl-3.17.3/qt'
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtcmodule.o sipqtcmodule.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQPtrList.o sipqtQPtrList.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQWorkspace.o sipqtQWorkspace.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQWMatrix.o sipqtQWMatrix.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQWizard.o sipqtQWizard.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQWidgetStack.o sipqtQWidgetStack.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQWidgetList.o sipqtQWidgetList.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQWhatsThis.o sipqtQWhatsThis.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQWaitCondition.o sipqtQWaitCondition.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQVGroupBox.o sipqtQVGroupBox.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQVButtonGroup.o sipqtQVButtonGroup.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQVBox.o sipqtQVBox.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQVariant.o sipqtQVariant.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQValueList.o sipqtQValueList.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQRegExpValidator.o sipqtQRegExpValidator.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQDoubleValidator.o sipqtQDoubleValidator.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQIntValidator.o sipqtQIntValidator.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQValidator.o sipqtQValidator.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQUuid.o sipqtQUuid.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQUrlOperator.o sipqtQUrlOperator.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQUrlInfo.o sipqtQUrlInfo.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQUrl.o sipqtQUrl.cpp
>i686-pc-linux-gnu-g++ -c -pipe -fPIC -O2 -march=athlon -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.4 -I/usr/qt/3/mkspecs/linux-g++ -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQTranslator.o sipqtQTranslator.cpp
>sipqtQUrl.cpp: In function 'PyObject* slot_QUrl___ne__(PyObject*, PyObject*)':
>sipqtQUrl.cpp:1381: error: 'class QUrl' has no member named 'operator!='
>sipqtQUrl.cpp:1395: error: 'class QUrl' has no member named 'operator!='
>make[1]: *** [sipqtQUrl.o] Error 1
>make[1]: *** Waiting for unfinished jobs....
>make[1]: Leaving directory `/build/portage/dev-python/PyQt-3.17.3/work/PyQt-x11-gpl-3.17.3/qt'
>make: *** [all] Error 2
> [31;01m*[0m 
> [31;01m*[0m ERROR: dev-python/PyQt-3.17.3 failed.
> [31;01m*[0m Call stack:
> [31;01m*[0m               ebuild.sh, line   49:  Called src_compile
> [31;01m*[0m             environment, line 2290:  Called die
> [31;01m*[0m The specific snippet of code:
> [31;01m*[0m       emake || die "emake failed"
> [31;01m*[0m  The die message:
> [31;01m*[0m   emake failed
> [31;01m*[0m 
> [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
> [31;01m*[0m A complete build log is located at '/build/portage/dev-python/PyQt-3.17.3/temp/build.log'.
> [31;01m*[0m The ebuild environment file is located at '/build/portage/dev-python/PyQt-3.17.3/temp/environment'.
> [31;01m*[0m 
></PRE></BODY></HTML>
Comment 4 David Hilton 2008-02-21 04:54:10 UTC
Apologies for not seeing the first comment; I just received an email telling me of the updates.

Tim has added the failed build output.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-21 07:51:18 UTC

*** This bug has been marked as a duplicate of bug 209505 ***