php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5146 Autoconf does not add -lpq
Submitted: 2000-06-20 15:06 UTC Modified: 2000-09-04 18:40 UTC
From: stoti at tvnet dot hu Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0 Latest CVS (20/06/2000) OS: Solaris 8 SPARC
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stoti at tvnet dot hu
New email:
PHP Version: OS:

 

 [2000-06-20 15:06 UTC] stoti at tvnet dot hu
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).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-20 04:02 UTC] sniper@php.net
Does this problem still persist with more recent version of php (from CVS or http://snaps.php.net) ??

--Jani
 [2000-09-04 18:40 UTC] sniper@php.net
No feedback. Please try php4.0.2 or preferrably latest CVS or snapshot from
http://snaps.php.net/  

Reopen this bug report if problem still exists.

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC