[PyKDE] Compiling PyKDE 3.11.3 on Solaris 8 fails

Holger Joukl Holger.Joukl at LBBW.de
Tue Mar 1 11:07:25 GMT 2005


Hi there,
compiling PyKDE 3.11.3 on Solaris 8 fails for me (gcc 2.95.2, Qt 3.3.3, KDE
3.3.2) with the following output:


     PyKDE version 3.11.3
           -------

Python include directory is /apps/prod/include/python2.3
Python version is 2.3.4

sip version is 4.1.1 (4.1.1)

Qt directory is /apps/pydev/X11R6.4/qt
Qt version is 3.3.3

PyQt directory is /data/pydev/DOWNLOADS/PYQTKDE/build/sip-4.1.1/lib
PyQt version is 3.13 (3.13.0)

KDE base directory is /apps/pydev/X11R6.4/kde/3.3.2
KDE include directory is /apps/pydev/X11R6.4/kde/3.3.2/include
KDE lib directory is /apps/pydev/X11R6.4/kde/3.3.2/lib
KDE version is 3.3.2 (0x30302)
...
make[1]: Entering directory `/data/pydev/DOWNLOADS/PYQTKDE/PyKDE-3.11.3
/kdecore'
g++ -c -Wno-deprecated-declarations -fPIC -O2 -Wall -W -D_REENTRANT
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde332 -
I/apps/pydev/X11R6.4/kde/3.3.2/include
-I/data/pydev/DOWNLOADS/PYQTKDE/build/sip-4.1.1/include
-I/apps/prod/include/python2.3
 -I/apps/pydev/X11R6.4/qt/include -I/usr/openwin/include -o
sipkdecorepart0.o sipkdecorepart0.cpp
In file included from /apps/pydev/X11R6.4/kde/3.3.2
/include/kmanagerselection.h:33,
                 from sip/kdecore/kmanagerselection.sip:71,
                 from sipkdecorepart0.cpp:35:
/usr/openwin/include/X11/Xlib.h:32: warning: ignoring pragma:
In file included from /apps/pydev/X11R6.4/kde/3.3.2/include/netwm.h:34,
                 from sip/kdecore/netwm.sip:430,
                 from sipkdecorepart0.cpp:80:
/usr/openwin/include/X11/Xutil.h:56: warning: ignoring pragma:
sip/kdecore/kmountpoint.sip: In function `struct PyObject *
convertFrom_KMountPoint_List(void *)':
sip/kdecore/kmountpoint.sip:141: warning: taking address of temporary
sip/kdecore/kconfigskeleton.sip: In function `struct PyObject *
meth_KConfigSkeleton_ItemEnum_choices(PyObject *, PyObject *)
':
sip/kdecore/kconfigskeleton.sip:183: warning: taking address of temporary
sipkdecorepart0.cpp: In function `int convertTo_Display(PyObject *, void
**, int *)':
sipkdecorepart0.cpp:31691: warning: unused parameter `struct PyObject *
sipPy'
sipkdecorepart0.cpp:31691: warning: unused parameter `int * sipIsErr'
sipkdecorepart0.cpp: In function `struct PyObject *
convertFrom_Display(void *)':
sipkdecorepart0.cpp:31725: warning: unused variable `struct _XDisplay *
sipCpp'
sipkdecorepart0.cpp: In function `struct PyObject *
meth_KStartupInfoData_pids(PyObject *, PyObject *)':
sipkdecorepart0.cpp:48629: type `const QValueList<int>' is not a base type
for type `const QValueList<long int>'
sipkdecorepart0.cpp:48627: warning: `const class QValueList<int> * sipRes'
might be used uninitialized in this function
sipkdecorepart0.cpp: In function `struct PyObject *
convertFrom_ulonglong(void *)':
sip/kdecore/kconfigbase.sip:319: warning: unused variable `struct PyObject
* LongLong'
sipkdecorepart0.cpp: In function `void dealloc_KShared(sipWrapper *)':
sipkdecorepart0.cpp:84254: warning: unused parameter `struct sipWrapper *
sipSelf'
sipkdecorepart0.cpp: In function `struct PyObject *
convertFrom_QValueList_2100(void *)':
sip/kdecore/kwinmodule.sip:111: warning: unused variable `struct PyObject *
inst'
sipkdecorepart0.cpp: In function `struct PyObject *
convertFrom_QMap_0200QChar_0200QStringList(void *)':
sip/kdecore/kmacroexpander.sip:320: warning: `struct PyObject * binst'
might be used uninitialized in this function
sipkdecorepart0.cpp: In function `struct PyObject *
convertFrom_QMap_0200KEntryKey_0200KEntry(void *)':
sip/kdecore/kconfigdata.sip:118: warning: `struct PyObject * binst' might
be used uninitialized in this function
sipkdecorepart0.cpp: In function `struct PyObject *
convertFrom_QMap_0200QString_0200QString(void *)':
sip/kdecore/kconfig.sip:134: warning: `struct PyObject * binst' might be
used uninitialized in this function
sipkdecorepart0.cpp: In function `struct PyObject *
convertFrom_QMap_0200QString_0200DCOPRef(void *)':
sip/kdecore/bytearray.sip:675: warning: `struct PyObject * binst' might be
used uninitialized in this function
sipkdecorepart0.cpp: In function `struct PyObject *
convertFrom_QMap_0200QCString_0200DCOPRef(void *)':
sip/kdecore/bytearray.sip:590: warning: `struct PyObject * binst' might be
used uninitialized in this function
make[1]: *** [sipkdecorepart0.o] Error 1
make[1]: Leaving directory `/data/pydev/DOWNLOADS/PYQTKDE/PyKDE-3.11.3
/kdecore'
make: *** [install] Error 2


I think the problem is

sipkdecorepart0.cpp: In function `struct PyObject *
meth_KStartupInfoData_pids(PyObject *, PyObject *)':
sipkdecorepart0.cpp:48629: type `const QValueList<int>' is not a base type
for type `const QValueList<long int>'

which seems to result from how the KStartupInfo::pids method is defined in
PyKDE-3.11.3/sip/kdecore/kstartupinfo.sip:
207  public:
208  //force
209      const QValueList<int>& pids () const;
210  //end
211
212  };  // class KStartupInfoData
The actual KDE method signature is "const QValueList< pid_t >& pids()
const;", and pid_t is typedef´ed to long
on my machine.
int and long are the same for 32bit
I guess I
a) could remove the method from kstartupinfo.sip
b) Modifiy the generated code and cast

Any better suggestions?
Thanks a lot,
Holger



Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.

The contents of this  e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail.  Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version.




More information about the PyQt mailing list