Package: dballe
Version: 4.0.2-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 dballe_4.0.2-1 on em64t by sbuild/amd64 0.53
...
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../..    -g -O2 -g -Wall -O2 -c -o 
> benchmark.o benchmark.cc
> benchmark.cc: In function 'void print_dba_error()':
> benchmark.cc:47: error: 'stderr' was not declared in this scope
> benchmark.cc:50: error: 'fprintf' was not declared in this scope
> benchmark.cc:52: error: 'fputc' was not declared in this scope
> make[4]: *** [benchmark.o] Error 1
> make[4]: Leaving directory `/build/tbm/dballe-4.0.2/dballe/bench'

--- dballe/bench/bench/Benchmark.cc~    2008-11-07 20:51:35.000000000 +0000
+++ dballe/bench/bench/Benchmark.cc     2008-11-07 20:51:42.000000000 +0000
@@ -23,6 +23,7 @@
 
 #include <stdarg.h>
 #include <unistd.h>
+#include <cstdio>
 #include <ostream>
 
 using namespace std;
--- dballe/bench/benchmark.cc~  2008-11-07 20:50:52.000000000 +0000
+++ dballe/bench/benchmark.cc   2008-11-07 20:50:58.000000000 +0000
@@ -22,6 +22,7 @@
 #include "bench/Benchmark.h"
 #include <dballe/core/verbose.h>
 
+#include <cstdio>
 #include <cstdlib>
 #include <sys/times.h>
 #include <unistd.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