(forw) (forw) Re: PHP 4.0.4pl1 BUILD: BUSTED WITH CURRENT CVS

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>, tgl(at)sss(dot)pgh(dot)pa(dot)us, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgman(at)candle(dot)phl(dot)pa(dot)us
Subject: (forw) (forw) Re: PHP 4.0.4pl1 BUILD: BUSTED WITH CURRENT CVS
Date: 2001-02-18 21:19:17
Message-ID: 20010218151917.A9305@lerami.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

OK, I found it. PHP was including postgres.h (which we no longer
install...., so we were picking up a Feb 7 version).

Changing php's ext/pgsql/php_pgsql.h to #include <postgres_fe.h>
fixes it.

This is a gotcha for people following CVS or not cleaning out
the $(DESTDIR)/include directory

I'll submit a patch to the PHP folk.

LER

----- Forwarded message from Larry Rosenman <ler(at)lerctr(dot)org> -----

From: Larry Rosenman <ler(at)lerctr(dot)org>
Subject: (forw) Re: [HACKERS] PHP 4.0.4pl1 BUILD: BUSTED WITH CURRENT CVS
Date: Sun, 18 Feb 2001 14:50:32 -0600
Message-ID: <20010218145032(dot)A6190(at)lerami(dot)lerctr(dot)org>
User-Agent: Mutt/1.3.15i
X-Mailer: Mutt http://www.mutt.org/
To: PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>,
tgl(at)sss(dot)pgh(dot)pa(dot)us, Peter Eisentraut <peter_e(at)gmx(dot)net>

Re-Sent due to bounce from ftp.postgresql.org

----- Forwarded message from Larry Rosenman <ler(at)lerctr(dot)org> -----

From: Larry Rosenman <ler(at)lerctr(dot)org>
Subject: Re: [HACKERS] PHP 4.0.4pl1 BUILD: BUSTED WITH CURRENT CVS
Date: Sun, 18 Feb 2001 14:41:33 -0600
Message-ID: <20010218144133(dot)A5745(at)lerami(dot)lerctr(dot)org>
User-Agent: Mutt/1.3.15i
X-Mailer: Mutt http://www.mutt.org/
To: PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>

