Package: brutalchess
Version: 0.5+dfsg-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.  A patch for this problem is
below.

> Automatic build of brutalchess_0.5+dfsg-1 on coconut0 by sbuild/ia64 0.49
...
> if ia64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.     -Wall -g -O2  
> -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -MT 
> brutalplayer.o -MD -MP -MF ".deps/brutalplayer.Tpo" -c -o brutalplayer.o 
> brutalplayer.cpp; \
>       then mv -f ".deps/brutalplayer.Tpo" ".deps/brutalplayer.Po"; else rm -f 
> ".deps/brutalplayer.Tpo"; exit 1; fi
> In file included from bitboard.h:12,
>                  from board.h:16,
>                  from brutalplayer.cpp:9:
> boardposition.h:101: warning: type qualifiers ignored on function return type
> boardposition.h:102: warning: type qualifiers ignored on function return type
> boardposition.h:103: warning: type qualifiers ignored on function return type
> boardposition.h:104: warning: type qualifiers ignored on function return type
> boardposition.h:105: warning: type qualifiers ignored on function return type
> boardposition.h:106: warning: type qualifiers ignored on function return type
> boardposition.h:107: warning: type qualifiers ignored on function return type
> boardposition.h:108: warning: type qualifiers ignored on function return type
> In file included from boardmove.h:17,
>                  from board.h:17,
>                  from brutalplayer.cpp:9:
> piece.h: In constructor 'Piece::Piece(Piece::Color, Piece::Type)':
> piece.h:62: warning: 'Piece::m_color' will be initialized after
> piece.h:60: warning:   'Piece::Type Piece::m_type'
> piece.h:36: warning:   when initialized here
> In file included from board.h:17,
>                  from brutalplayer.cpp:9:
> boardmove.h: At global scope:
> boardmove.h:46: warning: type qualifiers ignored on function return type
> boardmove.h:56: warning: type qualifiers ignored on function return type
> brutalplayer.cpp: In member function 'virtual void BrutalPlayer::think(const 
> ChessGameState&)':
> brutalplayer.cpp:29: error: 'INT_MAX' was not declared in this scope
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> brutalplayer.cpp: In member function 'int BrutalPlayer::search(Board, 
> Piece::Color, int, int, int, BoardMove&)':
> brutalplayer.cpp:37: error: 'INT_MAX' was not declared in this scope
> brutalplayer.cpp:42: warning: comparison between signed and unsigned integer 
> expressions
> brutalplayer.cpp: In member function 'int BrutalPlayer::evaluateBoard(const 
> Board&, Piece::Color)':
> brutalplayer.cpp:90: warning: enumeration value 'NOTYPE' not handled in switch
> brutalplayer.cpp:135: warning: comparison between signed and unsigned integer 
> expressions
> brutalplayer.cpp:138: warning: comparison between signed and unsigned integer 
> expressions
> brutalplayer.cpp:141: warning: comparison between signed and unsigned integer 
> expressions
> brutalplayer.cpp:144: warning: comparison between signed and unsigned integer 
> expressions
> brutalplayer.cpp:147: warning: comparison between signed and unsigned integer 
> expressions
> brutalplayer.cpp:150: warning: comparison between signed and unsigned integer 
> expressions
> brutalplayer.cpp: In member function 'int BrutalPlayer::knightBonus(const 
> BoardPosition&, const Board&, Piece::Color, bool)':
> brutalplayer.cpp:205: warning: unused variable 'drivenBonus'
> board.h: At global scope:
> board.h:246: warning: 'pow2' defined but not used
> make[3]: *** [brutalplayer.o] Error 1

--- src/brutalplayer.cpp~       2007-03-05 11:44:48.000000000 +0000
+++ src/brutalplayer.cpp        2007-03-05 11:45:01.000000000 +0000
@@ -10,6 +10,7 @@
 #include "chessplayer.h"
 #include "options.h"
 
+#include <climits>
 #include <vector>
 #include <time.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