PHP 4.0 Bug #5146: Autoconf does not add -lpq

From: Date: Tue, 20 Jun 2000 13:06:15 +0000
Subject: PHP 4.0 Bug #5146: Autoconf does not add -lpq
Groups: php.dev 
Request: Send a blank email to php-dev+get-21831@lists.php.net to get a copy of this message
From: stoti@tvnet.hu Operating system: Solaris 8 SPARC PHP version: 4.0 Latest CVS (20/06/2000) PHP Bug Type: PostgreSQL related Bug description: Autoconf does not add -lpq I'm using Solaris 8 Sparc, gcc 2.95, Postgresql 7.0.2, apache 1.3.12. PHP4.0.0 When I configure php4 like this: ./configure --prefix=/infosys/php4/ --with-apxs=/infosys/apache/bin/apxs --enable-safe-mode --enable-track-vars --enable-ftp --with-pgsql --with-openssl=/usr/local/ssl/ --enable-memory-limit --enable-sysvsem --enable-sysvshm --without-mysql --disable-xml configure runs, make, and make install are successful, but apache bombs out not finding PQfinish. It turns out, that the problem is that autoconf does not add -lpq to the list of libraries. After I add -lpq to EXTRA_LIBS into config_vars.mk, everything is fine. (but it took 2 days for me to figure this out).

« previous php.dev (#21831) next »