Package: necpp
Version: 1.2.4+cvs20060601-1
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
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable.

> Automatic build of necpp_1.2.4+cvs20060601-1 on coconut0 by sbuild/ia64 0.49
...
> c_geometry.cpp: In member function 'void c_geometry::connect_segments(int)':
> c_geometry.cpp:1508: error: call of overloaded 'abs(int&)' is ambiguous
> /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:88:
>  note: candidates are: double std::abs(double)
> /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:92:
>  note:                 float std::abs(float)
> /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:96:
>  note:                 long double std::abs(long double)
> c_geometry.cpp: In member function 'void 
> c_geometry::read_geometry_card(FILE*, char*, int*, int*, nec_float*, 
> nec_float*, nec_float*, nec_float*, nec_float*, nec_float*, nec_float*)':
> c_geometry.cpp:2319: error: 'atoi' was not declared in this scope
> c_geometry.cpp:2381: error: 'atof' was not declared in this scope
> c_geometry.cpp: In member function 'void c_geometry::tbf(int, int)':
> c_geometry.cpp:2496: error: call of overloaded 'abs(int&)' is ambiguous

--- src/c_geometry.h~   2007-04-02 19:11:04.000000000 +0000
+++ src/c_geometry.h    2007-04-02 19:11:10.000000000 +0000
@@ -18,6 +18,7 @@
 #ifndef __c_geometry__
 #define __c_geometry__
 #include "math_util.h"
+#include <cstdlib>
 #include <vector>
 #include <iostream>
 
--- src/c_ggrid.h~      2007-04-02 19:12:01.000000000 +0000
+++ src/c_ggrid.h       2007-04-02 19:12:08.000000000 +0000
@@ -18,6 +18,7 @@
 #ifndef __c_ggrid__
 #define __c_ggrid__
 
+#include <cstdlib>
 #include "math_util.h"
 #include "common.h"
 #include "misc.h"

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to