Package: wesnoth
Version: 1.2-1
Usertags: ftbfs-gcc-4.3
Tags: patch

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.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable. (Currently not available for i386, but for amd64, powerpc
and ia64.  I hope to have i386 binaries in the archive in ~3 weeks.)

> Automatic build of wesnoth_1.2-1 on coconut0 by sbuild/ia64 0.49
...
> g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/include/freetype2 -I ./sdl_ttf 
> -I../intl -I../intl -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT 
> -DHAVE_PYTHON -I/usr/include/python2.4 
> -DWESNOTH_PATH=\"/usr/share/games/wesnoth\" -DLOCALEDIR=\"/usr/share/locale\" 
> -DHAS_RELATIVE_LOCALEDIR=0 -DFIFODIR=\"/var/run/wesnothd\" -DHAVE_FRIBIDI 
> -I/usr/include -O2 -W -Wall -ansi -g -Wall -O2 -D_X11    -c -o color_range.o 
> color_range.cpp
> In file included from color_range.cpp:15:
> color_range.hpp:22: error: 'string' is not a member of 'std'
> color_range.cpp: In function 'std::vector<unsigned int, 
> std::allocator<unsigned int> > string2rgb(std::string)':
> color_range.cpp:22: error: 'std::vector<unsigned int, std::allocator<unsigned 
> int> > string2rgb(std::string)' redeclared as different kind of symbol
> color_range.hpp:22: error: previous declaration of 'std::vector<unsigned int, 
> std::allocator<unsigned int> > string2rgb'
> make[3]: *** [color_range.o] Error 1

--- src/color_range.hpp~        2007-04-04 13:39:44.000000000 +0000
+++ src/color_range.hpp 2007-04-04 13:39:50.000000000 +0000
@@ -15,6 +15,7 @@
 
 #include "global.hpp"
 
+#include <string>
 #include <vector>
 #include "SDL_types.h"
 
--- src/thread.cpp~     2007-04-04 13:43:06.000000000 +0000
+++ src/thread.cpp      2007-04-04 13:43:13.000000000 +0000
@@ -17,6 +17,7 @@
 
 #include <new>
 #include <iostream>
+#include <memory>
 #include <vector>
 
 #define ERR_G LOG_STREAM(err, general)
--- src/animated.cpp~   2007-04-04 13:48:46.000000000 +0000
+++ src/animated.cpp    2007-04-04 13:48:52.000000000 +0000
@@ -16,6 +16,7 @@
 
 //#include <string>
 //#include <vector>
+#include <climits>
 #include "SDL.h"
 #include "animated.hpp"
 #include "util.hpp"
--- src/builder.cpp~    2007-04-04 13:50:03.000000000 +0000
+++ src/builder.cpp     2007-04-04 13:50:11.000000000 +0000
@@ -22,6 +22,7 @@
 #include "util.hpp"
 #include "wassert.hpp"
 #include "serialization/string_utils.hpp"
+#include <climits>
 
 #define ERR_NG LOG_STREAM(err, engine)
 
--- src/unit_animation.cpp~     2007-04-04 14:03:32.000000000 +0000
+++ src/unit_animation.cpp      2007-04-04 14:03:39.000000000 +0000
@@ -24,6 +24,7 @@
 #include "color_range.hpp"
 
 #include <algorithm>
+#include <climits>
 #include <cstdlib>
 #include <iostream>
 

-- 
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