[PyKDE] Recent sip, PyQt, PyKDE snapshot - error during building kdecore/ void release_Display(void*, int) - dumbfix.

Mateusz Korniak mateusz at ant.gliwice.pl
Thu Apr 27 14:13:37 BST 2006


On Monday 24 April 2006 14:07, Mateusz Korniak wrote:
> I have such problem building latest PyKDE:

I dumbfixed it forcing to qvariant.h be included much more early.
Seems it fixed building and long awaited pyKDE for 3.5.2 works for me as 
charm :) , though I have no idea if it is right way of fixing....
Just info ...

>
> M python-PyKDE.spec
> # $Revision: 1.35 $, $Date: 2006/01/14 16:52:53 $
> Available branches: AC-branch RA-branch
> PyKDE-snapshot20060422.tar.gz having proper md5sum already exists
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.39153
> + umask 022
> + cd /home/users/matkor/rpm/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + :
> + unset LINGUAS
> + :
> + cd /home/users/matkor/rpm/BUILD
> + rm -rf PyKDE-snapshot20060422
> + tar -xf -
> + /bin/gzip -dc
> /home/users/matkor/rpm/SOURCES/PyKDE-snapshot20060422.tar.gz + STATUS=0
> + [ 0 -ne 0 ]
> + cd PyKDE-snapshot20060422
> + /bin/id -u
> + [ 500 = 0 ]
> + true .
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.39153
> + umask 022
> + cd /home/users/matkor/rpm/BUILD
> + cd PyKDE-snapshot20060422
> + LANG=C
> + export LANG
> + unset DISPLAY
> + :
> + unset LINGUAS
> + :
> + python
> configure.py -d /usr/lib/python2.4/site-packages -n /usr/lib -v
> /usr/share/sip -c -j 3
>
>      PyKDE version 3.15.2
>            -------
>
> Python include directory is /usr/include/python2.4
> Python version is 2.4.3
>
> sip version is 4.4.2 (4.4.2)
>
> Qt directory is /usr
> Qt version is 3.3.6
>
> PyQt directory is /usr/share/sip
> PyQt version is 3.16 (3.16.0)
>
> gcc version 3.3.6
> concatenating files
>
> KDE base directory is /usr
> KDE include directory is /usr/include
> KDE lib directory is /usr/lib
> lib directory is lib
> KDE version is 3.5.2 (0x30502)
>
> PyKDE modules will be installed in /usr/lib/python2.4/site-packages
> PyKDE .sip files will be installed in /usr/share/sip
>
> PyKDE modules to be built:
>    dcop kdecore kdefx kdeui kio kresources kabc kutils kfile kparts khtml
> kspell kdeprint kmdi
>
> Generating the C++ source for the dcop module...
> Creating the Makefile for the dcop module...
>
> Generating the C++ source for the kdecore module...
> Creating the Makefile for the kdecore module...
>
> Generating the C++ source for the kdefx module...
> Creating the Makefile for the kdefx module...
>
> Generating the C++ source for the kdeui module...
> Creating the Makefile for the kdeui module...
>
> Generating the C++ source for the kio module...
> Creating the Makefile for the kio module...
>
> Generating the C++ source for the kresources module...
> Creating the Makefile for the kresources module...
>
> Generating the C++ source for the kabc module...
> Creating the Makefile for the kabc module...
>
> Generating the C++ source for the kutils module...
> Creating the Makefile for the kutils module...
>
> Generating the C++ source for the kfile module...
> Creating the Makefile for the kfile module...
>
> Generating the C++ source for the kparts module...
> Creating the Makefile for the kparts module...
>
> Generating the C++ source for the khtml module...
> Creating the Makefile for the khtml module...
>
> Generating the C++ source for the kspell module...
> Creating the Makefile for the kspell module...
>
> Generating the C++ source for the kdeprint module...
> Creating the Makefile for the kdeprint module...
>
> Generating the C++ source for the kmdi module...
> Creating the Makefile for the kmdi module...
>
> Creating top level Makefile...
> Creating pykdeconfig.py...
> + /usr/bin/make CXX=athlon-pld-linux-g++
> CXXFLAGS=-O2 -march=athlon -fPIC -pipe -w -D_REENTRANT
> LINK=athlon-pld-linux-g++
> make[1]: Entering directory
> `/home/users/matkor/rpm/BUILD/PyKDE-snapshot20060422/dcop'
> athlon-pld-linux-g++ -c -O2 -march=athlon -fPIC -pipe -w -D_REENTRANT
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde352 -I/usr/include
> -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt
> -I/usr/X11R6/include -o sipdcoppart0.o sipdcoppart0.cpp
> athlon-pld-linux-g++ -c -O2 -march=athlon -fPIC -pipe -w -D_REENTRANT
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde352 -I/usr/include
> -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt
> -I/usr/X11R6/include -o sipdcoppart1.o sipdcoppart1.cpp
> athlon-pld-linux-g++ -c -O2 -march=athlon -fPIC -pipe -w -D_REENTRANT
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde352 -I/usr/include
> -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt
> -I/usr/X11R6/include -o sipdcoppart2.o sipdcoppart2.cpp
> athlon-pld-linux-g++ -shared -Wl,-rpath,/usr/lib
> -Wl,--version-script=dcop.exp -o dcop.so sipdcoppart0.o sipdcoppart1.o
> sipdcoppart2.o -L/usr/lib -L/usr/X11R6/lib -lDCOP -lqt-mt -lXext -lX11 -lm
> -lpthread make[1]: Leaving directory
> `/home/users/matkor/rpm/BUILD/PyKDE-snapshot20060422/dcop'
> make[1]: Entering directory
> `/home/users/matkor/rpm/BUILD/PyKDE-snapshot20060422/kdecore'
> athlon-pld-linux-g++ -c -O2 -march=athlon -fPIC -pipe -w -D_REENTRANT
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde352 -I/usr/include
> -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt
> -I/usr/X11R6/include -o sipkdecorepart0.o sipkdecorepart0.cpp
> athlon-pld-linux-g++ -c -O2 -march=athlon -fPIC -pipe -w -D_REENTRANT
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde352 -I/usr/include
> -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt
> -I/usr/X11R6/include -o sipkdecorepart1.o sipkdecorepart1.cpp
> sipkdecorepart1.cpp: In function `void release_Display(void*, int)':
> sipkdecorepart1.cpp:371: note: neither the destructor nor the
> class-specific operator delete will be called, even if they are declared
> when the class is defined.
> In file included from /usr/include/kconfigskeleton.h:35,
>                  from sip/kdecore/kconfigskeleton.sip:1084,
>                  from sipkdecorepart1.cpp:7202:
> /usr/include/qt/qvariant.h: At global scope:
> /usr/include/qt/qvariant.h:104: error: syntax error before `int'
> /usr/include/qt/qvariant.h:121: error: missing ';' before right brace
> /usr/include/qt/qvariant.h:123: error: syntax error before `)' token
> /usr/include/qt/qvariant.h:124: error: destructors must be member functions
> /usr/include/qt/qvariant.h:125: error: syntax error before `&' token
> (...)

Regards,
-- 
Mateusz Korniak

-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-PyKDE-late_qvariant_include_fix.patch
Type: text/x-diff
Size: 379 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060427/9361f5bf/python-PyKDE-late_qvariant_include_fix.bin


More information about the PyQt mailing list