Package: protobuf-c
Version: 0.10-1
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has 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-4.4/g++-4.4 from unstable.

> Automatic build of protobuf-c_0.10-1 on em64t by sbuild/amd64 0.53
...
> mkdir -p generated-code
> /usr/bin/protoc -I. --cpp_out=generated-code ./test-full.proto
> g++ -DPACKAGE_NAME=\"protobuf-c\" -DPACKAGE_TARNAME=\"protobuf-c\" 
> -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"protobuf-c\ 0.10\" 
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"protobuf-c\" -DVERSION=\"0.10\" 
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" 
> -DHAVE_INTTYPES_H=1 -DHAVE_ENDIAN_H=1 -DIS_LITTLE_ENDIAN=1 -I. -I./..    -g 
> -O2 -c -o cxx-generate-packed-data.o cxx-generate-packed-data.cc
> In file included from cxx-generate-packed-data.cc:15:
> common-test-arrays.h:59: warning: deprecated conversion from string constant 
> to 'char*'
> common-test-arrays.h:60: warning: deprecated conversion from string constant 
> to 'char*'
> common-test-arrays.h:60: warning: deprecated conversion from string constant 
> to 'char*'
> common-test-arrays.h:61: warning: deprecated conversion from string constant 
> to 'char*'
> common-test-arrays.h:61: warning: deprecated conversion from string constant 
> to 'char*'
> common-test-arrays.h:61: warning: deprecated conversion from string constant 
> to 'char*'
> common-test-arrays.h:61: warning: deprecated conversion from string constant 
> to 'char*'
> common-test-arrays.h:61: warning: deprecated conversion from string constant 
> to 'char*'
> common-test-arrays.h:61: warning: deprecated conversion from string constant 
> to 'char*'
> common-test-arrays.h:61: warning: deprecated conversion from string constant 
> to 'char*'
> In file included from cxx-generate-packed-data.cc:15:
> common-test-arrays.h:62: warning: deprecated conversion from string constant 
> to 'char*'
> cxx-generate-packed-data.cc: In function 'void 
> dump_message_bytes(google::protobuf::Message*, const char*)':
> cxx-generate-packed-data.cc:29: error: 'printf' was not declared in this scope
> make[3]: *** [cxx-generate-packed-data.o] Error 1
> make[3]: Leaving directory `/build/tbm/protobuf-c-0.10/src/test'

--- src/test/cxx-generate-packed-data.cc~       2009-05-17 07:36:26.000000000 
+0000
+++ src/test/cxx-generate-packed-data.cc        2009-05-17 07:36:48.000000000 
+0000
@@ -4,6 +4,7 @@
 #define __STDC_LIMIT_MACROS
 #include "generated-code/test-full.pb.h"
 #include <inttypes.h>
+#include <stdio.h>
 
 using namespace foo;
 

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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to