Package: qterm
Version: 1:0.5.3-1
User: [email protected]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 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-snapshot from unstable.

> Automatic build of qterm_1:0.5.3-1 on em64t by sbuild/amd64 0.53
...
> [ 56%] Building CXX object src/CMakeFiles/qterm.dir/main.o
> cd /build/tbm/qterm-0.5.3/obj-x86_64-linux-gnu/src && 
> /usr/lib/gcc-snapshot/bin/g++   -DSSH_ENABLED -DHAVE_CONFIG_H -g -O2 -g -Wall 
> -O2 -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui 
> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDBus 
> -I/build/tbm/qterm-0.5.3 -I/build/tbm/qterm-0.5.3/obj-x86_64-linux-gnu 
> -I/build/tbm/qterm-0.5.3/obj-x86_64-linux-gnu/src 
> -I/build/tbm/qterm-0.5.3/src   -Wall -o CMakeFiles/qterm.dir/main.o -c 
> /build/tbm/qterm-0.5.3/src/main.cpp
> /build/tbm/qterm-0.5.3/src/main.cpp: In function 'void 
> qtMessageHandler(QtMsgType, const char*)':
> /build/tbm/qterm-0.5.3/src/main.cpp:40: error: 'stderr' was not declared in 
> this scope
> /build/tbm/qterm-0.5.3/src/main.cpp:40: error: 'fprintf' was not declared in 
> this scope
> make[3]: *** [src/CMakeFiles/qterm.dir/main.o] Error 1
> make[3]: Leaving directory `/build/tbm/qterm-0.5.3/obj-x86_64-linux-gnu'
> make[2]: *** [src/CMakeFiles/qterm.dir/all] Error 2

--- src/ssh/transport.cpp~      2009-01-04 08:44:57.000000000 +0000
+++ src/ssh/transport.cpp       2009-01-04 08:45:38.000000000 +0000
@@ -12,6 +12,8 @@
 #include "transport.h"
 #include <QtCore/QString>
 
+#include <stdint.h>
+
 #ifdef SSH_DEBUG
 #include <QtDebug>
 extern void dumpData(const QByteArray & data);
--- src/main.cpp~       2009-01-04 08:38:27.000000000 +0000
+++ src/main.cpp        2009-01-04 08:39:06.000000000 +0000
@@ -23,6 +23,8 @@
 #include <Python.h>
 #endif
 
+#include <stdio.h>
+
 #if !defined(_OS_WIN32_) && !defined(Q_OS_WIN32)
 #include <sys/stat.h>
 #include <errno.h>

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



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to