[PyKDE] compile error in PyKDE-3.11alpha6

Jim Bublitz jbublitz at nwinternet.com
Sun Apr 25 19:10:07 BST 2004


On Sunday April 25 2004 07:41, Karsten Künne wrote:
> Hi,
>
> I tried PyKDE-3.11alpha6 today on a Solaris 8 box and I got
> the following error:
>
> gmake[1]: Entering directory
>  `/usr/local/src/kde/kde-3.2.2/PyKDE-3.11alpha6/ kdecore'
> g++ -c -fPIC -O2 -w -D_REENTRANT -DQT_NO_DEBUG
> -DQT_THREAD_SUPPORT -I. -I../ extra/kde322
> -I/usr/local/products/kde/kde-3.2.2/include -I/usr/local/
> products/python/2.3.3/include/python2.3
> -I/usr/local/products/kde/qt-3.3.1/ include
> -I/usr/openwin/include -o kdecorepart0.o kdecorepart0.cpp
> kdecorepart0.cpp: In function `PyObject*
> sipDo_KStartupInfoData_pids(PyObject*,
>    PyObject*)':
> kdecorepart0.cpp:45896: error: cannot convert `const
> QValueList<pid_t>*' to ` const QValueList<int>*' in assignment
> gmake[1]: *** [kdecorepart0.o] Error 1
> gmake[1]: Leaving directory
>  `/usr/local/src/kde/kde-3.2.2/PyKDE-3.11alpha6/ kdecore'
> gmake: *** [all] Error 2
>
> My setup:
>
> sip-3.10.1
> Qt-3.3.1
> PyQt-3.11
> KDE-3.2.2
> gcc-3.3.3
> Solaris 8
>
> I worked around it by simply putting a cast to "const
> QValueList<int>*" into kdecorepart0.cpp at line 45896. But
> this is of course not a proper fix. It's just that I don't
> know what the proper fix in the appropriate sip file would be.

That's a good fix - the other workaround I'd suggest at the 
moment (which is an even less proper fix) is to comment out the 
affected method in kstartupinfo.sip (at the end of the file).

It looks like I tried to re-use some handwritten code for the 
template on the cheap (since pid_t is typedef'd from int).  I'll 
implement it explicitly for pid_t in the next release (alpha7). 
I'd appreciate if you (or another Solaris user) could test that, 
as I can't reproduce the error under Linux.

Thanks

Jim




More information about the PyQt mailing list