![]()
From: Peter Becker (pbecker@meganesia.int.gu.edu.au)
Date: Sat Apr 14 2001 - 02:18:39 CDT
Peter C. McCluskey wrote:
> pbecker@meganesia.int.gu.edu.au (Peter Becker) writes:
>
>> Hello,
>>
>> maybe it is just time for me to go into bed but I have some problems
>> compiling hypermail. I tried to compile both 2.0.0 and 2.1.0 on a RedHat
>> 6.2 machine with this result:
>>
>> Expect 13 shift/reduce conflicts.
>> bison -y getdate.y
>> conflicts: 13 shift/reduce
>> gcc -c -g -O2 getdate.c
>> /usr/lib/bison.simple: In function `gd_parse':
>> /usr/lib/bison.simple:285: invalid initializer
>> make[1]: *** [getdate.o] Error 1
>> make[1]: Leaving directory
>> `/mnt/disk5/home/pbecker/build/hypermail-2.0.0/src'
>> make: *** [hypermail] Error 2
>
>
> I use RedHat 6.2 and don't see this problem. Did you install a nonstandard
> version of bison?
Not that I am aware of, but this system has definiterly seen too many
administrators and I am not used to RedHat. RPM says:
[pbecker@meganesia pbecker]$ rpm --query bison
bison-1.28-2
The comments in the files getdate.c and bison.simple match this version
number (1.28).
> Can you send us the relevant part of the getdate.c that is generated on
> your system? It's probably near a "#line 286".
Isn't this the relevant part:
--------snip---------
#line 183 "getdate.y"
typedef union {
int Number;
enum _MERIDIAN Meridian;
} YYSTYPE;
#include <stdio.h>
--------snap---------
?
Here is the part you wanted:
--------snip---------
case 20:
#line 286 "getdate.y"
{
yyMonth = yyvsp[-2].Number;
yyDay = yyvsp[0].Number;
;
break;}
--------snap---------
The whole file is temporarly available as
http://meganesia.int.gu.edu.au/~pbecker/getdate.c and the bison file can
be found via http://meganesia.int.gu.edu.au/~pbecker/bison.simple --
I'll delete them in some days.
HTH,
Peter
PS: another thing that might be relevant:
[pbecker@meganesia hypermail-2.1.0]$ gcc --version
egcs-2.91.66
at least a difference to the SuSE installations.
![]()