From: Paul Francis (aa934@Freenet.carleton.ca)
Date: 08/16/93


From: aa934@Freenet.carleton.ca (Paul Francis)
Subject: Re: Problems compiling Xboard 2.1 pl11
Date: Mon, 16 Aug 1993 08:58:13 GMT


In a previous article, g2jszeto@cdf.toronto.edu (Szeto June) says:

>
>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
>
.... some lines deleted ....
>Any help would be appreciated,
>
>Frustrated,
>June Szeto
>g2jszeto@cdf.toronto.edu
>
I discovered the same thing about parser.l/parser.c a couple of weeks aga. So I
took the xboard source to a SPARCstation2 with SunOS4.1.1 and tried to "make" it.
Instead of flex it used lex. The resulting parser.c module compiled with no
problems using SunOS cc, however the second module, xboard.c I think it was, would not
compile. On my Linux machine (SLS 1.02) I had the same problem as you mentioned
but xboard.c compiled fine. So I took the lex output from the SUN machine (parser.c)
to my home system. I ran make and got a lot of warning messages but it made OK.
It runs with no problems under Xview/openwin :-)

If you don't have access to a SPARC machine with SunOS let me know (pfrancis@world.std.com)
and I will send you the lex version of parser.c.

Paul Francis (Internet: pfrancis@world.std.com)

--