[Pkg-octave-devel] Bug#550264: FTBFS with GCC 4.4: missing #include
Martin Michlmayr
tbm at cyrius.com
Thu Oct 8 18:29:44 UTC 2009
Package: qtoctave
Version: 0.8.2+dfsg-1
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch
Your package fails to build with GCC 4.4, which has cleaned up some more
C++ headers. You always have to #include headers directly and cannot
rely for things to be included indirectly.
You can reproduce this problem with gcc-4.4/g++-4.4 from unstable.
> Automatic build of qtoctave_0.8.2+dfsg-1 on em64t by sbuild/amd64 0.53
...
> [ 48%] Building CXX object easy_plot/src/CMakeFiles/easy_plot.dir/gnuplot_connection.o
> cd /build/tbm/qtoctave-0.8.2+dfsg/obj-x86_64-linux-gnu/easy_plot/src && /usr/bin/g++ -DUSER_CONFIG -DQT_DLL -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_DLL -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG -g -O2 -g -Wall -O2 -O3 -DNDEBUG -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtSvg -I/build/tbm/qtoctave-0.8.2+dfsg/obj-x86_64-linux-gnu/easy_plot/src -o CMakeFiles/easy_plot.dir/gnuplot_connection.o -c /build/tbm/qtoctave-0.8.2+dfsg/easy_plot/src/gnuplot_connection.cpp
> /build/tbm/qtoctave-0.8.2+dfsg/easy_plot/src/gnuplot_connection.cpp: In member function 'void GnuplotConnection::standardOutputReady()':
> /build/tbm/qtoctave-0.8.2+dfsg/easy_plot/src/gnuplot_connection.cpp:143: error: 'printf' was not declared in this scope
> make[3]: *** [easy_plot/src/CMakeFiles/easy_plot.dir/gnuplot_connection.o] Error 1
> make[3]: Leaving directory `/build/tbm/qtoctave-0.8.2+dfsg/obj-x86_64-linux-gnu'
> make[2]: *** [easy_plot/src/CMakeFiles/easy_plot.dir/all] Error 2
--- easy_plot/src/gnuplot_connection.cpp~ 2009-10-08 18:22:35.000000000 +0000
+++ easy_plot/src/gnuplot_connection.cpp 2009-10-08 18:22:41.000000000 +0000
@@ -2,6 +2,7 @@
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QHash>
+#include <cstdio>
GnuplotConnection::GnuplotConnection(QObject *parent):QProcess(parent)
{
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-octave-devel
mailing list