Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148336 - dev-python/PyQt-3.15.1 fails to compile with python-2.5
Summary: dev-python/PyQt-3.15.1 fails to compile with python-2.5
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 148396 148397 (view as bug list)
Depends on:
Blocks: python-2.5
  Show dependency tree
 
Reported: 2006-09-20 04:38 UTC by Krzysztof Pawlik (RETIRED)
Modified: 2006-10-10 14:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Pawlik (RETIRED) gentoo-dev 2006-09-20 04:38:41 UTC
>>> Emerging (1 of 2) dev-python/PyQt-3.15.1 to /
 * PyQt-x11-gpl-3.15.1.tar.gz MD5 ;-) ...                                                                                                   [ ok ]
 * PyQt-x11-gpl-3.15.1.tar.gz size ;-) ...                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking PyQt-x11-gpl-3.15.1.tar.gz to /var/tmp/portage/PyQt-3.15.1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/PyQt-3.15.1/work/PyQt-x11-gpl-3.15.1 ...
SIP 4.3.2 is being used.
QScintilla 1.6 is being used.
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 qtext 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...
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...
Checking to see if the QWindowsStyle class is built in...
These PyQt modules will be built: qt qtcanvas qtnetwork qttable qtxml qtgl qtui
qtsql qtext.
Support for these Qt classes has been disabled: QInterlaceStyle
QWindowsXPStyle.
The PyQt modules will be installed in //usr/lib/python2.5/site-packages.
The PyQt .sip files will be installed in //usr/share/sip.
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 qtext module...
Creating the Makefile for the qtext module...
Generating the C++ source for the qtgl module...
Creating the Makefile for the qtgl module...
Generating the C++ source for the qtsql module...
Creating the Makefile for the qtsql 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 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 pyuic Makefile...
Creating pylupdate Makefile...
Creating top level Makefile...
Creating pyqtconfig.py...
make[1]: Entering directory `/var/tmp/portage/PyQt-3.15.1/work/PyQt-x11-gpl-3.15.1/qt'
i686-pc-linux-gnu-g++ -c -pipe -march=pentium-m -O2 -pipe -fPIC -march=pentium-m -O2 -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.5 -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtcmodule.o sipqtcmodule.cpp
i686-pc-linux-gnu-g++ -c -pipe -march=pentium-m -O2 -pipe -fPIC -march=pentium-m -O2 -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.5 -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQWorkspace.o sipqtQWorkspace.cpp
i686-pc-linux-gnu-g++ -c -pipe -march=pentium-m -O2 -pipe -fPIC -march=pentium-m -O2 -pipe -fno-strict-aliasing -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.5 -I/usr/qt/3/include -I/usr/X11R6/include -o sipqtQWMatrix.o sipqtQWMatrix.cpp
sipqtQWMatrix.cpp: In function 'PyObject* slot_QWMatrix___mul__(PyObject*, PyObject*)':
sipqtQWMatrix.cpp:646: error: 'struct PyHeapTypeObject' has no member named 'type'
sipqtQWMatrix.cpp: In function 'PyObject* slot_QWMatrix___imul__(PyObject*, PyObject*)':
sipqtQWMatrix.cpp:720: error: 'struct PyHeapTypeObject' has no member named 'type'
make[1]: *** [sipqtQWMatrix.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/PyQt-3.15.1/work/PyQt-x11-gpl-3.15.1/qt'
make: *** [all] Error 2

!!! ERROR: dev-python/PyQt-3.15.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  PyQt-3.15.1.ebuild, line 45:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


The same case as with dev-python/sip - see bug #148277. I'll try to attach a patch as soon as possible.
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-09-20 05:34:10 UTC
PyQt doesn't compile because sip generates wrong code (super.type instead of super.ht_type) - it should be fixed in sip itself, not in machine generated code in PyQt.
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-09-20 11:22:50 UTC
*** Bug 148396 has been marked as a duplicate of this bug. ***
Comment 3 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-09-20 11:24:12 UTC
*** Bug 148397 has been marked as a duplicate of this bug. ***
Comment 4 Chris Smith 2006-10-09 11:55:27 UTC
Just to note that the patch supplied in http://bugs.gentoo.org/show_bug.cgi?id=148277 allows sip to emerge with python-2.5 but PyQT still does not emerge (at least on amd64):

sip/qt/qstringlist.sip: In function ‘PyObject* slot_QStringList___getitem__(PyObject*, PyObject*)’:
sip/qt/qstringlist.sip:189: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int PySlice_GetIndicesEx(PySliceObject*, Py_ssize_t, Py_ssize_t*, Py_ssize_t*, Py_ssize_t*, Py_ssize_t*)’
sip/qt/qstringlist.sip: In function ‘int slot_QStringList___delitem__(PyObject*, PyObject*)’:
sip/qt/qstringlist.sip:161: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int PySlice_GetIndicesEx(PySliceObject*, Py_ssize_t, Py_ssize_t*, Py_ssize_t*, Py_ssize_t*, Py_ssize_t*)’
sip/qt/qstringlist.sip: In function ‘int slot_QStringList___setitem__(PyObject*, PyObject*)’:
sip/qt/qstringlist.sip:118: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int PySlice_GetIndicesEx(PySliceObject*, Py_ssize_t, Py_ssize_t*, Py_ssize_t*, Py_ssize_t*, Py_ssize_t*)’
make[1]: *** [sipqtQStringList.o] Error 1
make[1]: *** Waiting for unfinished jobs....
sip/qt/qstring.sip: In function ‘PyObject* slot_QString___getitem__(PyObject*, PyObject*)’:
sip/qt/qstring.sip:757: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int PySlice_GetIndicesEx(PySliceObject*, Py_ssize_t, Py_ssize_t*, Py_ssize_t*, Py_ssize_t*, Py_ssize_t*)’
make[1]: *** [sipqtQString.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/PyQt-3.15.1/work/PyQt-x11-gpl-3.15.1/qt'
make: *** [all] Error 2
Comment 5 Chris Smith 2006-10-10 14:05:32 UTC
Using the current snapshots at
http://www.riverbankcomputing.com/Downloads/Snapshots/ allows sip to emerge fine and once installed the current snapshot of PyQt (PyQt3) will emerge fine as well (litte choice after the python upgrade - had to get Luma working again).