Trying to Install PhP-4 Module for PostgreSQL from Ports

Started by Desmond Coughlanover 19 years ago3 messagesgeneral
Jump to latest
#1Desmond Coughlan
coughlandesmond@yahoo.fr

X-No-Archive: true

Hi. As title. I'm getting a host of syntax errors, the last ten lines of which are ...

NV_READ' undeclared (first use in this function) /usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c:1937: error: `INV_WRITE' undeclared (first use in this function) /usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c:1967: error: structure has no member named `conn'
/usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c:1979: error: structure has no member named `conn'
/usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c: In function `zif_pg_lo_close':
/usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c:2006: error: `PGconn' undeclared (first use in this function)
/usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c:2006: error: syntax error before ')' token
/usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c: At top level:
/usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c:2009: error: syntax error before "else"
/usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c:41:1: unterminated #if
*** Error code 1
Stop in /usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql.
*** Error code 1
Stop in /usr/ports/databases/php4-pgsql.
[root@rachi]/usr/ports/databases/php4-pgsql(153):

A quick google search reveals that I'm not the only one to have encountered this, but the "solution' suggested on some sites ..

http://groups.google.fr/group/mailing.www.php-dev/browse_frm/thread/90bb0cf0397934ee/346aeafb9f08e128?lnk=st&q=freebsd+pgsql.c&rnum=4&hl=fr#346aeafb9f08e128

... didn't have any effect.

D.

---------------------------------
D�couvrez une nouvelle fa�on d'obtenir des r�ponses � toutes vos questions ! Profitez des connaissances, des opinions et des exp�riences des internautes sur Yahoo! Questions/R�ponses.

#2Walter Vaughan
wvaughan@steelerubber.com
In reply to: Desmond Coughlan (#1)
Re: Trying to Install PhP-4 Module for PostgreSQL from

Desmond Coughlan wrote:

Hi. As title. I'm getting a host of syntax errors, the last ten lines
of which are ...

NV_READ' undeclared (first use in this function)
/usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c:1937:
error: `INV_WRITE' undeclared (first use in this function)

<snip>

You may get more help in the freeBSD misc news group rather than in here.
However, my first question is when did you last update your ports collection?
What are you cvsup-ing against?

The php4-pgsql port is designed to work with pg 7.4
http://www.freshports.org/databases/php4-pgsql/

What version of posgresql-client and -server do you have installed?

And the obigiltory questions what does `uname -a` say?

--
Walter

#3Desmond Coughlan
coughlandesmond@yahoo.fr
In reply to: Walter Vaughan (#2)
RE : Re: Trying to Install PhP-4 Module for PostgreSQL from

X-No-Archive: true

That's exactly what it was, thanks! 7.4 installed now, and I have �PhP support!!

D.

Walter Vaughan <wvaughan@steelerubber.com> a �crit :
Desmond Coughlan wrote:

Hi. As title. I'm getting a host of syntax errors, the last ten lines
of which are ...

NV_READ' undeclared (first use in this function)
/usr/ports/databases/php4-pgsql/work/php-4.4.4/ext/pgsql/pgsql.c:1937:
error: `INV_WRITE' undeclared (first use in this function)

You may get more help in the freeBSD misc news group rather than in here.
However, my first question is when did you last update your ports collection?
What are you cvsup-ing against?

The php4-pgsql port is designed to work with pg 7.4
http://www.freshports.org/databases/php4-pgsql/

What version of posgresql-client and -server do you have installed?

And the obigiltory questions what does `uname -a` say?

--
Walter

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

---------------------------------
D�couvrez une nouvelle fa�on d'obtenir des r�ponses � toutes vos questions ! Profitez des connaissances, des opinions et des exp�riences des internautes sur Yahoo! Questions/R�ponses.