[Pkg-corba-devel] Bug#504864: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Fri Nov 7 17:54:13 UTC 2008


Package: omnievents
Version: 1:2.6.2-1
User: debian-gcc at lists.debian.org
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 omnievents_1:2.6.2-1 on em64t by sbuild/amd64 0.53
...
> make[2]: Entering directory `/build/tbm/omnievents-2.6.2/tools'
> g++ -c  -I../idl -I../src -pthread -I/usr/include  -DHAVE_CONFIG_H  -DENABLE_CLIENT_IR_SUPPORT=1 -DOMNIEVENTS_REAL_TIME_PUSH=1 -g -O2 -g -Wall -O2 -g -O2 -g -Wall -O2 -fPIC  eventc.cc
> eventc.cc: In function 'int main(int, char**)':
> eventc.cc:211: error: 'EOF' was not declared in this scope
> make[2]: *** [eventc.o] Error 1
> make[2]: Leaving directory `/build/tbm/omnievents-2.6.2/tools'
> make[1]: *** [all] Error 2

--- examples/pullcons.cc~	2008-11-07 17:49:25.000000000 +0000
+++ examples/pullcons.cc	2008-11-07 17:47:47.000000000 +0000
@@ -148,6 +148,8 @@
 #  include <signal.h>
 #endif
 
+#include <cstdio>
+
 #include "CosEventComm.hh"
 #include "CosEventChannelAdmin.hh"
 #include "naming.h"
--- examples/pullsupp.cc~	2008-11-07 17:48:00.000000000 +0000
+++ examples/pullsupp.cc	2008-11-07 17:48:09.000000000 +0000
@@ -144,6 +144,8 @@
 #  include <signal.h>
 #endif
 
+#include <cstdio>
+
 #include "CosEventComm.hh"
 #include "CosEventChannelAdmin.hh"
 #include "naming.h"
--- examples/pushcons.cc~	2008-11-07 17:48:22.000000000 +0000
+++ examples/pushcons.cc	2008-11-07 17:48:30.000000000 +0000
@@ -159,6 +159,8 @@
 #  include <signal.h>
 #endif
 
+#include <cstdio>
+
 #include "CosEventComm.hh"
 #include "CosEventChannelAdmin.hh"
 #include "naming.h"
--- examples/pushsupp.cc~	2008-11-07 17:48:48.000000000 +0000
+++ examples/pushsupp.cc	2008-11-07 17:48:56.000000000 +0000
@@ -152,6 +152,8 @@
 #  include <signal.h>
 #endif
 
+#include <cstdio>
+
 #include "CosEventComm.hh"
 #include "CosEventChannelAdmin.hh"
 #include "naming.h"
--- tools/eventc.cc~	2008-11-07 17:45:46.000000000 +0000
+++ tools/eventc.cc	2008-11-07 17:46:09.000000000 +0000
@@ -184,6 +184,8 @@
 #  include <signal.h>
 #endif
 
+#include <cstdio>
+
 #include "omniEvents.hh"
 #include "naming.h"
 
--- tools/eventf.cc~	2008-11-07 17:46:30.000000000 +0000
+++ tools/eventf.cc	2008-11-07 17:46:39.000000000 +0000
@@ -46,6 +46,8 @@
 #  include <iostream.h>
 #endif
 
+#include <cstdio>
+
 #ifdef HAVE_STD_IOSTREAM
 using namespace std;
 #endif
--- tools/rmeventc.cc~	2008-11-07 17:46:58.000000000 +0000
+++ tools/rmeventc.cc	2008-11-07 17:47:05.000000000 +0000
@@ -46,6 +46,8 @@
 #  include <iostream.h>
 #endif
 
+#include <cstdio>
+
 #ifdef HAVE_STD_IOSTREAM
 using namespace std;
 #endif

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





More information about the Pkg-corba-devel mailing list