Обсуждение: Changes to include files

Поиск
Список
Период
Сортировка

Changes to include files

От
Michael Meskes
Дата:
Could anyone please tell me what changed in some of the include files. I
just noticed that ecpg won't compile anymore.

Also I think we have yet to agree on the libpq/ecpg problem, or did I miss a
mail yet again?

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


Re: Changes to include files

От
Thomas Lockhart
Дата:
> 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


Re: Changes to include files

От
Bruce Momjian
Дата:
That is strange.  It is all compiling here.

> Could anyone please tell me what changed in some of the include files. I
> just noticed that ecpg won't compile anymore.
> 
> Also I think we have yet to agree on the libpq/ecpg problem, or did I miss a
> mail yet again?
> 
> Michael
> -- 
> Michael Meskes
> Michael@Fam-Meskes.De
> Go SF 49ers! Go Rhein Fire!
> Use Debian GNU/Linux! Use PostgreSQL!
> 


--  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,
Pennsylvania19026
 


Re: Re: Changes to include files

От
Bruce Momjian
Дата:
> > 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,
Pennsylvania19026
 


Re: Changes to include files

От
Tom Lane
Дата:
Michael Meskes <meskes@postgresql.org> writes:
> Could anyone please tell me what changed in some of the include files. I
> just noticed that ecpg won't compile anymore.

It was building for me as of last night (last cvs update Jan 18 00:03 EST).
Did someone break something since then?
        regards, tom lane


Re: Changes to include files

От
Michael Meskes
Дата:
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!


Re: Re: Changes to include files

От
Tom Lane
Дата:
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


Re: Re: Changes to include files

От
Michael Meskes
Дата:
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!