Bug#653418: qtiplot FTBFS in unstable /usr/share/sip/PyQt4/QtCore/qobject.sip:673:73: error: invalid conversion from 'const QObject*' to 'QObject*' [-fpermissive]

peter green plugwash at p10link.net
Wed Dec 28 01:36:39 UTC 2011


package: qtiplot
severity: serious
tags: patch

qtiplot FTBFS in unstable with the following error

g++ -c -pipe -Wall -g -O2 -D_REENTRANT -Wall -W -DSCRIPTING_CONSOLE -DSVN_REVISION="\"\"" -DQT_PLUGIN -DTRANSLATIONS_PATH=\"/usr/share/qtiplot/translations\" -DMANUAL_PATH=\"/usr/share/doc/qtiplot/manual\" -DSCRIPTING_MUPARSER -DSCRIPTING_PYTHON -DPYTHON_CONFIG_PATH=\"/usr/share/qtiplot\" -DGL2PS_HAVE_LIBPNG -DTEX_OUTPUT -DHAVE_ALGLIB -DHAVE_TAMUANOVA -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I/usr/include/qt4/QtAssistantClient -I/usr/include/qt4/QtAssistant -I/usr/include/muParser -I../3rdparty/qwt/src -I../3rdparty/qwtplot3d/include -Iicons -Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/excel -Isrc/lib/include -Isrc/lib/3rdparty/qtcolorpicker/src -Isrc/plot2D -Isrc/plot2D/dialogs -Isrc/plot3D -Isrc/matrix -Isrc/table -Isrc/scripting -I/usr/include/python2.7 -I/usr/include/tamu_anova -I/usr/include -I/usr/X11R6/include -I/build/buildd-qtiplot_0.9.8.8-1-armhf-MFs1IJ/qtiplot-0.9.8.8/tmp/qtiplot -o ../tmp/qtiplot/sipqtiEllipseWidget.o ../tmp/qtiplot/sipqtiEllipseWidget.cpp
/usr/share/sip/PyQt4/QtCore/qobject.sip: In function 'PyObject* meth_EllipseWidget_receivers(PyObject*, PyObject*)':
/usr/share/sip/PyQt4/QtCore/qobject.sip:673:73: error: invalid conversion from 'const QObject*' to 'QObject*' [-fpermissive]
make[2]: *** [../tmp/qtiplot/sipqtiEllipseWidget.o] Error 1
make[2]: Leaving directory `/build/buildd-qtiplot_0.9.8.8-1-armhf-MFs1IJ/qtiplot-0.9.8.8/qtiplot'
make[1]: *** [sub-qtiplot-make_default] Error 2
make: *** [build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

This was initially seen on the armhf buildd but I can also reproduce 
locally on amd64.

The simplest fix is to just pass -fpermissive to the build. I attatch a 
patch to do that but I get the
feeling that isn't the best soloution and that if possible the const 
correctness of the generated
code in /usr/share/sip/PyQt4/QtCore/qobject.sip should be addressed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qtiplot.patch
Type: text/x-diff
Size: 363 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20111228/a3a9e1d7/attachment-0001.patch>


More information about the debian-science-maintainers mailing list