Package: qtiplot
Version: 0.9.7.8-1
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4 for two reasons:

1. GCC 4.4 has cleaned up some more C++ headers.  You always have to
#include headers directly and cannot rely for things to be included
indirectly.

2. you're using a #elif without any condition when you really want a
#else.

You can reproduce this problem with gcc-4.4/g++-4.4 from unstable.

> Automatic build of qtiplot_0.9.7.8-1 on em64t by sbuild/amd64 0.53
...
> g++ -c -pipe -fno-exceptions -g -fPIC -D_REENTRANT -Wall -W 
> -DGL2PS_HAVE_LIBPNG -DGL2PS_HAVE_ZLIB -DQT_OPENGL_LIB -DQT_GUI_LIB 
> -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. 
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui 
> -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -Iinclude -I/usr/X11R6/include 
> -Itmp -o tmp/qwt3d_function.o src/qwt3d_function.cpp
> src/qwt3d_function.cpp: In member function 'virtual bool 
> Qwt3D::Function::create()':
> src/qwt3d_function.cpp:80: error: 'stderr' was not declared in this scope
> src/qwt3d_function.cpp:80: error: 'fprintf' was not declared in this scope
> make[2]: *** [tmp/qwt3d_function.o] Error 1
> make[2]: Leaving directory `/build/tbm/qtiplot-0.9.7.8/3rdparty/qwtplot3d'
> make[1]: *** [sub-3rdparty-qwtplot3d-make_default] Error 2
> make[1]: Leaving directory `/build/tbm/qtiplot-0.9.7.8'

and:

> src/scripting/ScriptEdit.cpp:295:6: error: #elif with no expression

--- qtiplot/src/scripting/ScriptEdit.cpp~       2009-09-18 08:15:25.000000000 
+0000
+++ qtiplot/src/scripting/ScriptEdit.cpp        2009-09-18 08:15:34.000000000 
+0000
@@ -292,7 +292,7 @@
        console->setPlainText(err);
        if (!console->isVisible())
                ((QDockWidget *)console->parent())->show();
-#elif
+#else
        int start = printCursor.position();
        printCursor.insertText(err);
        printCursor.setPosition(start, QTextCursor::KeepAnchor);
--- 3rdparty/qwtplot3d/src/qwt3d_function.cpp~  2009-09-18 07:50:47.000000000 
+0000
+++ 3rdparty/qwtplot3d/src/qwt3d_function.cpp   2009-09-18 07:51:11.000000000 
+0000
@@ -1,5 +1,6 @@
 #include "qwt3d_surfaceplot.h"
 #include "qwt3d_function.h"
+#include <cstdio>
 
 using namespace Qwt3D;
 

-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to