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
I believe samba is looking for the libldap shared library. Are you able to find that on your system? Also, check the config.log to find out more detailed information about the error output. -Rob> -----Original Message----- > From: samba-bounces+robert.dege=ngc.com@lists.samba.org > [mailto:samba-bounces+robert.dege=ngc.com@lists.samba.org] On > Behalf Of David Shapiro > Sent: Monday, February 13, 2006 1:01 PM > To: samba@lists.samba.org > Subject: [Samba] libldap not found > > 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 > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
It sounds like it can not find your libldap library in any of the paths you specified. Do you have a locate program such that you could try "locate libldap" and see if/where it shows up? David Shapiro wrote:> 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
Why does it need a shared library? Can't it use static? David I see in /usr/local/openldap/lib: drwxr-sr-x 10 root system 512 Feb 7 15:22 .. -rw-r--r-- 1 root system 293847 Feb 8 14:58 liblber-2.3.a lrwxrwxrwx 1 root system 13 Feb 12 23:01 liblber.a -> liblber-2.3.a -rw-r--r-- 1 root system 868 Feb 8 14:58 liblber.la -rw-r--r-- 1 root system 3909639 Feb 8 14:58 libldap-2.3.a lrwxrwxrwx 1 root system 13 Feb 12 23:01 libldap.a -> libldap-2.3.a -rw-r--r-- 1 root system 952 Feb 8 14:58 libldap.la -rw-r--r-- 1 root system 4247339 Feb 8 14:58 libldap_r-2.3.a lrwxrwxrwx 1 root system 15 Feb 12 23:01 libldap_r.a -> libldap_r-2.3.a -rw-r--r-- 1 root system 962 Feb 8 14:58 libldap_r.la openldap was buildt with: env CC="gcc -D_LINUX_SOURCE_COMPAT -D_THREAD_SAFE" \ CPPFLAGS="-I/usr/local/bdb/include -I/usr/local/cyrus-sasl/include -I/usr/local/ssl/include" \ LDFLAGS="-L/usr/local/ssl/lib -L/usr/local/bdb/lib -L/usr/local/cyrus-sasl/lib -lpthread" \ ../configure --enable-dynamic --enable-spasswd \ --enable-bdb --enable-crypt --enable-slapd --enable-slurpd \ --with-cyrus-sasl=yes --with-tls=openssl --enable-rlookups \ --with-threads=posix --prefix=/usr/local/openldap \ --enable-shared=no --enable-static=yes \ --with-ssl=/usr/local/ssl --with-tls gmake depend gmake gmake install David Shapiro Unix Team Lead 919-765-2011>>> Dan <samba@the-rusty-nail.com> 2/13/2006 1:12 PM >>>It sounds like it can not find your libldap library in any of the paths you specified. Do you have a locate program such that you could try "locate libldap" and see if/where it shows up? David Shapiro wrote:> 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