From: Szeto June (g2jszeto@cdf.toronto.edu)
Date: 08/14/93


From: g2jszeto@cdf.toronto.edu (Szeto June)
Subject: Problems compiling Xboard 2.1 pl11
Date: 14 Aug 1993 20:58:21 GMT


Hello, all. I've been dutifully trying to compile xboard using the gcc2.3.3
compiler and have been experiencing difficulties. Exciting output like the
following results:

>$ gmake
>flex -t parser.l > parser.c
>gcc -fwritable-strings -fomit-frame-pointer -O2 -m486 -DNO_ASM -I/usr/X386/include -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -Dlinux -DFUNCPROTO=11 -DNARROWPROTO -DHAS_GETTIMEOFDAY -c parser.c -o parser.o
>parser.l:1338: parse error before `1'
>parser.l:1346: redefinition of `input'
>parser.l:1094: `input' previously defined here
>parser.l:1375: redefinition of `yyunput'
>parser.l:1051: `yyunput' previously defined here
>parser.l: In function `yyunput':
>parser.l:1376: argument `ch' doesn't match prototype
>parser.l:1376: argument `yytext' doesn't match prototype
>gmake: *** [parser.o] Error 1

It seems that there's a problem in that flex generates an input function and a
yyunput function, and parser.l contains its own versions of these functions
which get included in the parser.c file. Now, I've tried making changes to
rip out either copy of each function, and while I get an executable xboard
program, it hangs right after it's run(the board comes up, and it just sits
there: I can't play, I can't even select menu options). I've acquired and
compiled gnuchess4.0p62, and it(gnuchess) compiled with no difficulties.
My linux configuration is straight SLS (acquired about a month ago).

Any help would be appreciated,

Frustrated,
June Szeto
g2jszeto@cdf.toronto.edu