Package: libitpp Version: 3.10.10-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. (Currently not available for i386, but for amd64, powerpc and ia64. I hope to have i386 binaries in the archive in ~3 weeks.) > Automatic build of libitpp_3.10.10-1 on em64t by sbuild/amd64 0.53 ... > x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../itpp -I../.. -I../.. > -DASSERT_LEVEL=1 -O3 -fno-exceptions -pipe -MT libbase_la-elmatfunc.lo -MD > -MP -MF .deps/libbase_la-elmatfunc.Tpo -c ../../itpp/base/elmatfunc.cpp > -fPIC -DPIC -o .libs/libbase_la-elmatfunc.o > ../../itpp/base/elmatfunc.cpp: In function 'itpp::ivec itpp::abs(const > itpp::ivec&)': > ../../itpp/base/elmatfunc.cpp:65: error: call of overloaded 'abs(const int&)' > is ambiguous > /usr/lib/gcc-snapshot/lib/gcc/x86_64-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/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:92: > note: float std::abs(float) > /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:96: > note: long double std::abs(long double) > ../../itpp/base/binary.h:186: note: short int std::abs(const > itpp::bin&) > ../../itpp/base/elmatfunc.cpp: In function 'itpp::imat itpp::abs(const > itpp::imat&)': > ../../itpp/base/elmatfunc.cpp:76: error: call of overloaded 'abs(const int&)' > is ambiguous > /usr/lib/gcc-snapshot/lib/gcc/x86_64-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/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:92: > note: float std::abs(float) > /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:96: > note: long double std::abs(long double) > ../../itpp/base/binary.h:186: note: short int std::abs(const > itpp::bin&) > make[5]: *** [libbase_la-elmatfunc.lo] Error 1 --- itpp/base/elmatfunc.h~ 2007-04-14 19:12:53.000000000 +0000 +++ itpp/base/elmatfunc.h 2007-04-14 19:26:55.000000000 +0000 @@ -35,6 +35,7 @@ #include <itpp/base/help_functions.h> #include <itpp/base/converters.h> +#include <cstdlib> namespace itpp { --- itpp/base/itassert.cpp~ 2007-04-14 19:17:44.000000000 +0000 +++ itpp/base/itassert.cpp 2007-04-14 19:17:51.000000000 +0000 @@ -37,6 +37,7 @@ #endif #include <itpp/base/itassert.h> +#include <cstdlib> #include <iostream> #include <sstream> #include <string> --- itpp/base/parser.cpp~ 2007-04-14 19:19:32.000000000 +0000 +++ itpp/base/parser.cpp 2007-04-14 19:19:38.000000000 +0000 @@ -33,6 +33,7 @@ */ #include <itpp/base/parser.h> +#include <cstdlib> #include <fstream> --- itpp/base/scalfunc.cpp~ 2007-04-14 19:20:36.000000000 +0000 +++ itpp/base/scalfunc.cpp 2007-04-14 19:20:45.000000000 +0000 @@ -32,6 +32,7 @@ #include <itpp/base/scalfunc.h> #include <itpp/base/vec.h> +#include <cstdlib> #include <cmath> --- itpp/comm/error_counters.cpp~ 2007-04-14 19:24:39.000000000 +0000 +++ itpp/comm/error_counters.cpp 2007-04-14 19:24:45.000000000 +0000 @@ -34,6 +34,7 @@ #include <itpp/comm/error_counters.h> #include <itpp/base/matfunc.h> #include <itpp/base/converters.h> +#include <cstdlib> #include <iostream> #include <iomanip> --- itpp/comm/llr.h~ 2007-04-14 19:26:15.000000000 +0000 +++ itpp/comm/llr.h 2007-04-14 19:26:23.000000000 +0000 @@ -39,6 +39,7 @@ #include <itpp/base/mat.h> #include <itpp/base/specmat.h> #include <itpp/base/matfunc.h> +#include <climits> namespace itpp { --- itpp/protocol/selective_repeat.cpp~ 2007-04-14 19:31:20.000000000 +0000 +++ itpp/protocol/selective_repeat.cpp 2007-04-14 19:38:39.000000000 +0000 @@ -31,6 +31,7 @@ */ #include <itpp/protocol/selective_repeat.h> +#include <cstdlib> namespace itpp { --- itpp/protocol/tcp.cpp~ 2007-04-14 19:31:57.000000000 +0000 +++ itpp/protocol/tcp.cpp 2007-04-14 19:32:45.000000000 +0000 @@ -36,6 +36,8 @@ #include <itpp/protocol/tcp.h> #include <itpp/base/itfile.h> #include <limits> +#include <climits> +#include <cstdlib> #include <ctime> --- itpp/srccode/vq.cpp~ 2007-04-14 19:34:02.000000000 +0000 +++ itpp/srccode/vq.cpp 2007-04-14 19:34:11.000000000 +0000 @@ -33,6 +33,7 @@ #include <itpp/srccode/vq.h> #include <itpp/base/array.h> #include <itpp/base/matfunc.h> +#include <cstdlib> #include <fstream> #include <iostream> -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]