Package: gsmlib Version: 1.10-12 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. GCC 4.3 has converted a number of warnings into errors. With GCC 4.3, you're no longer to just redefine a previous #define. You need to either avoid redefinitions directly or to use #ifndef to make sure that something has not been defined already. See http://www.cyrius.com/journal/gcc/gcc-4.3-pedwarn.html
You can reproduce this problem with gcc-snapshot from unstable. Note that Red Hat, Novell and Ubuntu have done some work getting packages to build with GCC 4.3 so there might be patches floating around somewhere. I suggest you talk to your upstream. > Automatic build of gsmlib_1.10-12 on em64t by sbuild/amd64 0.53 ... > /bin/sh ../libtool --mode=compile x86_64-linux-gnu-g++ -DHAVE_CONFIG_H > -I. -I. -I.. -I.. -Wall -D_REENTRANT -O2 -c -o gsm_util.lo `test -f > 'gsm_util.cc' || echo './'`gsm_util.cc > x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -D_REENTRANT > -O2 -c gsm_util.cc -MT gsm_util.lo -MD -MP -MF .deps/gsm_util.TPlo -fPIC > -DPIC -o .libs/gsm_util.o > In file included from > /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/backward/strstream:51, > from gsm_util.cc:23: > /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/backward/backward_warning.h:32:2: > warning: #warning This file includes at least one deprecated or antiquated > header. Please consider use of an equivalent, non-deprecated interface for > the requested functionality. A list of valid replacements is as follows: Use: > Instead of: <sstream>, basic_stringbuf <strstream>, strstreambuf <sstream>, > basic_istringstream <strstream>, istrstream <sstream>, basic_ostringstream > <strstream>, ostrstream <sstream>, basic_stringstream <strstream>, strstream > <unordered_set>, unordered_set <ext/hash_set>, hash_set <unordered_set>, > unordered_multiset <ext/hash_set>, hash_multiset <unordered_map>, > unordered_map <ext/hash_set>, hash_map <unordered_map>, unordered_multimap > <ext/hash_set>, hash_multimap <functional>, bind <functional>, binder1st > <functional>, bind <functional>, binder2nd <functional>, bind <functional>, > bind1st <functional>, bind <functional>, bind2nd <memory>, unique_ptr > <memory>, auto_ptr To disable this warning use -Wno-deprecated. > gsm_util.cc:35:1: error: "__USE_GNU" redefined > In file included from /usr/include/libintl.h:24, > from ../gsmlib/gsm_nls.h:26, > from gsm_util.cc:16: > /usr/include/features.h:277:1: error: this is the location of the previous > definition > gsm_util.cc:36:1: error: "_GNU_SOURCE" redefined > <command-line>: error: this is the location of the previous definition > gsm_util.cc: In function 'std::string gsmlib::gsmToLatin1(std::string)': > gsm_util.cc:107: warning: array subscript has type 'char' > make[3]: *** [gsm_util.lo] Error 1 -- Martin Michlmayr http://www.cyrius.com/