[HACKERS] 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? - Thomas
[HACKERS] Re: Changes to include files
On Thu, Jan 18, 2001 at 01:58:20PM +, 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 [EMAIL PROTECTED] Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!
Re: [HACKERS] 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 [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026
Re: [HACKERS] Re: Changes to include files
Michael Meskes <[EMAIL PROTECTED]> 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
Re: [HACKERS] 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 [EMAIL PROTECTED] Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!