PHP 4.0 Bug #6072 Updated: ldap library missing from libphp4.so - shows up when apache is started.
| From: | Bug Database | Date: | Wed, 16 Aug 2000 23:25:02 +0000 |
| Subject: | PHP 4.0 Bug #6072 Updated: ldap library missing from libphp4.so - shows up when apache is started. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-29192@lists.php.net to get a copy of this message | ||
ID: 6072
User Update by: karen.turner@opus.co.nz
Status: Analyzed
Bug Type: Installation problem
Description: ldap library missing from libphp4.so - shows up when apache is started.
Thank you for pointing me at the m4 file. It is only looking for the static library.
I have no libldap.a or libber.a - which is strange. Unfortunatly I didn't do the build of
Openldap and the person who did has left. It will be updated shortly.
I don't beleive it is broken though - PHP3 uses it quite happily. Solaris does rely a lot on
dynamic libraries.
I didn't want to try rerunning autoconf - never having done it and I wasn't sure if I had
all the bits. So I edited configure itself changing
if test -f $LDAP_LIBDIR/liblber.a; then
LDAP_LIBS="-lldap -llber"
to
if test -f $LDAP_LIBDIR/liblber.a -o -f $LDAP_LIBDIR/liblber.so ; then
LDAP_LIBS="-lldap -llber"
This worked - apache started up fine. Ldd showed both ldap and lber libraries.
Is there some reason that the m4 file only looks for the static library?
Karen
Full Bug description available at: http://bugs.php.net/?id=6072