[Debichem-devel] Bug#525758: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Sun Apr 26 22:07:47 UTC 2009


Package: psicode
Version: 3.4.0-1
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has 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 or
gcc-4.4 from experimental.

> Automatic build of psicode_3.4.0-1 on em64t by sbuild/amd64 0.53
...
> make[4]: Leaving directory `/build/tbm/psicode-3.4.0/src/lib/libutil'
> make[4]: Entering directory `/build/tbm/psicode-3.4.0/src/lib/libutil'
> g++ -Wall -g -O3 -m64 -DHAVE_CMATH=1 -DHAVE_CSTDIO=1 -DHAVE_CSTDLIB=1 -DHAVE_CSTRING=1 -DHAVE_CSTDDEF=1 -DHAVE_DECL_PUTENV=1 -DHAVE_PUTENV=1 -DHAVE_DECL_SETENV=1 -DHAVE_SETENV=1 -DHAVE_FUNC_ISINF=1 -DLinux -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE   -I. -I../../../include -I/build/tbm/psicode-3.4.0/include -I/build/tbm/psicode-3.4.0/src/lib -I../../../src/lib  -c stl_string.cc -o stl_string.o
> stl_string.cc: In function 'void psi::print_error(std::string, const char*, int)':
> stl_string.cc:239: error: 'fprintf' was not declared in this scope
> stl_string.cc:240: error: 'fflush' was not declared in this scope
> stl_string.cc: In function 'void psi::print_error(const char*, const char*, int, int)':
> stl_string.cc:251: error: 'fprintf' was not declared in this scope
> stl_string.cc:252: error: 'fflush' was not declared in this scope
> stl_string.cc: In function 'void psi::print_developing(const char*, const char*, int, int)':
> stl_string.cc:263: error: 'fprintf' was not declared in this scope
> stl_string.cc:264: error: 'fflush' was not declared in this scope
> make[4]: *** [stl_string.o] Error 1
> make[4]: Leaving directory `/build/tbm/psicode-3.4.0/src/lib/libutil'

--- src/lib/libmoinfo/moinfo_model_space.cc~	2009-04-26 21:21:00.000000000 +0000
+++ src/lib/libmoinfo/moinfo_model_space.cc	2009-04-26 21:21:05.000000000 +0000
@@ -1,5 +1,6 @@
 #include <iostream>
 #include <cmath>
+#include <cstdio>
 #include <cstdlib>
 
 #include <psifiles.h>
@@ -322,4 +323,4 @@
   return(names);
 }
 
-}
\ No newline at end of file
+}
--- src/lib/libmoinfo/moinfo_slaterdeterminant.cc~	2009-04-26 21:21:30.000000000 +0000
+++ src/lib/libmoinfo/moinfo_slaterdeterminant.cc	2009-04-26 21:21:35.000000000 +0000
@@ -1,3 +1,4 @@
+#include <cstdio>
 #include <iostream>
 #include "moinfo.h"
 
--- src/lib/libutil/stl_string.cc~	2009-04-26 21:19:16.000000000 +0000
+++ src/lib/libutil/stl_string.cc	2009-04-26 21:19:21.000000000 +0000
@@ -1,3 +1,4 @@
+#include <cstdio>
 #include <cstdlib>
 #include <cmath>
 #include <iomanip>


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





More information about the Debichem-devel mailing list