Hi, I have done a build of PHP 4.4.8 under Solaris 10, but I need to
enable LDAP support. Here is the complete configure command (this is
for Horde, so it needs a lot of modules):
./configure --prefix=/usr/local/php4.4.8
--with-config-file-path=/usr/local/hp4.4.8
--with-apxs2=/usr/local/apache-test/bin/apxs --with-gettext
--with-mcrypt --with-iconv=/usr/local --enable-mbstring=all
--enable-mbregex --with-gd --with-png-dir=/usr/local
--with-jpeg-dir=/usr/local --with-mysql=/usr/local/mysql
--with-imap=/usr/local/imap2007b/ --with-openssl=/usr/local/ssl
--with-libxml-dir=/usr/local --with-zlib=/usr/local --with-dom --with-ldap
If I build it without --with-ldap it configures, compiles, and runs
fine. When I add --with-ldap to the configure command, it dies at this point:
checking for LDAP support... yes
configure: error: Cannot find ldap libraries in /usr/lib.
But there are LDAP libraries in /usr/lib:
-bash-3.00$ ls -la /usr/lib | grep ldap
drwxr-xr-x 2 root bin 512 Jan 9 15:31 ldap
lrwxrwxrwx 1 root root 12 Jan 9 13:26 libldap.so ->
libldap.so.5
-rwxr-xr-x 1 root bin 214784 Aug 16 2007 libldap.so.4
-rwxr-xr-x 1 root bin 367764 Aug 16 2007 libldap.so.5
lrwxrwxrwx 1 root root 13 Jan 9 13:26 libsldap.so ->
libsldap.so.1
-rwxr-xr-x 1 root bin 266816 Aug 16 2007 libsldap.so.1
-rw-r--r-- 1 root bin 18479 Jan 21 2005 llib-lldap
-rw-r--r-- 1 root bin 78705 Aug 8 2007 llib-lldap.ln
-rw-r--r-- 1 root bin 4370 Aug 8 2007 llib-lsldap
-rw-r--r-- 1 root bin 87732 Aug 8 2007 llib-lsldap.ln
-rwxr-xr-x 1 root bin 118300 Aug 16 2007 nss_ldap.so.1
What gets me is, if I look for the error message in the configure
script, here is what seems to be generating it:
if test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
cat >> confdefs.h <<\EOF
#define HAVE_ORALDAP_10 1
EOF
fi
else
{ echo "configure: error: Cannot find ldap libraries in
$LDAP_LIBDIR." 1>&2;
exit 1; }
fi
It looks to me like the configure script is looking for a library
called libclntsh which I believe is an Oracle LDAP library. Does
anyone know a way to work around this? Thanks...
Jim McCullars
University of Alabama in Huntsville
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]