error building from latest source

Alex Ignácio da Silva <[email protected]> Thu, 17 Sep 2009 12:49:18 -0300
Newsgroups gmane.comp.gnu.chess.bugs
Message-ID <[email protected]>
Hi all,

I'm having problems trying to build the latest GNU Chess source in my
Ubuntu 8.04 box. I obtained it from here:

http://ftp.gnu.org/pub/gnu/chess/gnuchess-5.07.tar.gz

The compiler error message is:

if gcc -DHAVE_CONFIG_H -I. -I. -I.    -pthread -g -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

The Debian package of GNU Chess 5.07-4.1 has corrected this problem by
removing line 719 in common.h:
extern pthread_t input_thread;

and this has worked for me.

Perhaps this change could be applied in the mainstream gnu chess' source
 code too?

Thanks,

Alex