Package: tmw
Version: 0.0.26-2
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 tmw_0.0.26-2 on em64t by sbuild/amd64 0.53
...
> x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  
> -DTMW_DATADIR=\""/usr/share/games/tmw/"\"   -Wall -I/usr/include/SDL 
> -D_GNU_SOURCE=1 -D_REENTRANT `pkg-config --cflags libxml-2.0`  -g -O2 -MT 
> tmw-strprintf.o -MD -MP -MF .deps/tmw-strprintf.Tpo -c -o tmw-strprintf.o 
> `test -f 'utils/strprintf.cpp' || echo './'`utils/strprintf.cpp
> utils/strprintf.cpp: In function 'std::string strprintf(const char*, ...)':
> utils/strprintf.cpp:36: error: 'vsnprintf' was not declared in this scope
> make[3]: *** [tmw-strprintf.o] Error 1

--- src/utils/strprintf.cpp~    2008-11-08 08:00:01.000000000 +0000
+++ src/utils/strprintf.cpp     2008-11-08 08:00:08.000000000 +0000
@@ -25,6 +25,7 @@
 #define _TMW_UTILS_TOSTRING_H
 
 #include <cstdarg>
+#include <cstdio>
 
 #include "strprintf.h"
 

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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to