* Larry Rosenman <ler(at)lerctr(dot)org> [010218 14:19]:
> PHP 4.0.4pl1 Build dies with current CVS:
> Making all in pgsql
> gmake[2]: Entering directory `/home/ler/php/ext/pgsql'
> gmake[3]: Entering directory `/home/ler/php/ext/pgsql'
> /bin/sh /home/ler/php/libtool --silent --mode=compile cc -Xb -I.
> -I/home/ler/php/ext/pgsql -I/home/ler/php/main -I/home/ler/php
> -I/usr/internet/apache/include -I/home/ler/php/Zend
> -I/usr/local/ssl/include -I/usr/local/include
> -I/home/ler/php/ext/xml/expat/xmltok
> -I/home/ler/php/ext/xml/expat/xmlparse -I/home/ler/php/TSRM
> -I/usr/local/pgsql/include -DNDEBUG -DUW=700 -DUSE_HSREGEX -DUSE_EXPAT
> -DXML_BYTE_ORDER=12 -O -c pgsql.c
> UX:acomp: WARNING: "/usr/local/pgsql/include/postgres.h", line 53:
> typedef redeclared: regproc
> UX:acomp: WARNING: "/usr/local/pgsql/include/postgres.h", line 54:
> typedef redeclared: RegProcedure
> UX:acomp: ERROR: "/usr/local/pgsql/include/postgres.h", line 69:
> (struct) tag redeclared: varlena
> UX:acomp: ERROR: "/usr/local/pgsql/include/postgres.h", line 87:
> identifier redeclared: bytea
> UX:acomp: ERROR: "/usr/local/pgsql/include/postgres.h", line 88:
> identifier redeclared: text
> UX:acomp: ERROR: "/usr/local/pgsql/include/postgres.h", line 89:
> identifier redeclared: BpChar
> UX:acomp: ERROR: "/usr/local/pgsql/include/postgres.h", line 90:
> identifier redeclared: VarChar
> UX:acomp: WARNING: "/usr/local/pgsql/include/postgres.h", line 171:
> typedef redeclared: int2vector
> UX:acomp: WARNING: "/usr/local/pgsql/include/postgres.h", line 172:
> typedef redeclared: oidvector
> UX:acomp: ERROR: "/usr/local/pgsql/include/postgres.h", line 179:
> (union) tag redeclared: nameData
> UX:acomp: ERROR: "/usr/local/pgsql/include/postgres.h", line 182:
> identifier redeclared: NameData
> UX:acomp: ERROR: "/usr/local/pgsql/include/postgres.h", line 183:
> identifier redeclared: Name
> UX:acomp: WARNING: "/usr/local/pgsql/include/postgres.h", line 192:
> typedef redeclared: TransactionId
> UX:acomp: WARNING: "/usr/local/pgsql/include/postgres.h", line 196:
> typedef redeclared: CommandId
> gmake[3]: *** [pgsql.lo] Error 1
> gmake[3]: Leaving directory `/home/ler/php/ext/pgsql'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/home/ler/php/ext/pgsql'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/home/ler/php/ext'
> gmake: *** [all-recursive] Error 1
> $
more info, courtesy gcc:
$ sh x
gcc: unrecognized option `-KPIC'
In file included from php_pgsql.h:32,
from pgsql.c:29:
/usr/local/pgsql/include/postgres.h:53: redefinition of `regproc'
/usr/local/pgsql/include/c.h:312: `regproc' previously declared here
/usr/local/pgsql/include/postgres.h:54: redefinition of `RegProcedure'
/usr/local/pgsql/include/c.h:313: `RegProcedure' previously declared
here
/usr/local/pgsql/include/postgres.h:69: redefinition of `struct
varlena'
/usr/local/pgsql/include/postgres.h:87: redefinition of `bytea'
/usr/local/pgsql/include/c.h:354: `bytea' previously declared here
/usr/local/pgsql/include/postgres.h:88: redefinition of `text'
/usr/local/pgsql/include/c.h:355: `text' previously declared here
/usr/local/pgsql/include/postgres.h:89: redefinition of `BpChar'
/usr/local/pgsql/include/c.h:356: `BpChar' previously declared here
/usr/local/pgsql/include/postgres.h:90: redefinition of `VarChar'
/usr/local/pgsql/include/c.h:357: `VarChar' previously declared here
/usr/local/pgsql/include/postgres.h:171: redefinition of `int2vector'
/usr/local/pgsql/include/c.h:363: `int2vector' previously declared
here
/usr/local/pgsql/include/postgres.h:172: redefinition of `oidvector'
/usr/local/pgsql/include/c.h:364: `oidvector' previously declared here
/usr/local/pgsql/include/postgres.h:179: redefinition of `union
nameData'
/usr/local/pgsql/include/postgres.h:182: redefinition of `NameData'
/usr/local/pgsql/include/c.h:375: `NameData' previously declared here
/usr/local/pgsql/include/postgres.h:183: redefinition of `Name'
/usr/local/pgsql/include/c.h:376: `Name' previously declared here
/usr/local/pgsql/include/postgres.h:192: redefinition of
`TransactionId'
/usr/local/pgsql/include/c.h:315: `TransactionId' previously declared
here
/usr/local/pgsql/include/postgres.h:196: redefinition of `CommandId'
/usr/local/pgsql/include/c.h:319: `CommandId' previously declared here
$

>
> --
> Larry Rosenman http://www.lerctr.org/~ler
> Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
> US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

----- End forwarded message -----

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

----- End forwarded message -----

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Larry Rosenman 2001-02-18 21:21:46 PHP needs to only include <postgres_fe.h> now...
Previous Message Dmitry Morozovsky 2001-02-18 20:54:33 Re: v7.1b4 bad performance