Package: gnuchess Severity: normal Tags: patch When building 'gnuchess' on amd64 with gcc-4.0, I get the following error:
if gcc -DHAVE_CONFIG_H -I. -I. -I. -pthread -g -Wall -W -O2 -MT input.o -MD -MP -MF ".deps/input.Tpo" \ -c -o input.o `test -f 'input.c' || echo './'`input.c; \ then mv -f ".deps/input.Tpo" ".deps/input.Po"; \ else rm -f ".deps/input.Tpo"; exit 1; \ fi input.c:95: error: static declaration of 'input_thread' follows non-static declaration common.h:719: error: previous declaration of 'input_thread' was here make[3]: *** [input.o] Error 1 make[3]: Leaving directory `/gnuchess-5.07/src' With the attached patch 'gnuchess' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/gnuchess-5.07/src/common.h ./src/common.h --- ../tmp-orig/gnuchess-5.07/src/common.h 2003-06-30 13:28:38.000000000 +0200 +++ ./src/common.h 2005-03-01 18:01:50.629624486 +0100 @@ -716,7 +716,6 @@ /* Input thread and thread function */ #include <pthread.h> -extern pthread_t input_thread; void *input_func(void *); /* -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]