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

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


Package: octave2.1
Version: 1:2.1.73-13
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_1:2.1.73-13 on coconut0 by sbuild/ia64 0.49
...
> /usr/bin/g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H  -Wall -W -Wshadow -O2 data-conv.cc -o pic/data-conv.o
> data-conv.cc: In static member function 'static void oct_data_conv::string_to_data_type(const std::string&, int&, oct_data_conv::data_type&, oct_data_conv::data_type&)':
> data-conv.cc:280: error: 'atoi' was not declared in this scope
> data-conv.cc: In static member function 'static void oct_data_conv::string_to_data_type(const std::string&, int&, oct_data_conv::data_type&)':
> data-conv.cc:344: error: 'atoi' was not declared in this scope
> make[3]: *** [pic/data-conv.o] Error 1
> make[3]: Leaving directory `/build/tbm/octave2.1-2.1.73/liboctave'

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




More information about the Pkg-octave-devel mailing list