[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem using bison
From: |
Paul Eggert |
Subject: |
Re: Problem using bison |
Date: |
04 Feb 2004 12:52:47 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
"Wilson, Sue LCC" <address@hidden> writes:
> It errors and does not create the y.tab.c ...
The message "conflicts: 6 shift/reduce" is just a warning; it shouldn't
prevent Bison from creating the output file.
> I did this senario and got the same results... Nothing
> > > bash-2.05# ls -1 > /tmp/before
> > > bash-2.05# bison -y parsedate.y
> > > conflicts: 6 shift/reduce
> > > bash-2.05# ls -1 > /tmp/after
> > > bash-2.05# diff -u /tmp/before /tmp/after No differences encountered
That might occur if "y.tab.c" already existed before you ran Bison.
I tried both Bison 1.35 and Bison 1.875 on INN 2.4.1's parsedate.y;
they both worked for me.
Perhaps your copy of INN is broken somehow. Can you please try
running the following commands, to get a fresh version of INN's
source?
mkdir new
cd new
wget ftp://ftp.isc.org/isc/inn/inn-2.4.1.tar.gz
gunzip <inn-2.4.1.tar.gz | tar xf -
cd inn-2.4.1/lib
bison -y parsedate.y
ls -l y.tab.c
bison --version
The output of the above commands looks like this on my host.
As you can see, it works for me with Bison 1.875.
$ mkdir new
$ cd new
$ wget ftp://ftp.isc.org/isc/inn/inn-2.4.1.tar.gz
--12:50:21-- ftp://ftp.isc.org/isc/inn/inn-2.4.1.tar.gz
=> `inn-2.4.1.tar.gz'
Resolving ftp.isc.org... done.
Connecting to ftp.isc.org[204.152.184.110]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /isc/inn ... done.
==> PORT ... done. ==> RETR inn-2.4.1.tar.gz ... done.
Length: 1,849,845 (unauthoritative)
100%[====================================>] 1,849,845 48.44K/s ETA 00:00
12:51:00 (48.44 KB/s) - `inn-2.4.1.tar.gz' saved [1849845]
$ gunzip <inn-2.4.1.tar.gz | tar xf -
$ cd inn-2.4.1/lib
$ bison -y parsedate.y
conflicts: 6 shift/reduce
$ ls -l y.tab.c
-rw-r--r-- 1 eggert eggert 57776 2004-02-04 12:51 y.tab.c
$ bison --version
bison (GNU Bison) 1.875
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.