#49876 [NEW]: configure fails --with-ldap Cannot find ldap libraries in /usr/lib
| From: | graham dot simpson at hsbcib dot com | Date: | Wed, 14 Oct 2009 14:59:56 +0000 |
| Subject: | #49876 [NEW]: configure fails --with-ldap Cannot find ldap libraries in /usr/lib | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-143563@lists.php.net to get a copy of this message | ||
From: graham dot simpson at hsbcib dot com
Operating system: SuSE Linux 10 SP 2 x86_64
PHP version: 5.3.0
PHP Bug Type: Compile Failure
Bug description: configure fails --with-ldap Cannot find ldap libraries in /usr/lib
Description:
------------
64bit SuSE 10.2 with openldap2-2.3, openldap2-devel-2.3 installed.
Configure --with-ldap fails with:
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... no
configure: error: Cannot find ldap libraries in /usr/lib.
-
rpm -q -l openldap2-devel
/usr/include/lber.h
/usr/include/lber_types.h
/usr/include/ldap.h
/usr/include/ldap_cdefs.h
/usr/include/ldap_features.h
/usr/include/ldap_schema.h
/usr/include/ldap_utf8.h
/usr/include/slapi-plugin.h
/usr/lib64/liblber.a
/usr/lib64/liblber.so
/usr/lib64/libldap.a
/usr/lib64/libldap.so
/usr/lib64/libldap_r.a
/usr/lib64/libldap_r.so
-
Should be looking in /usr/lib64. Which is odd because my LD_LIBRARY_PATH
contains /usr/lib64.
-
Altering --with-ldap to --with-ldap=/usr or /usr/lib64, then complains
about not finding the ldap.h, viz:
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... no
configure: error: Cannot find ldap.h
-
The problem seems to be the configure script find ldap.h in
/usr/include/ldap.h, so sets LDAP_LIBDIR=/usr/lib (line 52114), later it
looks for /usr/lib/liblber.a instead of /usr/lib64/liblber.a.
-
Maybe I've got that wrong. The weird thing is I know other directives in
my configure are picking up stuff from /usr/lib64.
-
Thanks for any help you can give.
GSi
--
Edit bug report at http://bugs.php.net/?id=49876&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49876&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49876&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49876&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49876&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49876&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49876&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49876&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49876&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49876&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49876&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49876&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49876&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49876&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49876&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49876&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49876&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49876&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49876&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49876&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49876&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49876&r=mysqlcfg