[Samba] Can't compile Samba 3.0rc2 with ldap & ldapsam Solaris 9

Chew, Darren darren.chew at vicscouts.asn.au
Mon Sep 8 15:08:10 GMT 2003


Hi All,

Here is my configure script:

./configure --with-ldap --with-ldapsam

Configure works ok. But during make the following error message was received.

----

Using FLAGS =  -g -O2  -Iinclude -I/usr/local/src/samba-3.0.0rc2/source/include
-I/usr/local/src/samba-3.0.0rc2/source/ubiqx
-I/usr/local/src/samba-3.0.0rc2/source/smbwrapper  -I. -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/local/src/samba-3.0.0rc2/source
      LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl -liconv
      LDSHFLAGS = -G
      LDFLAGS =
Compiling dynconfig.c
In file included from include/includes.h:896,
                 from dynconfig.c:21:
include/proto.h:492: parse error before "LDAP_CONST"
make: *** [dynconfig.o] Error 1

----

I have installed OpenLDAP 2.1.22 as per below:
./configure --prefix=/usr/local/openldap \
--without-bdb \
--disable-bdb \
--enable-null
make
make install

----

My environment variable have been changed prior to building Samba as follows:

LD_LIBRARY_PATH=/usr/local/lib:/usr/local/openldap/lib:/usr/lib:/usr/sfw/lib
PATH=/usr/local/bin:/usr/local/openldap/bin:/usr/bin:/usr/sbin:/usr/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/ucb:/usr/dt/bin:/usr/openwin/bin
and changed my LD_LIBRARY_PATH and PATH variables to include the 

Close... but still no cigar. If anyone has any experience building Samba 3.0 on
Solaris 9 with ldap support I would love to hear from you. Thanks in advance for
any help received.

btw. I have now successfully converted the samba.schema file provided in
examples/LDAP to a suitable form for importing into iPlanet Directory Server 5.x
if anyone is interested. The one currently provided only provides for
sambaAccount not SambaSamAccount.

Darren
-------------------------------------------------
This mail was sent using Scout WebMail
https://webmail.vicscouts.asn.au/




More information about the samba mailing list