pl pgsql grammer file contains error

Started by Nonameover 21 years ago6 messagesgeneral
Jump to latest
#1Noname
Paramveer.Singh@trilogy.com

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

#2Noname
Paramveer.Singh@trilogy.com
In reply to: Noname (#1)
Re: pl pgsql grammer file contains error

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

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#1)
Re: pl pgsql grammer file contains error

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

#4Noname
Paramveer.Singh@trilogy.com
In reply to: Tom Lane (#3)
Re: pl pgsql grammer file contains error

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

#5Jan Wieck
JanWieck@Yahoo.com
In reply to: Noname (#2)
Re: pl pgsql grammer file contains error

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 #

#6Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#2)
Re: pl pgsql grammer file contains error

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