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

Martin Michlmayr tbm at cyrius.com
Tue Nov 11 23:14:05 UTC 2008


Package: omniorb4
Version: 4.1.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 omniorb4_4.1.2-1 on em64t by sbuild/amd64 0.53
...
> make[5]: Entering directory `/build/tbm/omniorb4-4.1.2/build/src/appl/utils/catior'
> g++ -O2 -M -MD -MG -D__OMNIORB4__ -I../../../../stub -D_REENTRANT -I. -I../../../../../src/appl/utils/catior -I../../../../include -I../../../../../include -D__OSVERSION__=2 -D__linux__ -D__x86_64__ ../../../../../src/appl/utils/catior/catior.cc
> g++ -O2 -c -g -Wall -Wno-unused -fexceptions  -D__OMNIORB4__ -I../../../../stub -D_REENTRANT -I. -I../../../../../src/appl/utils/catior -I../../../../include -I../../../../../include -D__OSVERSION__=2 -D__linux__ -D__x86_64__ -o catior.o ../../../../../src/appl/utils/catior/catior.cc
> ../../../../../src/appl/utils/catior/catior.cc: In function 'int main(int, char**)':
> ../../../../../src/appl/utils/catior/catior.cc:363: error: 'EOF' was not declared in this scope
> make[5]: *** [catior.o] Error 1
> make[5]: Leaving directory `/build/tbm/omniorb4-4.1.2/build/src/appl/utils/catior'

--- src/appl/utils/catior/catior.cc~	2008-11-11 22:34:40.000000000 +0000
+++ src/appl/utils/catior/catior.cc	2008-11-11 22:34:56.000000000 +0000
@@ -25,6 +25,7 @@
 // Lists contents of an IOR.
 
 #include <string.h>
+#include <stdio.h>
 #include <stdlib.h>
 
 #include <omniORB4/CORBA.h>
--- src/appl/utils/convertior/convertior.cc~	2008-11-11 22:36:04.000000000 +0000
+++ src/appl/utils/convertior/convertior.cc	2008-11-11 22:36:10.000000000 +0000
@@ -25,6 +25,7 @@
 // Takes an IOR, hostname as arguments. Outputs IOR with new hostname.
 
 #include <string.h>
+#include <stdio.h>
 #include <stdlib.h>
 
 #include <omniORB4/CORBA.h>

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





More information about the Pkg-corba-devel mailing list