Allysson Steve Mota Lacerda
2007-May-11 22:47 UTC
[Samba] Problem compiling Samba 3.0.24 with OpenLDAP 2.3.35
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@stevelacerda.net http://www.stevelacerda.net
Gavin Henry
2007-May-12 22:09 UTC
[Samba] Problem compiling Samba 3.0.24 with OpenLDAP 2.3.35
> Check your config.log > > It might be something else.Forget that, it is something else, as configure has foudn libldap. Check your config.log ;-)> > Also, please don't install OpenLDAP without running "make test". > That's just stupid. >
Gavin Henry
2007-May-12 22:14 UTC
[Samba] Problem compiling Samba 3.0.24 with OpenLDAP 2.3.35
On 11/05/07, Allysson Steve Mota Lacerda <stevelacerda@gmail.com> wrote:> 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 supportCheck your config.log It might be something else. Also, please don't install OpenLDAP without running "make test". That's just stupid.