Shirish Pargaonkar
2009-May-08 00:28 UTC
[Samba] error while building samba with cifs upcall
:/usr/src/samba/samba/source3 # grep -i ldap config.log $ ./configure --with-cifsupcall --with-ads --with-ldap --with-krb5 configure:59539: checking for LDAP support configure:59585: checking ldap.h usability configure:59627: checking ldap.h presence configure:59696: checking for ldap.h | #define HAVE_LDAP_H 1 | #define HAVE_LDAP_H 1 | #define HAVE_LDAP_H 1 configure:60066: checking for LDAP_OPT_SOCKBUF configure:60200: checking for ldap_init in -lldap configure:60233: gcc -o conftest -O -O -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt -I/usr/include -L./bin -L/usr/lib conftest.c -lldap -lresolv -lnsl -ldl >&5 /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libldap.so when searching for -lldap /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libldap.a when searching for -lldap /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libldap.so when searching for -lldap /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libldap.a when searching for -lldap /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lldap | #define HAVE_LDAP_H 1 | char ldap_init (); | return ldap_init (); configure:60299: checking for ldap_set_rebind_proc conftest.c:(.text+0xa): undefined reference to `ldap_set_rebind_proc' | #define HAVE_LDAP_H 1 | /* Define ldap_set_rebind_proc to an innocuous variant, in case <limits.h> declares ldap_set_rebind_proc. | #define ldap_set_rebind_proc innocuous_ldap_set_rebind_proc | which can conflict with char ldap_set_rebind_proc (); below. | #undef ldap_set_rebind_proc | char ldap_set_rebind_proc (); | #if defined __stub_ldap_set_rebind_proc || defined __stub___ldap_set_rebind_proc | return ldap_set_rebind_proc (); configure:60394: checking whether ldap_set_rebind_proc takes 3 arguments configure:60461: checking for ldap_initialize conftest.c:(.text+0xa): undefined reference to `ldap_initialize' | #define HAVE_LDAP_H 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:60573: error: libldap is needed for LDAP support ac_cv_func_ext_ldap_initialize=no ac_cv_func_ext_ldap_set_rebind_proc=no ac_cv_header_ldap_h=yes ac_cv_lib_ext_ldap=no ac_cv_lib_ext_ldap_ldap_init=no samba_cv_HAVE_LDAP_OPT_SOCKBUF=yes smb_ldap_cv_ldap_set_rebind_proc=3 LDAP_LIBS='' LDBLDAP='' SMBLDAP='' SMBLDAPUTIL='' #define HAVE_LDAP_H 1 #define LDAP_SET_REBIND_PROC_ARGS 3 Have these rpms installed on this SLES11 machine rpm -aq | grep -i ldap openldap2-devel-2.4.12-7.16 libldap-2_4-2-32bit-2.4.12-5.5 openldap2-client-2.4.12-5.6 yast2-ldap-2.17.3-1.63 libevoldap-2_4-2-2.4.12-4.7 yast2-ldap-client-2.17.16-1.28 yast2-ldap-server-2.17.18-1.3 openldap2-2.4.12-5.6 libldapcpp1-0.1.2-1.35 libldap-2_4-2-2.4.12-5.6 What is missing to bring in ldap_initialize?