[Samba] Problem compiling Samba 3.0.24 with OpenLDAP 2.3.35

Allysson Steve Mota Lacerda stevelacerda at gmail.com
Fri May 11 22:47:10 GMT 2007


I'm trying to install Samba with LDAP support but there are some errors
during the compilation.

I've used the same script a few weaks ago. The only differences are the
versions of Samba and OpenLDAP.

That's my error message:

checking for LDAP support... yes
checking ldap.h usability... yes
checking ldap.h presence... yes
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... yes
checking for ldap_init in -lldap... no
checking for ldap_set_rebind_proc... no
checking whether ldap_set_rebind_proc takes 3 arguments... 3
checking for ldap_dn2ad_canonical... no
configure: error: libldap is needed for LDAP support

That's my install script:

env CPPFLAGS="-I/usr/local/openssl/include/openssl
-I/usr/local/openssl/include -I/usr/local/db/include
-I/usr/local/cyrus-sasl/include" LDFLAGS="-L/usr/local/lib/
-L/usr/local/openssl/lib/ -L/usr/local/db/lib
-L/usr/local/cyrus-sasl/lib" ./configure
--prefix=/usr/local/openldap-2.3.35 --with-cyrus-sasl --with-tls --with-ssl
--enable-crypt && \
make depend && \
make && \
make install && \
ln -s /usr/local/openldap-2.3.35 /usr/local/openldap && \
echo '/usr/local/openldap/lib' >> /etc/ld.so.conf && \
chmod 700 /usr/local/openldap/var/openldap-data && \
mv /usr/local/openldap/var/openldap-data/DB_CONFIG.example
/usr/local/openldap/var/openldap-data/DB_CONFIG
ldconfig

env CPPFLAGS="-I/usr/local/openldap/include"
LDFLAGS="-L/usr/local/openldap/lib -L/usr/local/lib"  ./configure
--prefix=/usr/local/samba-3.0.24 --disable-cups --with-smbmount
--with-ldapsam --with-syslog --with-quotas --with-acl-support --with-ldap
--with-winbind && \
make && \
make install && \
ln -s /usr/local/samba-3.0.24 /usr/local/samba && \
cp /usr/local/src/samba-3.0.24/examples/LDAP/samba.schema
/usr/local/openldap/etc/openldap/schema/

Can anyone help me?

-- 
Allysson Steve Mota Lacerda
stevelacerda at stevelacerda.net
http://www.stevelacerda.net


More information about the samba mailing list