[Samba] Issues compiling related to LDAP libraries

Alan Dotts awdotts at iastate.edu
Thu Sep 15 19:32:16 GMT 2005

I am trying to compile Samba version 3.0.20 for use on a SunFire 880 
server running SunOS 5.9 / Solaris 9.

The compile fails because the include files in the LDAP library do 
not have certain macros required by Samba.    The specific error is 
included below.

My questions are:
Has anyone else had issues compiling for SunOS?
Does anyone know what version of the LDAP libs I should get?

Alan Dotts

Using FLAGS =  -O -D_SAMBA_BUILD_  -Iinclude 
-I/home/awdotts/samba-3.0.20/source/ubiqx  -I. -D_LARGEFILE_SOURCE 
-D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/home/awdotts/samba-3.0.20/source
       LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl -liconv
       LDSHFLAGS = -G  -lthread
       LDFLAGS = -lthread
       PIE_CFLAGS =
       PIE_LDFLAGS =
Compiling passdb/pdb_nds.c
passdb/pdb_nds.c: In function `pdb_nds_update_login_attempts':
passdb/pdb_nds.c:849: error: `LDAP_OPT_X_TLS_HARD' undeclared (first 
use in this function)
passdb/pdb_nds.c:849: error: (Each undeclared identifier is reported only once
passdb/pdb_nds.c:849: error: for each function it appears in.)
passdb/pdb_nds.c:850: error: `LDAP_OPT_X_TLS' undeclared (first use 
in this function)
make: *** [passdb/pdb_nds.o] Error 1

More information about the samba mailing list