[Samba] Samba 3 doesn't compile against SUN directory server 4.16sp1

Thomas Müller thomas.mueller at christ-wasser.de
Mon Sep 29 11:04:10 GMT 2003

Hi folks,
I tried to compile samba 3 on Solaris 8 with SUn directory server 4.16sp1.
I run configure --with-acl-support --with-quotas.
The first problem is, that configure reports that ldap.h can not be 
compiled. In config.log, I found the following lines:

configure:22013: checking ldap.h usability
configure:22022: gcc -c -g -O2 -I/usr/local/include  -D_LARGEFILE_SOURCE 
_OFFSET_BITS=64 conftest.c >&5
In file included from configure:22050:
/usr/include/ldap.h:494: error: field `ldctl_value' has incomplete type
/usr/include/ldap.h:1083: error: parse error before "BerElement"
/usr/include/ldap.h:1085: error: parse error before "BerElement"
/usr/include/ldap.h:1115: error: parse error before "BerElement"

When I look at config.h, there I have #define HAVE_LDAP 1, so I think 
this might be ok.

Now I tried to compile samba and it fails in pdb_ldap.c

Compiling passdb/pdb_ldap.c
passdb/pdb_ldap.c:64:9: macro names must be identifiers
passdb/pdb_ldap.c: In function `ldapsam_modify_entry':
passdb/pdb_ldap.c:1222: error: `LDAP_EXOP_MODIFY_PASSWD' undeclared 
(first use i
n this function)
passdb/pdb_ldap.c:1222: error: (Each undeclared identifier is reported 
only once
passdb/pdb_ldap.c:1222: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `passdb/pdb_ldap.o'

In /usr/include/ldap.h there is no definition of LDAP_EXOP_MODIFY_PASSWD!!!!
It seems, that SUN has not defined this function in the API.

Due to these facts, I think it is not possible to compile Samba3 against 
SUN directory server 4.16sp1!
Did anyone here successfully compile Samba 3 against any version of Sun 
directory server? If yes, how has this to be done?

I'm interested in any informations how to compile Samba3 against SUn 
directory server.

Kind regards

Thomas Müller                      Phone: +49-711-88716-147
Department Manager IT        Fax: +49-711-88716-777
Christ GmbH                        Mail: thomas.mueller at christ-wasser.de
Mittlerer Pfad 9                    Internet: www.christ-wasser.de   
70499 Stuttgart


Any opinions expressed in this eMail are those of the the individual and not necesserily
the company. This eMail and any files transmitted with it are confidential and solely for 
use of the intended recipient. If you are not the intended recipient or the person
responsible fo delivering to the intended recipient, be advised that you have received 
this eMail in error and that any use is strictly prohibited. If you have received this eMail 
in error, please advise the sender immediately by using the reply facility in your eMail

We have taken every reasonable precaution to ensure that any attachement to this 
eMail is swept for viruses. However, we cannot accept liability for any damage sustained 
as a result of software viruses and advise you carry out your own virus checks before
opening any attachement.

More information about the samba mailing list