Re: postgresql and debian

From: Date: Tue, 24 Jul 2001 08:52:27 +0000
Subject: Re: postgresql and debian
Groups: php.install 
Request: Send a blank email to php-install+get-3690@lists.php.net to get a copy of this message
> -----Message d'origine----- > De : Francois Thomas [mailto:FrancoisT@alsdesign.fr] > Envoyé : vendredi 20 juillet 2001 17:13 > À : 'php-install@lists.php.net' > 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

« previous php.install (#3690) next »