[Pkg-exppsy-maintainers] Bug#553708: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Sun Nov 1 23:32:58 UTC 2009


Package: odin
Version: 1.8.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-4.4/g++-4.4 from unstable.

> Automatic build of odin_1.8.0-1 on em64t by sbuild/amd64 0.53
...
> mkdir .libs
>  g++ -DHAVE_CONFIG_H -I. -I../tjutils -I.. -I/build/tbm/odin-1.8.0 -I/usr/share/qt4/include/QtGui -I/usr/share/qt4/include/QtCore -I/usr/share/qt4/include -I. -I/usr/include/dcmtk -I/usr/include/dcmtk/dcmdata -I/usr/include/dcmtk/ofstd -I/usr/include/vtk-5.2 -I/usr/include/nifti -I/usr/include/liboil-0.3 -O3 -fno-tree-vectorize -g -O2 -g -Wall -O2 -c data.cpp  -fPIC -DPIC -o .libs/data.o
> In file included from data.h:74,
>                  from data.cpp:1:
> ../odindata/converter.h:195: error: ISO C++ forbids declaration of 'uint32_t' with no type
> ../odindata/converter.h:195: error: expected ',' or '...' before '*' token
> ../odindata/converter.h:197: error: ISO C++ forbids declaration of 'uint16_t' with no type
...


--- odindata/converter.h~	2009-11-01 23:18:06.000000000 +0000
+++ odindata/converter.h	2009-11-01 23:18:18.000000000 +0000
@@ -18,6 +18,7 @@
 #ifndef CONVERTER_H
 #define CONVERTER_H
 
+#include <stdint.h>
 #include <limits>
 
 #include <tjutils/tjcomplex.h>

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





More information about the Pkg-exppsy-maintainers mailing list