[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#417170: FTBFS with GCC 4.3: missing #includes

Package: ecos
Version: 2.0-0pre3
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of ecos_2.0-0pre3 on em64t by sbuild/amd64 0.53
> ../../../../../../../build-tree/ecos-2.0/tools/src/tools/configtool/standalone/common/cdl_exec.cxx:469: error: 'cwd' was not declared in this scope
> ../../../../../../../build-tree/ecos-2.0/tools/src/tools/configtool/standalone/common/cdl_exec.cxx: In member function 'bool cdl_exec::cmd_check()':
> ../../../../../../../build-tree/ecos-2.0/tools/src/tools/configtool/standalone/common/cdl_exec.cxx:665: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'size_t'
> make[4]: *** [cdl_exec.o] Error 1
> make[4]: Leaving directory `/build/tbm/ecos-2.0/build/tools/src/tools/configtool/standalone/common'

--- ecos-2.0/tools/src/tools/configtool/standalone/common/cdl_exec.cxx~	2007-04-01 18:21:39.000000000 +0000
+++ ecos-2.0/tools/src/tools/configtool/standalone/common/cdl_exec.cxx	2007-04-01 18:21:56.000000000 +0000
@@ -49,6 +49,7 @@
 #include <sys/param.h>  /* for MAXPATHLEN */
 #include <sys/cygwin.h> /* for cygwin_conv_to_win32_path() */
+#include <climits>
 #include "build.hxx"
 #include "cdl_exec.hxx"

Martin Michlmayr

Reply to: