> -----Message d'origine-----
> De : Francois Thomas [mailto:[EMAIL PROTECTED]]
> Envoyé : vendredi 20 juillet 2001 17:13
> À : '[EMAIL PROTECTED]'
> Objet : [PHP-INST] postgresql and debian
>
>
>
> Hello list
>
> After digging unsuccessfully in the archives, I ask my question here..
> I try to compile PHP 4.0.6 with PostgreSQL support.
> I compiled Apache 1.3.14 without problem.
> PostgreSQL (7.0.3) complained about C++ (cannot make
> executables), but it
> was fixed with a ./configure --without-CXX
> For PHP, the ./configure looks like being successful.
> But when I make, I have this error:
[...]
> In file included from php_pgsql.h:32,
> from pgsql.c:33:
> libpq-fe.h:349: warning: `palloc' redefined
> /usr/local/pgsql/include/utils/palloc.h:29: warning: this is
> the location of
>
> the previous definition
> libpq-fe.h:350: warning: `pfree' redefined
> /usr/local/pgsql/include/utils/palloc.h:30: warning: this is
> the location of
> the previous definition
> pgsql.c: In function `php_if_pg_put_line':
> pgsql.c:814: void value not ignored as it ought to be
[...]
Hello
I was able to find a solution to this; I post it to the list as I may not be
the only one to face this problem.
In fact, it looks like for PHP, postgres must be compiled with c++.
So, the solution on a debian 2.2_r3 is to "apt-get install g++", then
compile normally postgresql (without the --without-CXX flag).. PHP will then
just compile fine.
Of course, users who already installed g++ should not face this issue.
Hope that helps somebody ;-)
Best regards
François THOMAS
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]