Thread: Trying to Install PhP-4 Module for PostgreSQL from Ports

Trying to Install PhP-4 Module for PostgreSQL from Ports

From
Desmond Coughlan
Date:
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 ..
 
 
... 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.

Re: Trying to Install PhP-4 Module for PostgreSQL from

From
Walter Vaughan
Date:
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

RE : Re: Trying to Install PhP-4 Module for PostgreSQL from

From
Desmond Coughlan
Date:
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.