[Pkg-octave-devel] Bug#417494: FTBFS with GCC 4.3: missing #includes

Martin Michlmayr tbm at cyrius.com
Mon Apr 2 21:26:02 UTC 2007


Package: octave2.1-forge
Version: 2006.03.17+dfsg1-3
Usertags: ftbfs-gcc-4.3

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
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable.  I'll try to look into this problem but I don't know when
I'll have time.

> Automatic build of octave2.1-forge_2006.03.17+dfsg1-3 on coconut0 by sbuild/ia64 0.49
...
> /usr/bin/g++ -c -fPIC -I/usr/include/octave-2.1.73 -I/usr/include/octave-2.1.73/octave -O2 -Doctave_idx_type=int -DHAVE_OCTAVE_21 -DOCTAVE_FORGE -DHAVE_ND_ARRAYS -DTYPEID_HAS_CLASS -DCLASS_HAS_LOAD_SAVE -DMX_ND_RED_NUM=5 -DHAVE_OCTAVE_CONCAT -DHAVE_SWAP_BYTES -DHAVE_OCTAVE_UPLUS fixedComplex.cc -o fixedComplex.o
> fixedComplex.cc: In function 'FixedPointComplex pow(const FixedPointComplex&, int)':
> fixedComplex.cc:153: error: call of overloaded 'abs(const int&)' is ambiguous
 ^
This is a missing #include <cstdlib>

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




More information about the Pkg-octave-devel mailing list