I'm trying to build samba with ldap/ads support on a solaris10 sparc system. After some googling, I followed some the advise of others, and built krb5, openssl, and openldap and installed into /usr/local. When running configure, I get errors about ldap not being found: ... 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 configure: error: libldap is needed for LDAP support I do have LD_LIBRARY_PATH defined with /usr/local/lib, and the CPPFLAGS is set in the configure line: # ./configure CFLAGS="-O3 -pipe" CPPFLAGS="-I/usr/local/include" --prefix=/usr/local --sysconfdir=/usr/local/etc/samba --localstatedir=/usr/local/var --with-ads --with-krb5=/usr/local --with-ldap --with-quotas --with-acl-support --with-logfilebase=/var/log/samba --with-privatedir=/usr/local/etc/samba/private --with-configdir=/usr/local/etc/samba --with-included-popt Any help is appreciated. -Rob
Dege, Robert C. schrieb:> I'm trying to build samba with ldap/ads support on a solaris10 sparc > system. After some googling, I followed some the advise of others, and > built krb5, openssl, and openldap and installed into /usr/local. > > When running configure, I get errors about ldap not being found: > > ... > 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 > configure: error: libldap is needed for LDAP supportI had a similar problem when I was cross-compiling Samba for mipsel. It is most likely OpenLDAP issue. see config.log and look for lldap / libldap errors. You may also search for my posts in "how does libldap detection work in ./configure script?" thread on samba-technical list. -- Tomasz Chmielewski http://wpkg.org
Dege, Robert C. wrote:> I'm trying to build samba with ldap/ads support on a solaris10 sparc > system. After some googling, I followed some the advise of others, and > built krb5, openssl, and openldap and installed into /usr/local. > When running configure, I get errors about ldap not being found: > checking for ber_scanf in -llber... yes > checking for ldap_init in -lldap... no > checking for ldap_set_rebind_proc... no > configure: error: libldap is needed for LDAP support > I do have LD_LIBRARY_PATH defined with /usr/local/lib, and the CPPFLAGS > is set in the configure line:> # ./configure CFLAGS="-O3 -pipe" CPPFLAGS="-I/usr/local/include"Add LDFLAGS="-L/usr/local/lib -R/usr/local/lib" for build Samba with OpenLDAP client library. -- Alex Deiter
I added the LDFLAGS="-L/usr/local/lib -R/usr/local/lib", but it did not help, I still get the same error message. -Rob> -----Original Message----- > From: tiamat@komi.mts.ru [mailto:tiamat@komi.mts.ru] > Sent: Monday, January 30, 2006 1:59 PM > To: Dege, Robert C.; samba@lists.samba.org > Subject: Re: [Samba] Samba on Solaris with LDAP support > > Dege, Robert C. wrote: > > > I'm trying to build samba with ldap/ads support on a > solaris10 sparc > > system. After some googling, I followed some the advise of others, > > and built krb5, openssl, and openldap and installed into /usr/local. > > When running configure, I get errors about ldap not being found: > > checking for ber_scanf in -llber... yes checking for ldap_init in > > -lldap... no checking for ldap_set_rebind_proc... no > > configure: error: libldap is needed for LDAP support I do have > > LD_LIBRARY_PATH defined with /usr/local/lib, and the > CPPFLAGS is set > > in the configure line: > > > # ./configure CFLAGS="-O3 -pipe" CPPFLAGS="-I/usr/local/include" > > Add LDFLAGS="-L/usr/local/lib -R/usr/local/lib" for build > Samba with OpenLDAP client library. > > -- > Alex Deiter >
> I had a similar problem when I was cross-compiling Samba for mipsel. > > It is most likely OpenLDAP issue. > > see config.log and look for lldap / libldap errors. > > You may also search for my posts in "how does libldap > detection work in ./configure script?" thread on samba-technical list.After some deeper analysis of the config.log file, I discovered the problem was an ldap/openssl problem (specifically, I didn't build openssl with shared libraries). Recompiling those packages resolved the ldap problems I had during samba's configure. But now I've encountered a new problem when attempting to compile. The error message generated is not as detailed as I was hoping, and I'm not sure how to resolve this issue. Any ideas? Compiling passdb/pdb_ldap.c passdb/pdb_ldap.c: In function `pdb_init_ldapsam': passdb/pdb_ldap.c:4388: error: incompatible types in assignment *** Error code 1 The following command caused the error: gcc -I. -I/usr/src/samba-3.0.21a/source -I/usr/local/include -O3 -pipe -D_SAMBA_BUILD_ -I./popt -Iinclude -I/usr/src/samba-3.0.21a/source/include -I/usr/src/samba-3.0.21a/source/ubiqx -I/usr/src/samba-3.0.21a/source/tdb -I. -I/usr/local/include -I/usr/local/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -DSUNOS5 -I/usr/src/samba-3.0.21a/source -D_SAMBA_BUILD_ -c passdb/pdb_ldap.c \ -o passdb/pdb_ldap.o make: Fatal error: Command failed for target `passdb/pdb_ldap.o' -Rob