Re: [Samba] samba 3.0.23d with ldap compile problem - SOLVED
Am Donnerstag, 18. Januar 2007 14:50 schrieb [EMAIL PROTECTED]: > 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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba 3.0.23d with ldap compile problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Angela Gavazzi wrote: >> Also check the failure in >> config.log to see if it is a missing library. > > libldap.so is missing. > > It's in /usr/local/ldap/lib and the path is set in ld.so.conf. ... > Is there a better way to tell the samba compile process where it is? export CFLAGS="-I/usr/local/ldap/include" export LDFLAGS="-L/usr/local/ldap/lib" ./configure cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFr3vqIR7qMdg1EfYRAm6zAKC/qJtj5yLBuuYCxJm2+17JlZSedwCgsZJY b21SUKnYwB7ya/SonIrq/7s= =xAut -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba 3.0.23d with ldap compile problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Angela Gavazzi wrote: > 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. Make sure you set -I and -L properly. Also check the failure in config.log to see if it is a missing library. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFr3VAIR7qMdg1EfYRAqgoAKDX8uOW+Pz91kjWZhmSsts/jasZIQCgpWos gDwtzrD3XlRR0ckSvrigOc8= =7tB/ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba 3.0.23d with ldap compile problem
>On Thu, 18 Jan 2007 10:24:27 +0100, you wrote: >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 > >* Angela: I have a similar issue here as well, posted back on 11/16/06 with no response either, I'm going to put it out again on the bottom of your message maybe the two are somehow related. >On Thu, 16 Nov 2006 11:10:44 -0800, you wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >George R. Kasica wrote: > >> Compiling dynconfig.c >> In file included from include/includes.h:1067, >> from /Linux/samba-3.0.23d/source/dynconfig.c:21: >> include/proto.h:672: error: expected declaration specifiers or '...' >> before 'LDAPControl' >> include/proto.h:672: error: expected declaration specifiers or '...' >> before 'LDAPControl' >> make: *** [dynconfig.o] Error 1 >> >> I'm not a programmer so I'm not sure how to correct the >> problem here, any assistance would be greatly appreciated. > >What platform is this? And what LDAP client libs do you >have installed (if any)? > >Intel P-III platform, and no LDAP is in use or installed. >Caldera OpenLinus 2.2 but its been upgraded extensively so it is now more or >less generic 2.6.19.1. -- ===[George R. Kasica]===+1 262 677 0766 President +1 206 374 6482 FAX Netwrx Consulting Inc. Jackson, WI USA http://www.netwrx1.com [EMAIL PROTECTED] ICQ #12862186 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba