[Samba] samba 3.0.23d with ldap compile problem - SOLVED

Angela Gavazzi edv at goetheanum.ch
Thu Jan 18 13:59:06 GMT 2007


Am Donnerstag, 18. Januar 2007 14:50 schrieb ydurant at linagora.com:
> Hi,
>
> >> and in the default location ?
> >
> > no: /usr/local/ldap
>
> Ok the problem come from this,
>
> ldconfig will help to load the librairie at run stage but won't help
> configure or the linker to find it when linking.


>
> I think that the simplest way to solve it , if you cant put  your open ldap
> librairy in a standard place, is to put a symbolic link referencing the
> .a file an .so file in /usr/local/ldap/lib in /usr/lib .

thank you very much.
This is just what I just tried now and it solved the problem.
I was expecting ldconfig to help also configure.

by, angela
>
> Regards,
>
> Yanick
>
> >> Seen to me that you have missed a step in the installation / compilation
> >> of openldap, since configure can't find the open ldap library.
> >>
> >> Did you have the librairy libldap.so in /usr/lib or /usr/local/lib ?
> >
> > find / -name libldap.so
> > /usr/src/openldap-2.3.27/libraries/libldap/.libs/libldap.so
> > /usr/local/ldap/lib/libldap.so
> >
> > but
> >
> > cat /etc/ld.so.conf
> >
> > /usr/X11R6/lib
> > /usr/lib/include
> > /usr/local/lib
> > /usr/local/ldap/include
> > /usr/local/ldap/lib
> >
> > I thought that this should work after executing ldconfig. Is this wrong?
> >
> > Tia, Angela
> >
> >> Regards,
> >>
> >> Yanick Durant / Linagora
> >>
> >> > Hi,
> >> >
> >> > I'm trying to compile samba 3.0.23d for use with ldap as backend.
> >> >
> >> > The system is Debian Sarge fresh installed, all updates installed, and
> >> > openldap-2.3.27 installed from sources.
> >> >
> >> > I searched a lot but couldn't google out anythink that helped.
> >> >
> >> > I sent this same mail jesterday with configure options for ldap,
> >> > ld.so.conf
> >> > and samba error.log but it was too long. So another time with less
> >>
> >> text.
> >>
> >> > Can anybody here help? It would be great!
> >> >
> >> > Thank you very much.
> >> >
> >> > Angela
> >> >
> >> >
> >> > samba configure:
> >> >
> >> > ./source/configure \
> >> > '--prefix=/usr/local/samba' \
> >> > '--sysconfdir=/etc' \
> >> > '--localstatedir=/usr/local/samba/var' \
> >> > '--with-configdir=/etc/samba' \
> >> > '--with-privatedir=/etc/samba' \
> >> > '--with-lockdir=/usr/local/samba/var/lock' \
> >> > '--with-piddir=/usr/local/samba/var/run' \
> >> > '--with-swatdir=/usr/local/samba/swat' \
> >> > '--with-smbmount' \
> >> > '--with-quotas' \
> >> > '--with-ldap' \
> >> > '--with-acl-support'
> >> >
> >> > *********************************
> >> >
> >> > Configure aborts with this error:
> >> >
> >> > ....
> >> > 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... 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
> >> > checking for ldap_dn2ad_canonical... no
> >> > configure: error: libldap is needed for LDAP support
> >> >
> >> > *********************************
> >> >
> >> >
> >> > --
> >> > To unsubscribe from this list go to the following URL and read the
> >> > instructions:  https://lists.samba.org/mailman/listinfo/samba


More information about the samba mailing list