Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gnuchess compilation error

10 views
Skip to first unread message

vishnumurthy prabhu

unread,
Jul 16, 2010, 2:02:33 AM7/16/10
to
I have downloaded tar ball of gnuchess-5.07. and I tried to build
using following commands in the extracted directory.
$sudo make ./configure
$sudo make

./configure went fine. but when compiling, It gave following error.

In file included from atak.c:29:
common.h:748: error: ‘getline’ redeclared as different kind of symbol
/usr/include/stdio.h:651: note: previous declaration of ‘getline’ was
here

and It stopped there itself.

I am using ubuntu 10.04.
gcc 4.4.3


complete message upon "make" is as follows:

Making all in src
make[1]: Entering directory `/home/vishnumurthy/Downloads/assignments/
chess/gnuchess-5.07/src'
make all-am
make[2]: Entering directory `/home/vishnumurthy/Downloads/assignments/
chess/gnuchess-5.07/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -pthread -g -O2 -MT atak.o -MD -MP -
MF ".deps/atak.Tpo" \
-c -o atak.o `test -f 'atak.c' || echo './'`atak.c; \
then mv -f ".deps/atak.Tpo" ".deps/atak.Po"; \
else rm -f ".deps/atak.Tpo"; exit 1; \
fi
In file included from atak.c:29:
common.h:748: error: ‘getline’ redeclared as different kind of symbol
/usr/include/stdio.h:651: note: previous declaration of ‘getline’ was
here
make[2]: *** [atak.o] Error 1
make[2]: Leaving directory `/home/vishnumurthy/Downloads/assignments/
chess/gnuchess-5.07/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/vishnumurthy/Downloads/assignments/
chess/gnuchess-5.07/src'
make: *** [all-recursive] Error 1

Simon Waters (GNU)

unread,
Dec 10, 2010, 12:36:25 PM12/10/10
to vishnumurthy prabhu, bug-gn...@gnu.org
I believe this is fixed in CVS version

http://savannah.gnu.org/cvs/?group_id=134

Should be at or about release quality, as this was prepared for release
of 5.08, we plan to release 6 shortly which is based on a different code
base entirely.

Simon

> _______________________________________________
> Bug-gnu-chess mailing list
> Bug-gn...@gnu.org
> http://lists.gnu.org/mailman/listinfo/bug-gnu-chess

0 new messages