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

Martin Michlmayr tbm at cyrius.com
Mon Apr 2 21:27:42 UTC 2007


Package: octave2.9
Version: 2.9.9-8etch1
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.9_2.9.9-8etch1 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 -Wold-style-cast -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:285: 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:358: error: 'atoi' was not declared in this scope
> make[3]: *** [pic/data-conv.o] Error 1

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




More information about the Pkg-octave-devel mailing list