Wayne Rasmussen
2008-Jul-03 17:48 UTC
[Samba] configure: error: Active Directory support requires ldap_initialize
Tried configure of samba-3.2.0 on Sparc Solaris 9 with the following line: ./configure --with-ldap --with-ads --with-pam --with-winbind --with-krb5=/usr/local > $log 2>&1 There is a problem where the following error is produced: configure: error: Active Directory support requires ldap_initialize I can use the same line on samba-3.0.10 and it compiles and works. $ ./configure --with-ldap --with-ads --with-pam --with-winbind --with-krb5=/us r/local configure:53590: checking for LDAP support configure:53635: checking ldap.h usability configure:53676: checking ldap.h presence configure:53744: checking for ldap.h configure:54061: checking for LDAP_OPT_SOCKBUF configure:54193: checking for ldap_init in -lldap configure:54226: gcc -o conftest -O -D_SAMBA_BUILD_=3 -D_LARGEFILE_SOURCE -D_RE ENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I./include -I. -I. -I./lib/replace -I ./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -I/usr/include -lthread -L./bin -L/usr/lib conftest.c -lldap -llber -lresolv -ldl -lnsl - lsocket -liconv >&5 configure:54288: checking for ldap_set_rebind_proc configure:54344: gcc -o conftest -O -D_SAMBA_BUILD_=3 -D_LARGEFILE_SOURCE -D_RE ENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I./include -I. -I. -I./lib/replace -I ./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -I/usr/include -lthread -L./bin -L/usr/lib conftest.c -lldap -llber -lresolv -ldl -lnsl -l socket -liconv >&5 configure:54379: checking whether ldap_set_rebind_proc takes 3 arguments configure:54445: checking for ldap_initialize configure:54501: gcc -o conftest -O -D_SAMBA_BUILD_=3 -D_LARGEFILE_SOURCE -D_RE ENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I./include -I. -I. -I./lib/replace -I ./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -I/usr/include -lthread -L./bin -L/usr/lib conftest.c -lldap -llber -lresolv -ldl -lnsl -l socket -liconv -lldap -llber >&5 ldap_initialize /var/tmp//ccCFZDlx.o | #define HAVE_LDAP_H 1 | #define HAVE_LDAP_SASL_WRAPPING 1 | #define HAVE_LDAP_INIT 1 | #define HAVE_LIBLDAP 1 | #define HAVE_LDAP_SET_REBIND_PROC 1 | #define LDAP_SET_REBIND_PROC_ARGS 3 | /* Define ldap_initialize to an innocuous variant, in case <limits.h> declares ldap_initialize. | #define ldap_initialize innocuous_ldap_initialize | which can conflict with char ldap_initialize (); below. | #undef ldap_initialize | char ldap_initialize (); | #if defined __stub_ldap_initialize || defined __stub___ldap_initialize | return ldap_initialize (); configure:54547: checking whether LDAP support is used configure:54725: checking for ldap_initialize configure:54817: error: Active Directory support requires ldap_initialize ac_cv_func_ext_ldap_initialize=no ac_cv_func_ext_ldap_set_rebind_proc=yes ac_cv_header_ldap_h=yes ac_cv_lib_ext_ldap=yes ac_cv_lib_ext_ldap_ldap_init=yes samba_cv_HAVE_LDAP_OPT_SOCKBUF=yes smb_ldap_cv_ldap_set_rebind_proc=3 CPPFLAGS=' -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I. /include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddn s -I./librpc -I./popt -I/usr/include -DLDAP_DEPRECATED' LDAP_LIBS='-lldap -llber ' LDBLDAP='' SMBLDAP='lib/smbldap.o' SMBLDAPUTIL='lib/smbldap_util.o' #define HAVE_LDAP_H 1 #define HAVE_LDAP_SASL_WRAPPING 1 #define HAVE_LDAP_INIT 1 #define HAVE_LIBLDAP 1 #define HAVE_LDAP_SET_REBIND_PROC 1 #define LDAP_SET_REBIND_PROC_ARGS 3 #define HAVE_LDAP 1