Package: protobuf Version: 2.0.2-1 User: [EMAIL PROTECTED] Usertags: ftbfs-gcc-4.4 Tags: patch
Your package fails to build with the upcoming GCC 4.4. Version 4.4 has not been released yet but I'm building with a snapshot in order to find errors and give people an advance warning. GCC 4.4 cleaned up some more C++ headers. You always have to #include headers directly and cannot rely for things to be included indirectly. You can reproduce this problem with gcc-snapshot from unstable. > Automatic build of protobuf_2.0.2-1 on em64t by sbuild/amd64 0.53 ... > /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. > -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -g > -O2 -c -o strutil.lo `test -f 'google/protobuf/stubs/strutil.cc' || echo > './'`google/protobuf/stubs/strutil.cc > g++ -DHAVE_CONFIG_H -I. -I. -I.. -pthread -Wall -Wwrite-strings > -Woverloaded-virtual -Wno-sign-compare -g -O2 -c > google/protobuf/stubs/strutil.cc -fPIC -DPIC -o .libs/strutil.o > google/protobuf/stubs/strutil.cc: In function 'int > google::protobuf::CEscapeInternal(const char*, int, char*, int, bool)': > google/protobuf/stubs/strutil.cc:447: error: 'sprintf' was not declared in > this scope > google/protobuf/stubs/strutil.cc: In function 'char* > google::protobuf::DoubleToBuffer(double, char*)': > google/protobuf/stubs/strutil.cc:996: error: 'snprintf' was not declared in > this scope > google/protobuf/stubs/strutil.cc: In function 'char* > google::protobuf::FloatToBuffer(float, char*)': > google/protobuf/stubs/strutil.cc:1051: error: 'snprintf' was not declared in > this scope > google/protobuf/stubs/strutil.cc: In function 'std::string > google::protobuf::LocalizeRadix(const char*, const char*)': > google/protobuf/stubs/strutil.cc:1085: error: 'sprintf' was not declared in > this scope > make[3]: *** [strutil.lo] Error 1 > make[3]: Leaving directory `/build/tbm/protobuf-2.0.2/src' --- src/google/protobuf/compiler/command_line_interface.cc~ 2008-11-12 07:20:09.000000000 +0000 +++ src/google/protobuf/compiler/command_line_interface.cc 2008-11-12 07:20:18.000000000 +0000 @@ -42,6 +42,7 @@ #include <unistd.h> #endif #include <errno.h> +#include <cstdio> #include <iostream> #include <ctype.h> --- src/google/protobuf/stubs/strutil.cc~ 2008-11-12 07:15:41.000000000 +0000 +++ src/google/protobuf/stubs/strutil.cc 2008-11-12 07:15:49.000000000 +0000 @@ -33,6 +33,7 @@ #include <google/protobuf/stubs/strutil.h> #include <errno.h> #include <float.h> // FLT_DIG and DBL_DIG +#include <cstdio> #include <limits> #include <limits.h> --- src/google/protobuf/text_format.cc~ 2008-11-12 07:18:41.000000000 +0000 +++ src/google/protobuf/text_format.cc 2008-11-12 07:18:50.000000000 +0000 @@ -34,6 +34,7 @@ #include <float.h> #include <math.h> +#include <cstdio> #include <stack> #include <limits> P.S. I'm not sure I caught all problems because I ran into an unrelated build issue. -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]