[Samba] libldap not found

David Shapiro David.Shapiro at bcbsnc.com
Mon Feb 13 18:01:09 GMT 2006


Can anybody clue me in on why this build script is failing?  
 
checking for ldap.h... yes
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking for ber_scanf in -llber... no
checking for ldap_init in -lldap... no
checking for ldap_set_rebind_proc... no
checking whether ldap_set_rebind_proc takes 3 arguments... 3
configure: error: libldap is needed for LDAP support
+ [ 1 != 0 ]

 
#!/bin/ksh -x
 
env CC=gcc \
CFLAGS="-DPAM_AUTHTOK_RECOVER_ERR=PAM_AUTHTOK_RECOVERY_ERR
-DPAM_EXTERN=extern -D_LINUX_SOURCE_COMPAT" \
CPPFLAGS="-I/usr/local/bdb/include -I/usr/local/ssl/include
-I/usr/local/openldap/include" \
LDFLAGS="-L/usr/local/bdb/lib -L/usr/local/cyrus-sasl/lib
-L/usr/local/openldap/lib -L/usr/local/ssl/lib" \
../configure --prefix=/usr/local/samba
--with-shared-modules=idmap_ad,idmap_rid \
--with-ads --with-ldap --with-ldapsam --with-pam
--with-krb5=/usr/local/kerberos --with-winbind \
--with-acl-support --with-utmp --with-quotas --with-sendfile-support \
--with-aio-support --enable-shared=no --enable-static=yes
 
if [ $? != 0 ]; then
        echo "Configure failed so exiting..."
        exit 1
fi
 
/usr/local/bin/gmake && /usr/local/bin/gmake install
 
if [ $? != 0 ]; then
        echo "Build failed so exiting..."
        exit 1
fi
 
for i in WINBIND pam_winbind.so; do
        if [ -f /usr/lib/security/$i ]; then
                mv /usr/lib/security/$i /usr/lib/security/$i.old
                chmod 555 nsswitch/$i
                cp nsswitch/$i /usr/lib/security
                rm /usr/lib/security/$i.old
        else
                cp nsswitch/$i /usr/lib/security
        fi
done

 
David Shapiro
Unix Team Lead
919-765-2011


More information about the samba mailing list