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

Martin Michlmayr tbm at cyrius.com
Fri Nov 14 06:39:09 UTC 2008


Package: openturns
Version: 0.12.1-6
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.


> Build started at 20081112-2209
...
>  g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../include -I./../Common -I./../Type -I./../Stat -DOT_DEBUG_LEVEL=0 -I/usr/include/qt3 -DQT_THREAD_SUPPORT -g -O2 -c Drawable.cxx -o libOTGraph_la-Drawable.o >/dev/null 2>&1
> /bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../include  -I../../../include -I../../../include  -I./../Common -I./../Type -I./../Stat -DOT_DEBUG_LEVEL=0  -I/usr/include/qt3 -DQT_THREAD_SUPPORT -g -O2 -c -o libOTGraph_la-DrawableImplementation.lo `test -f 'DrawableImplementation.cxx' || echo './'`DrawableImplementation.cxx
>  g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../include -I./../Common -I./../Type -I./../Stat -DOT_DEBUG_LEVEL=0 -I/usr/include/qt3 -DQT_THREAD_SUPPORT -g -O2 -c DrawableImplementation.cxx  -fPIC -DPIC -o .libs/libOTGraph_la-DrawableImplementation.o
> DrawableImplementation.cxx: In member function 'virtual void OpenTURNS::Base::Graph::DrawableImplementation::clean() const':
> DrawableImplementation.cxx:1169: error: 'remove' was not declared in this scope
> make[5]: *** [libOTGraph_la-DrawableImplementation.lo] Error 1

--- lib/test/external_code_threads.cxx~	2008-11-13 21:13:42.000000000 +0000
+++ lib/test/external_code_threads.cxx	2008-11-13 21:13:48.000000000 +0000
@@ -25,6 +25,7 @@
  */
 #include <iostream>
 #include <cmath>
+#include <cstdio>
 #include <cstdlib>
 #include "OT.hxx"
 #include "WrapperInterface.h"
--- lib/src/Base/Graph/DrawableImplementation.cxx~	2008-11-13 20:32:17.000000000 +0000
+++ lib/src/Base/Graph/DrawableImplementation.cxx	2008-11-13 20:32:29.000000000 +0000
@@ -25,6 +25,7 @@
  */
 
 #include <algorithm>
+#include <cstdio>
 #include <cstdlib>
 #include "DrawableImplementation.hxx"
 #include "PersistentObjectFactory.hxx"
--- lib/src/Base/Graph/Contour.cxx~	2008-11-13 20:34:09.000000000 +0000
+++ lib/src/Base/Graph/Contour.cxx	2008-11-13 20:34:17.000000000 +0000
@@ -23,6 +23,7 @@
  *  @date:   $LastChangedDate: 2008-06-26 13:50:17 +0200 (jeu, 26 jun 2008) $
  *  Id:      $Id: Contour.cxx 862 2008-06-26 11:50:17Z dutka $
  */
+#include <cstdio>
 #include "Contour.hxx"
 #include "PersistentObjectFactory.hxx"
 
--- lib/src/Uncertainty/Distribution/ExtraFunc/dcdflib.cxx~	2008-11-13 20:40:50.000000000 +0000
+++ lib/src/Uncertainty/Distribution/ExtraFunc/dcdflib.cxx	2008-11-13 20:40:59.000000000 +0000
@@ -27,6 +27,7 @@
 # include <iomanip>
 # include <cmath>
 # include <ctime>
+# include <cstdio>
 # include <cstdlib>
 
 # include "Dcdflib.hxx"

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





More information about the Pkg-scicomp-devel mailing list