Package: hoichess
Version: 0.8.0-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 from unstable.

> Automatic build of hoichess_0.8.0-1 on coconut0 by sbuild/ia64 0.49
...
> g++ -Wall -g -O2 -DHAVE_PTHREAD -DHAVE_READLINE -DHOICHESS -I. -Ichess -c -o 
> .build-unix/.hoichess/evalcache.o evalcache.cc
> evalcache.cc: In constructor 'EvaluationCache::EvaluationCache(long unsigned 
> int)':
> evalcache.cc:35: error: 'INT_MIN' was not declared in this scope
> evalcache.cc: In member function 'void EvaluationCache::clear()':
> evalcache.cc:52: error: 'INT_MIN' was not declared in this scope
> evalcache.cc: In member function 'bool EvaluationCache::put(const Board&, 
> int)':
> evalcache.cc:65: error: 'INT_MIN' was not declared in this scope
> evalcache.cc: In member function 'bool EvaluationCache::probe(const Board&, 
> int*)':
> evalcache.cc:84: error: 'INT_MIN' was not declared in this scope
> make[3]: *** [.build-unix/.hoichess/evalcache.o] Error 1

--- src/evalcache.cc~   2007-04-01 20:55:41.000000000 +0000
+++ src/evalcache.cc    2007-04-01 20:55:47.000000000 +0000
@@ -24,6 +24,7 @@
 #include "common.h"
 #include "evalcache.h"
 
+#include <climits>
 
 EvaluationCache::EvaluationCache(unsigned long size)
 {

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