[Samba] samba configure not working

Paul Gienger pgienger at ae-solutions.com
Fri Jun 10 14:45:02 GMT 2005

> Of course, I apologize.  I'm currently running Solaris9.  This is the

Ahh, Solaris, in this case, have you configured crle at all? Run it once on
the command line

# crle

And you'll get output that tells you what you have currently and how to set
it that way.  On the only solaris box I have left, the output includes:
(note that this isn't my system and it has a lot of stuff going on)

crle -c /var/ld/ld.config -l

You'll notice that it has a path to openldap/lib in there.  Make sure yours
does, and if not, then take the line it spit out and add
:/usr/local/ldap/lib to it

See if that gets you anywhere.  I'd also set a couple of the env variables I
stated earlier.

> last few lines I get when compiling samba:
> 	checking for ber_scanf in -llber... no
> 	checking for ldap_init in -lldap... yes
> 	checking for ldap_domain2hostlist... no
> 	checking for ldap_set_rebind_proc... yes
> 	checking whether ldap_set_rebind_proc takes 3 arguments... 3
> 	checking for ldap_initialize... no
> 	configure: error: libldap is needed for LDAP support
> The ldap config --> ./configure --prefix=/usr/local/openldap
> --without-bdb --disable-bdb --enable-null
> Kerberos config --> ./configure --prefix=/usr/local/kerberos5
> My Env variables are as follows:
> LD_LIBRARY_PATH=/usr/local/openldap/bin
> LOGNAME=root
> PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/local/samba/bin
> :/usr/local/kerberos5:/usr/local/openldap
> PS1=chilly:#
> SHELL=/sbin/sh
> TERM=xterm
> TZ=US/Eastern
> Rick Mattier
> Systems Analyst II
> Windriver Systems
> 120 Royall St
> Canton, Ma 02021
> ricardo.mattier at windriver.com
> Canton: 781 364-2002
> Nashua: 603 897-2084
> -----Original Message-----
> From: Paul Gienger [mailto:pgienger at ae-solutions.com]
> Sent: Friday, June 10, 2005 10:07 AM
> To: Mattier, Ricardo; samba at samba.org
> Subject: RE: [Samba] samba configure not working
> >     I'm having an issue compiling samba with-ads enabled.  I've
> > successfully compiled kerberosV5 and Openldap.  I can the following
> > line when compiling Samba ./configure --with-pam --with-ads
> > --with-ldap=/usr/local/openldap --with-winbind --with-krb5 The
> > configure fails due to not having ldap support.  Any ideas?
> With the limited info you've given, you may not be finding the
> libraries.
> On various versions of solaris, I've had to use any or all of these:
> export FLAGS=-I/opt/openldap/include
> export CPPFLAGS=-I/opt/openldap/include
> export LDFLAGS=-L/opt/openldap/lib
> export CFLAGS="-I/opt/openldap/include"
> YMMV of course.  If you could provide a little more info you may get a
> bit more information back. I could see the following being relevant:
> - your OS type and version - there may be a dynamic linker we could
> configure.
> - a chunk of the ./configure before the failure
> - the output of env (or the equivalent for your shell)
> - some info about your openldap and krb installs, ./configure lines
> would probably do nicely

More information about the samba mailing list