Package: libwfut
Version: 0.2.0-3
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 libwfut_0.2.0-3 on em64t by sbuild/amd64 0.53
...
> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I..
> -I.. -g -O2 -g -Wall -O2 -Wall -DTIXML_USE_STL=1 -I/usr/include/sigc++-2.0
> -I/usr/lib/sigc++-2.0/include -c -o libwfut_0_2_la-Encoder.lo `test -f
> 'Encoder.cpp' || echo './'`Encoder.cpp
> g++ -DHAVE_CONFIG_H -I. -I.. -I.. -g -O2 -g -Wall -O2 -Wall
> -DTIXML_USE_STL=1 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -c
> Encoder.cpp -fPIC -DPIC -o .libs/libwfut_0_2_la-Encoder.o
> Encoder.cpp: In static member function 'static std::string
> WFUT::Encoder::encodeString(const std::string&)':
> Encoder.cpp:29: error: 'snprintf' was not declared in this scope
> Encoder.cpp: In static member function 'static std::string
> WFUT::Encoder::decodeString(const std::string&)':
> Encoder.cpp:45: error: 'sscanf' was not declared in this scope
> Encoder.cpp: In static member function 'static std::string
> WFUT::Encoder::encodeURL(const std::string&)':
> Encoder.cpp:78: error: 'snprintf' was not declared in this scope
> make[3]: *** [libwfut_0_2_la-Encoder.lo] Error 1
--- libwfut/Encoder.cpp~ 2008-11-11 20:47:41.000000000 +0000
+++ libwfut/Encoder.cpp 2008-11-11 20:47:53.000000000 +0000
@@ -4,6 +4,8 @@
#include "libwfut/Encoder.h"
+#include <cstdio>
+
namespace WFUT {
std::string Encoder::encodeString(const std::string &str) {
--- tools/wfut.cpp~ 2008-11-11 20:49:17.000000000 +0000
+++ tools/wfut.cpp 2008-11-11 20:49:25.000000000 +0000
@@ -12,6 +12,7 @@
#include <sys/stat.h>
#include <sys/types.h>
+#include <cstdio>
#include <algorithm>
#include <sigc++/bind.h>
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]