Package: sabre
Version: 0.2.4b-26
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 sabre_0.2.4b-26 on em64t by sbuild/amd64 0.53
...
> g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DVERSION=\"0.2.4b\" 
> -DREV_DATE=\"11/21/99\" -DUSING_NEWPILOT=1 -DJSTICK_INSTALLED=1 
> -DHAVE_LIBNCURSES=1 -DHAVE_LIBM=1  -I. -I.  -I../gdev -I../libzip    -g -O2 
> -DDEBIAN -c cpoly.C
> In file included from rendpoly.h:25,
>                  from cpoly.C:35:
> clip.h:137: warning: 'typedef' was ignored in this declaration
> In file included from rndrpoly.h:24,
>                  from cpoly.C:36:
> txtrmap.h:44: error: 'int32_t' does not name a type
> txtrmap.h:45: error: 'int32_t' does not name a type
> txtrmap.h: In constructor 'TextrMap::TextrMap()':
> txtrmap.h:76: error: 'map_w' was not declared in this scope
> txtrmap.h:76: error: 'map_h' was not declared in this scope
> txtrmap.h: In constructor 'TextrMap::TextrMap(unsigned char*, int, int, int, 
> int, int)':
> txtrmap.h:100: error: 'map_w' was not declared in this scope
> txtrmap.h:101: error: 'map_h' was not declared in this scope
> txtrmap.h: In member function 'int TextrMap::getPixelColor(int, int, int)':
> txtrmap.h:176: error: 'map_w' was not declared in this scope
> txtrmap.h:177: error: 'map_h' was not declared in this scope

--- src/txtrmap.h~      2008-11-11 21:54:06.000000000 +0000
+++ src/txtrmap.h       2008-11-11 21:54:20.000000000 +0000
@@ -30,6 +30,8 @@
 #include "colormap.h"
 #endif
 
+#include <stdint.h>
+
 #ifdef USES_DDRAW
 #include <ddraw.h>
 #include <d3d.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