Re: Changes to include files

Started by Thomas Lockhartalmost 25 years ago5 messages
#1Thomas Lockhart
lockhart@alumni.caltech.edu

Could anyone please tell me what changed in some of the include files. I
just noticed that ecpg won't compile anymore.

I haven't been able to update my cvs sources for a few days, but on my
machine preproc.y produces 321 shift/reduce errors. Does it still, or is
that patched up?

- Thomas

#2Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Thomas Lockhart (#1)
Re: Re: Changes to include files

Could anyone please tell me what changed in some of the include files. I
just noticed that ecpg won't compile anymore.

I haven't been able to update my cvs sources for a few days, but on my
machine preproc.y produces 321 shift/reduce errors. Does it still, or is
that patched up?

In /pg/pl/plpgsql/src, I get:

bison -y -d gram.y
sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' < y.tab.c > ./pl_gram.c
sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' < y.tab.h > ./pl.tab.h
rm -f y.tab.c y.tab.h

Looks OK to me.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#3Michael Meskes
meskes@postgresql.org
In reply to: Thomas Lockhart (#1)

On Thu, Jan 18, 2001 at 01:58:20PM +0000, Thomas Lockhart wrote:

I haven't been able to update my cvs sources for a few days, but on my
machine preproc.y produces 321 shift/reduce errors. Does it still, or is
that patched up?

Hmm, I never saw that:

postgres@feivel:~/pgsql/src/interfaces/ecpg.mm/preproc$ make preproc.c
bison -y -d preproc.y
mv y.tab.c ./preproc.c
mv y.tab.h ./preproc.h

Seems to work fine here. But it's pgc.c that does not work anymore:

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -I./../include -DMAJOR_VERSION=2 -DMINOR_VERSION=8
-DPATCHLEVEL=0 -DINCLUDE_PATH=\"/usr/local/pgsql/include\" -c -o pgc.o
pgc.c
In file included from ../../../../src/include/miscadmin.h:26,
from pgc.l:24:
../../../../src/include/storage/ipc.h:43: parse error before `IpcSemaphoreKey'
../../../../src/include/storage/ipc.h:43: warning: type defaults to `int' in declaration of `IpcSemaphoreKey'
...

After that I get lots of warnings and parse errors in several include files.

Michael

--
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Michael Meskes (#3)
Re: Re: Changes to include files

Michael Meskes <meskes@postgresql.org> writes:

Seems to work fine here. But it's pgc.c that does not work anymore:

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -I./../include -DMAJOR_VERSION=2 -DMINOR_VERSION=8
-DPATCHLEVEL=0 -DINCLUDE_PATH=\"/usr/local/pgsql/include\" -c -o pgc.o
pgc.c
In file included from ../../../../src/include/miscadmin.h:26,
from pgc.l:24:
../../../../src/include/storage/ipc.h:43: parse error before `IpcSemaphoreKey'
../../../../src/include/storage/ipc.h:43: warning: type defaults to `int' in declaration of `IpcSemaphoreKey'
...

Did you get the update I made on 1/14 to #include "postgres.h" at the
head of pgc.l ?

regards, tom lane

#5Michael Meskes
meskes@postgresql.org
In reply to: Tom Lane (#4)
Re: Re: Changes to include files

On Fri, Jan 19, 2001 at 10:29:15AM -0500, Tom Lane wrote:

Did you get the update I made on 1/14 to #include "postgres.h" at the
head of pgc.l ?

No, that one is missing. Thanks. I'll add it immediately.

Michael
--
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!