Bug 472 - Config script fails on Solaris 9 when trying to use ldap configuration options
Config script fails on Solaris 9 when trying to use ldap configuration options
Status: RESOLVED LATER
Product: Samba 3.0
Classification: Unclassified
Component: Config Files
3.0.0preX
Other Solaris
: P5 normal
: none
Assigned To: Samba Bugzilla Account
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-09-17 22:13 UTC by Geoff Cole
Modified: 2005-02-07 09:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Cole 2003-09-17 22:13:05 UTC
./configure --with-ldapsam --with-ldap

last part of configure fails after finding the standard Solaris 9 libldap.so
libraries:

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... yes
checking for ldap_domain2hostlist... no
checking for ldap_set_rebind_proc... yes
checking whether ldap_set_rebind_proc takes 3 arguments... 3
checking for ldap_initialize... no
configure: error: libldap is needed for LDAP support
root@sundev% 

-------------------------
Section from config.log:

configure:22020: result: no
configure:22059: checking for ldap_init in -lldap
configure:22090: gcc -o conftest -g -O2  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS
=64  conftest.c -lldap   -lsec -lgen -lresolv -lsocket -lnsl -ldl  >&5
configure:22093: $? = 0
configure:22096: test -s conftest
configure:22099: $? = 0
configure:22112: result: yes
configure:22145: checking for ldap_domain2hostlist
configure:22188: gcc -o conftest -g -O2  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS
=64  conftest.c  -lldap -lsec -lgen -lresolv -lsocket -lnsl -ldl  >&5
Undefined                       first referenced
 symbol                             in file
ldap_domain2hostlist                /var/tmp//cc0SF3xX.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:22191: $? = 1
configure: failed program was:
#line 22150 "configure"
#include "confdefs.h"


-------------------
root@sundev% printenv PATH
/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/local/bin:/usr/local/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb:/opt/SUNWrtvc/bin
root@sundev% 
root@sundev% printenv LD_LIBRARY_PATH
/usr/lib/sparcv9/lib:/usr/lib:/usr/local/lib:/usr/dt/lib:/usr/openwin/lib


--------------------
Note: OpenLDAP not installed on the host. Instead it contains a test
installation of iPlanet directory server
Comment 1 Tim Potter 2003-09-18 19:07:16 UTC
Hmm - I'm not sure whether we support non-OpenLDAP servers when compiling Samba.
 I don't think many people have tried it.

Jerry, what do you think about this?
Comment 2 Tim Potter 2003-09-18 19:07:35 UTC
cc me
Comment 3 Gerald (Jerry) Carter 2003-09-19 06:39:39 UTC
It's the OpenLDAP 2.x client libraries that we need.  Using a 
non-OpenLDAP server should be ok.  We will probably see if 
we can support Sun's client libs later on.
Comment 4 Gerald (Jerry) Carter 2003-09-26 07:15:43 UTC
Later releases may support the Sun libs if someone 
can spend enough time on a Solaris box or someone
sends in a patch.
Comment 5 Gerald (Jerry) Carter 2005-02-07 09:05:41 UTC
originally reported against one of the 3.0.0rc[1-4] releases.
Cleaning up non-production versions.