PHP 4.0 Bug #6072 Updated: ldap library missing from libphp4.so - shows up when apache is started.

From: Date: Sun, 15 Oct 2000 22:51:58 +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-35074@lists.php.net to get a copy of this message
ID: 6072 Updated by: sniper Reported By: karen.turner@opus.co.nz Status: Closed Bug Type: *General Issues Assigned To: sniper Comments: Fixed in CVS. --Jani Previous Comments: --------------------------------------------------------------------------- [2000-08-16 19:25:02] karen.turner@opus.co.nz 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 --------------------------------------------------------------------------- [2000-08-15 04:06:12] sniper@php.net If I have understood ext/ldap/config.m4 correctly it's only looking for the static libraries of openldap. Are these files in /opt/serv/lib : libldap.a liblber.a Are these files in /opt/serv/include : lber.h ldap.h ldap_cdefs.h ?? If any of those are missing your openldap-install is broken. --Jani --------------------------------------------------------------------------- [2000-08-14 18:50:04] karen.turner@opus.co.nz Hi I have just untarred php src and re-built using ./configure --with-apxs=/opt/serv/sbin/apxs --with-ldap=/opt/serv The ldap library is still missed. ldd libphp4.so libgdbm.so => /opt/gnu/lib/libgdbm.so libpam.so.1 => /usr/dt/lib/libpam.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libresolv.so.2 => /usr/lib/libresolv.so.2 libm.so.1 => /usr/lib/libm.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libsocket.so.1 => /usr/lib/libsocket.so.1 libc.so.1 => /usr/lib/libc.so.1 libmp.so.2 => /usr/lib/libmp.so.2 Starting the Apache Web Server. Syntax error on line 228 of /opt/serv/etc/httpd.conf: Cannot load /opt/serv/libexec/libphp4.so into server: ld.so.1: /opt/serv/sbin/httpd: fatal: relocation error: file /opt/serv/libexec/libphp4.so: symbol ldap_unbind_s: referenced symbol not found Ldap is still missing from libs/libphp4.la I was trying to work out at what point the ldap library was being missed. Which was how I noticed it was missing from the la file, where as mysql etc were listed. But I wasn't quite sure of where it should be appearing and at what point it had gone missing. My version of ldap will be upgraded hopefully soon. Thanks Karen --------------------------------------------------------------------------- [2000-08-13 20:01:24] karen.turner@opus.co.nz The ldap library is in /opt/serv/lib/libldap.so.1 version Openldap 1.2.7. There are no warnings about LDAP in the config.log. I should also note that with the configure options I have given I also came across #6070 - where configure missed adding the png library. I made one change to the configure scipt as noted in that bug report: LIBS="-lgd $LIBS changed to LIBS="-lgd -lpng $LIBS. --------------------------------------------------------------------------- [2000-08-13 19:49:57] sniper@php.net Delete config.cache and do a re-configure using only --with-apxs and --with-ldap (with the proper paths of course) If it works, try adding more options one by one and see where the configure / compile / starting httpd starts to fail. And of course you should update your openldap-libraries. There are a few bugs in 1.2.7. --Jani --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=6072

« previous php.dev (#35074) next »