Thread: pl pgsql grammer file contains error
hi!
I tried to extend the grammer for plpgsql by editing
postgresql-7.4.3/src/pl/plpgsql/src/gram.y
but as soon as you compile it (even without any changes)
it gives an error
user$ make
bison -y -d gram.y
/usr/bin/m4: ERROR: EOF in string
Has this been overlooked as the generated C file is also present in the distro and no one noticed that the grammer file does not compile any more?
The database still installs and runs fine if installed using the configure and make drill
thanks
paraM
Paramveer.Singh@trilogy.com writes: > I tried to extend the grammer for plpgsql by editing > postgresql-7.4.3/src/pl/plpgsql/src/gram.y > but as soon as you compile it (even without any changes) > it gives an error > user$ make > bison -y -d gram.y > /usr/bin/m4: ERROR: EOF in string What Bison version are you using? It appears to be broken. > Has this been overlooked as the generated C file is also present in the > distro and no one noticed that the grammer file does not compile any more? Hardly. regards, tom lane
Further info on the problem I sent some hours back:
the version of bison I am using is: 1.75
version of m4:
----- Forwarded by Paramveer Singh/Trilogy on 12/08/2004 08:38 PM -----
Paramveer Singh 12/08/2004 07:58 PM | To: pgsql-general@postgresql.org cc: Subject: pl pgsql grammer file contains error |
hi!
I tried to extend the grammer for plpgsql by editing
postgresql-7.4.3/src/pl/plpgsql/src/gram.y
but as soon as you compile it (even without any changes)
it gives an error
user$ make
bison -y -d gram.y
/usr/bin/m4: ERROR: EOF in string
Has this been overlooked as the generated C file is also present in the distro and no one noticed that the grammer file does not compile any more?
The database still installs and runs fine if installed using the configure and make drill
thanks
paraM
On 8/12/2004 10:52 AM, Paramveer.Singh@trilogy.com wrote: > Further info on the problem I sent some hours back: > the version of bison I am using is: 1.75 PostgreSQL development requires bison 1.875 or better. Jan > version of m4: > ----- Forwarded by Paramveer Singh/Trilogy on 12/08/2004 08:38 PM ----- > > > Paramveer Singh > 12/08/2004 07:58 PM > > > To: pgsql-general@postgresql.org > cc: > Subject: pl pgsql grammer file contains error > > hi! > I tried to extend the grammer for plpgsql by editing > > postgresql-7.4.3/src/pl/plpgsql/src/gram.y > > but as soon as you compile it (even without any changes) > it gives an error > > user$ make > bison -y -d gram.y > /usr/bin/m4: ERROR: EOF in string > > Has this been overlooked as the generated C file is also present in the > distro and no one noticed that the grammer file does not compile any more? > > The database still installs and runs fine if installed using the configure > and make drill > > thanks > paraM > -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #
Hi!
Sorry for not researching complpetely before I made the post.
The error occured because I was using bison 1.75 instead of bison 1.875 as done in the distro.
thanks and apologies
paraM
----- Forwarded by Paramveer Singh/Trilogy on 12/08/2004 08:40 PM -----
Paramveer Singh 12/08/2004 07:58 PM | To: pgsql-general@postgresql.org cc: Subject: pl pgsql grammer file contains error |
hi!
I tried to extend the grammer for plpgsql by editing
postgresql-7.4.3/src/pl/plpgsql/src/gram.y
but as soon as you compile it (even without any changes)
it gives an error
user$ make
bison -y -d gram.y
/usr/bin/m4: ERROR: EOF in string
Has this been overlooked as the generated C file is also present in the distro and no one noticed that the grammer file does not compile any more?
The database still installs and runs fine if installed using the configure and make drill
thanks
paraM
Paramveer.Singh@trilogy.com writes: > Further info on the problem I sent some hours back: > the version of bison I am using is: 1.75 We recommend 1.875 or later. I don't recall about 1.75 in particular, but there were some outright-buggy bison releases right around that time. regards, tom lane