[Pkg-scicomp-devel] Bug#527210: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Wed May 6 07:13:26 UTC 2009

Package: trilinos
Version: 9.0.2.dfsg-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-4.4/g++-4.4 from unstable.

> Automatic build of trilinos_9.0.2.dfsg-1 on em64t by sbuild/amd64 0.53
> g++ -I/usr/include/python2.5 -I/build/tbm/trilinos-9.0.2.dfsg/packages/epetra/src -I/build/tbm/trilinos-9.0.2.dfsg/packages/teuchos/src -I/usr/lib/python2.5/site-packages/numpy/core/include -I/usr/include/python2.5 -I/usr/include/superlu -I/usr/include/suitesparse -I/usr/include/mpi -g -fPIC -O2 -DNUMPY_NOPREFIX -c ../src/Epetra_NumPyIntSerialDenseMatrix.cpp -o ../src/Epetra_NumPyIntSerialDenseMatrix.o
> g++ -I/usr/include/python2.5 -I/usr/include/python2.5 -I/usr/include/superlu -I/usr/include/suitesparse -I/usr/include/mpi -g -fPIC -O2 -DNUMPY_NOPREFIX -c ../src/FILEstream.cpp -o ../src/FILEstream.o
> ../src/FILEstream.cpp: In member function 'virtual int FILEstream::underflow()':
> ../src/FILEstream.cpp:65: error: 'fread' is not a member of 'std'
> ../src/FILEstream.cpp: In member function 'virtual int FILEstream::sync()':
> ../src/FILEstream.cpp:89: error: 'fwrite' is not a member of 'std'
> Traceback (most recent call last):
>   File "./setup.py", line 181, in <module>
>     main(command, destdir)
>   File "./setup.py", line 150, in main
>     builder.buildShared()
>   File "../util/SharedUtils.py", line 468, in buildShared
>     runCommand(self.getCompileCmd(src, obj))
>   File "../util/SharedUtils.py", line 97, in runCommand
>     if status: raise RuntimeError, "Exit status = %d" % status
> RuntimeError: Exit status = 256
> make[5]: *** [package] Error 1
> make[5]: Leaving directory `/build/tbm/trilinos-9.0.2.dfsg/packages/PyTrilinos/shared'

--- packages/PyTrilinos/src/FILEstream.cpp~	2009-05-06 06:47:30.000000000 +0000
+++ packages/PyTrilinos/src/FILEstream.cpp	2009-05-06 06:47:39.000000000 +0000
@@ -29,6 +29,7 @@
 #include "FILEstream.h"
 #include <algorithm>
+#include <cstdio>
 #include <cstring>
 #include <iostream>

Martin Michlmayr

More information about the Pkg-scicomp-devel mailing list