[Samba] Samba 3.0.2 config error using --with-ldap

Chu, Dan dan.chu at citigroup.com
Tue Feb 24 20:50:59 GMT 2004

I am getting below errors when running "configure --with-ldap --with-ldapsam --with-ads" on Solaris 8:

************ Begin ***************
ld: warning: option -YP appears more than once, first setting taken
Undefined                       first referenced
 symbol                             in file
ldap_initialize                     conftest.o
ld: fatal: Symbol referencing errors. No output written to conftest
configure:23333: $? = 1
configure: failed program was:
#line 23292 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ldap_initialize (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ldap_initialize ();
char (*f) ();

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
main ()
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ldap_initialize) || defined (__stub___ldap_initialize)
choke me
f = ldap_initialize;

  return 0;
configure:23349: result: no
configure:23379: WARNING: libldap is needed for LDAP support
configure:23394: checking for Active Directory and krb5 support
configure:23408: result: yes
configure:23416: error: Active Directory Support requires LDAP support

********** End ***********

Note that I am using libldap that comes with Solaris 8 Shared Libs package (SUNWcsl). 

Thanks a lot in advance,

More information about the samba mailing list