[Samba] samba 3.0.23d with ldap compile problem

George R. Kasica georgek at netwrx1.com
Thu Jan 18 12:08:53 GMT 2007

>On Thu, 18 Jan 2007 10:24:27 +0100, you wrote:

>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.
>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' \
>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


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:

>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

===[George R. Kasica]===        +1 262 677 0766
President                       +1 206 374 6482 FAX 
Netwrx Consulting Inc.          Jackson, WI USA 
georgek at netwrx1.com
ICQ #12862186

More information about the samba mailing list