bug-gnu-chess
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error building from latest source


From: Alex Ignácio da Silva
Subject: error building from latest source
Date: Thu, 17 Sep 2009 12:49:18 -0300
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]