[PHP-DEV] PHP 4.0 Bug #7077: configure "assumes" libdb-3 in /usr/local/lib From: phil <email protected>
Date: 10/07/00

From: phil <email protected>
Operating system: Solaris
PHP version: 4.0.2
PHP Bug Type: Compile Failure
Bug description: configure "assumes" libdb-3 in /usr/local/lib

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.

-- 
Edit Bug report at: http://bugs.php.net/?id=7077&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>