[Samba] solaris samba ldap

synrat synrat at wirewalk.org
Wed Nov 17 02:29:12 GMT 2004


thanx. I think that helped. At least now I can see libldap and liblder.

Using libraries:
     LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl
     LDAP_LIBS = -lldap -llber
     AUTH_LIBS =


now I have problems compiling.


# make
Using FLAGS =  -O -I./popt -Iinclude 
-I/export/home/sho/src/samba/samba-3.0.8/source/include 
-I/export/home/sho/src/samba/samba-3.0.8/source/ubiqx 
-I/export/home/sho/src/samba/samba-3.0.8/source/smbwrapper  -I. 
-I/usr/local/include:/usr/local/openldap/include -D_LARGEFILE_SOURCE 
-D_REENTRANT -D_FILE_OFFSET_BITS=64 
-I/export/home/sho/src/samba/samba-3.0.8/source
       LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl
       LDSHFLAGS = -G -O  -lthread
       LDFLAGS = -lthread
Generating smbd/build_options.c
Building include/proto.h
creating /export/home/sho/src/samba/samba-3.0.8/source/include/proto.h
Building include/wrepld_proto.h
creating 
/export/home/sho/src/samba/samba-3.0.8/source/include/wrepld_proto.h
Building include/build_env.h
creating 
/export/home/sho/src/samba/samba-3.0.8/source/nsswitch/winbindd_proto.h
creating /export/home/sho/src/samba/samba-3.0.8/source/web/swat_proto.h
creating /export/home/sho/src/samba/samba-3.0.8/source/client/client_proto.h
creating /export/home/sho/src/samba/samba-3.0.8/source/utils/net_proto.h
Compiling dynconfig.c
"include/proto.h", line 587: syntax error before or at: LDAP_CONST
"include/proto.h", line 587: warning: undefined or missing type for: 
LDAP_CONST
"include/proto.h", line 587: warning: undefined or missing type for: struct
"include/proto.h", line 588: warning: undefined or missing type for: 
LDAPControl
"include/proto.h", line 588: warning: undefined or missing type for: 
LDAPControl
"include/proto.h", line 589: warning: undefined or missing type for: char
"include/proto.h", line 589: warning: undefined or missing type for: struct
cc: acomp failed for dynconfig.c
*** Error code 2
make: Fatal error: Command failed for target `dynconfig.o'


Schott, Erik J Mr ANOSC/FCBS wrote:
> Try this command:  crle -u -l /usr/local/openldap/lib
> 
> crle is the "configure runtime linking environment" command, -u updates the
> configuration file /var/ld/ld.config (or creates the file if it does not
> already exist) and -l creates creates the name (/usr/local/openldap/lib)
> entry in the configuration cache (/var/ld/ld.config).
> 
> HTH
> 
> -----Original Message-----
> From: samba-bounces+erik.schott-fcbs=netcom.army.mil at lists.samba.org
> [mailto:samba-bounces+erik.schott-fcbs=netcom.army.mil at lists.samba.org]O
> n Behalf Of synrat
> Sent: Tuesday, November 16, 2004 2:03 PM
> To: samba at lists.samba.org
> Subject: [Samba] solaris samba ldap
> 
> 
> I'm trying to build 3.0.8 on solaris 9.
> 
> I tried linking against both sun and openldap libraries,
> both unsucessufully.  I get
> 
> ------------------------------
> 
> checking for LDAP support... auto
> 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... yes
> checking for ldap_init in -lldap... no
> checking for ldap_domain2hostlist... no
> checking for ldap_set_rebind_proc... no
> checking whether ldap_set_rebind_proc takes 3 arguments... 3
> checking for ldap_initialize... no
> configure: WARNING: libldap is needed for LDAP support
> 
> -------------------
> 
> Using libraries:
>      LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl
>      AUTH_LIBS =
> 
> the build completes without linking to libldap or liblder, samba
> starts but doesn't recongnize any ldap settings.
> configure options below.
> 
> CC=cc LDFLAGS="-L/usr/local/openldap/lib" 
> CPPFLAGS="-I/usr/local/openldap/include"
> ./configure --with-ldapsam
> 
> also tried settin LD_LIBRARY_PATH to /usr/local/openldap/lib,
> but that didn't make a difference.



More information about the samba mailing list