[Samba] (no subject)

Gilles Pion gilles.pion at gmail.com
Tue Jul 30 00:58:09 MDT 2013


Andrew Bartlett <abartlet <at> samba.org> writes:

> Where is ldap.h on your system.  It may be enough to just specify
> CFLAGS="-I/usr/local/openldap/include" ./configure
> 
> (if that is where ldap.h is).
> 
> If we have found ldap.h, it will be added to those tests.
> 

I'm using a dedicated openldap installation located in the samba destination
directory
(openldap "./configure" prefix is the same as samba "./configure" prefix)


Also, as I've alway done for configure env variables, for includes switches, 
I'm not using "CFLAGS" 
but "CPPLAGS".
(which BTW contains the required "-I" switch pointing to ldap headers 
directory)

Is this not correct?


Note that with the following fix to ".source3/wscript" the check is 
successfull, 

replaced
conf.CHECK_FUNCS_IN('ldap_init ldap_init_fd ldap_initialize 
ldap_set_rebind_proc', 'ldap')
conf.CHECK_FUNCS_IN('ldap_add_result_entry', 'ldap')

by
conf.CHECK_FUNCS_IN('ldap_init ldap_init_fd ldap_initialize 
ldap_set_rebind_proc', 'ldap',  
                     headers='ldap.h lber.h')
conf.CHECK_FUNCS_IN('ldap_add_result_entry', 'ldap', 
                     headers='ldap.h')





More information about the samba mailing list