[PyKDE] PyQt4 snapshot fails to build (pluginloader.cpp) on FreeBSD since 2-3 days

Danny Pansters danny at ricin.com
Thu Feb 15 22:32:33 GMT 2007


Hi,

I get what seems to be a similar problem as what Patrick is seeing on his Mac, 
on FreeBSD. We recently had the Qt4 ports comitted and I've been working on 
the FreeBSD ports for PyQt4, sip (update), Qscintilla2 and have been 
following the snapshots daily, running full builds of the packages on my 
tinderbox. Since a day or two/three, I get this (before that it built and 
ran):

c++ -c -pipe -O2 -fno-strict-aliasing -pipe -Wall -W -fPIC  
-DPYTHON_LIB=\"/usr/local/lib/libpython2.4.a\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB 
-DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED 
-I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. -I/usr/local/include/QtDesigner 
-I/usr/local/include/QtCore -I/usr/local/include/QtCore -I/usr/local/include/QtGui 
-I/usr/local/include/QtGui -I/usr/local/include/QtXml -I/usr/local/include/QtXml -I/usr/local/include 
-I/usr/local/include/python2.4 -I. -I. -I/usr/local/include -o pluginloader.o 
pluginloader.cpp
In file included from /usr/local/include/python2.4/Python.h:76,
                 from pluginloader.cpp:29:
/usr/local/include/python2.4/object.h:343: error: expected unqualified-id 
before ';' token
/usr/local/include/python2.4/object.h:343: error: abstract declarator 
`PyObject*' used as declaration
pluginloader.cpp: In constructor `PyCustomWidgets::PyCustomWidgets(QObject*)':
pluginloader.cpp:162: error: invalid conversion from `const char*' to `char*'
pluginloader.cpp:162: error:   initializing argument 1 of `PyObject* 
PyImport_ImportModule(char*)'
*** Error code 1

Stop 
in /work/a/ports/x11-toolkits/py-qt4/work/PyQt-x11-gpl-4-snapshot-20070212/designer.
*** Error code 1

It wants to use libpython2.4.a archive, but FreeBSD only has the .so

I can provide the complete build log including configure but it's probably not 
very interesting, everything gets picked up. Qt components, qscintilla, 
py-dus, .. are options to the port and all of them are enabled by default. 
For qscintilla2 I have 3 ports that use the same source tarball: qscintilla2, 
qscintilla-designerplugin, py-qscintilla2 (this has dependency on py-qt4), 
the latter two are seperate because they need qscintilla2 to be installed 
first.

Cheers,

Dan




More information about the PyQt mailing list