php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7077 configure "assumes" libdb-3 in /usr/local/lib
Submitted: 2000-10-07 09:35 UTC Modified: 2000-12-07 11:49 UTC
From: phil at buxtech dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.2 OS: Solaris
Private report: No CVE-ID: None
 [2000-10-07 09:35 UTC] phil at buxtech dot com
In configuring php4 for use with Apache under Solaris (and perhaps others), and including mcrypt and BerkeleyDB3 support, configure dies on the mcrypt checking.  The log shows that -ldb-3 could not be found.

A bit of investigating shows that the configure script modifies the LDFLAGS for checking for functions in -lmcrypt.  But the script does not remove -ldb-3 from LIBS.

This is apparently not an issue under Linux as I believe that the Sleepycat offering is deployed in /usr/local/lib.  But the default installation from Sleepycat puts their offering under /usr/local/BerkeleyDB.3.0 ...

The work around is to symlink libdb-3.so under /usr/local/lib to the real library for the run of php4's configure, then unlink for compilation.

It would be ideal if the php4 configure script, where needed, adjusted the LIBS and LDFLAGS in parallel (and consistantly).

I hope this helps.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-02 18:46 UTC] sniper@php.net
Please try a snapshot from http://snaps.php.net/ 

--Jani
 [2000-12-07 11:49 UTC] sniper@php.net
Reopen, if this still happens when using latest snapshot
from http://snaps.php.net/

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jul 15 20:00:02 2026 UTC