I’m trying to install OpenLDAP v. 2.4.11 on my Sun Solaris 10 box (SunOS libdig4 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V440) and I’ve done the following:

 

./configure --disable-slapd

(status = seemed to complete successfully)

 

make depend

(status = seemed to complete successfully)

 

make -> this terminates with the following:

 

  Entering subdirectory libldap

make[2]: Entering directory `/home/jamen/openldap-2.4.11/libraries/libldap'

/bin/sh ../..//libtool  --mode=compile cc -g -I../../include        -I../../include   -I/usr/local/BerkeleyDB.4.2/include   -DLDAP_LIBRARY -c tls.c

 cc -g -I../../include -I../../include -I/usr/local/BerkeleyDB.4.2/include -DLDAP_LIBRARY -c tls.c  -KPIC -DPIC -o .libs/tls.o

"tls.c", line 102: syntax error before or at: gnutls_kx_algorithm_t

"tls.c", line 112: syntax error before or at: typedef

"tls.c", line 114: syntax error before or at: gnutls_certificate_credentials_t

"tls.c", line 127: syntax error before or at: typedef

"tls.c", line 128: syntax error before or at: tls_ctx

"tls.c", line 189: member cannot be function: ldap_pvt_tls_ctx_free

"tls.c", line 189: warning: syntax requires ";" after last struct/union member

"tls.c", line 189: syntax error before or at: {

"tls.c", line 191: syntax error before or at: tls_ctx

"tls.c", line 211: member cannot be function: tls_ctx_new

"tls.c", line 211: warning: syntax requires ";" after last struct/union member

"tls.c", line 211: syntax error before or at: {

"tls.c", line 230: syntax error before or at: *

"tls.c", line 231: member cannot be function: tls_ctx_ref

"tls.c", line 231: warning: syntax requires ";" after last struct/union member

"tls.c", line 242: warning: syntax requires ";" after last struct/union member

"tls.c", line 262: warning: syntax requires ";" after last struct/union member

"tls.c", line 275: syntax error before or at: *

"tls.c", line 276: member cannot be function: tls_session_free

"tls.c", line 276: warning: syntax requires ";" after last struct/union member

"tls.c", line 285: syntax error before or at: *

"tls.c", line 285: warning: undefined or missing type for: char

"tls.c", line 286: member cannot be function: tls_parse_ciphers

"tls.c", line 286: warning: syntax requires ";" after last struct/union member

"tls.c", line 289: warning: syntax requires ";" after last struct/union member

"tls.c", line 289: syntax error before or at: =

"tls.c", line 292: syntax error before or at: num

"tls.c", line 314: warning: syntax requires ";" after last struct/union member

"tls.c", line 350: zero-sized struct/union

"tls.c", line 352: warning: old-style declaration or incorrect type for: ptr

"tls.c", line 352: warning: old-style declaration or incorrect type for: len

"tls.c", line 352: warning: syntax error:  empty declaration

"tls.c", line 353: warning: old-style declaration or incorrect type for: end

"tls.c", line 354: undefined symbol: nkx

"tls.c", line 354: can not declare variably modified type at file scope

"tls.c", line 354: warning: old-style declaration or incorrect type for: kx

"tls.c", line 354: warning: {}-enclosed initializer required

"tls.c", line 354: too many array initializers

"tls.c", line 354: warning: variable length array can not be initialized: kx

"tls.c", line 355: undefined symbol: ncipher

"tls.c", line 355: can not declare variably modified type at file scope

"tls.c", line 355: warning: old-style declaration or incorrect type for: cipher

"tls.c", line 355: warning: {}-enclosed initializer required

"tls.c", line 355: too many array initializers

"tls.c", line 355: warning: variable length array can not be initialized: cipher

"tls.c", line 356: undefined symbol: nmac

"tls.c", line 356: can not declare variably modified type at file scope

"tls.c", line 356: warning: old-style declaration or incorrect type for: mac

"tls.c", line 356: warning: {}-enclosed initializer required

"tls.c", line 356: too many array initializers

"tls.c", line 356: warning: variable length array can not be initialized: mac

"tls.c", line 357: warning: old-style declaration or incorrect type for: ctx

"tls.c", line 357: syntax error before or at: ->

"tls.c", line 357: warning: old-style declaration or incorrect type for: kx_list

"tls.c", line 357: warning: improper pointer/integer combination: op "="

"tls.c", line 358: warning: old-style declaration or incorrect type for: ctx

"tls.c", line 358: syntax error before or at: ->

"tls.c", line 358: warning: old-style declaration or incorrect type for: cipher_list

"tls.c", line 358: warning: improper pointer/integer combination: op "="

"tls.c", line 359: warning: old-style declaration or incorrect type for: ctx

"tls.c", line 359: syntax error before or at: ->

"tls.c", line 359: warning: old-style declaration or incorrect type for: mac_list

"tls.c", line 359: warning: improper pointer/integer combination: op "="

"tls.c", line 360: syntax error before or at: return

"tls.c", line 360: warning: syntax error:  empty declaration

"tls.c", line 532: cannot recover from previous errors

cc: acomp failed for tls.c

make[2]: *** [tls.lo] Error 1

make[2]: Leaving directory `/home/jamen/openldap-2.4.11/libraries/libldap'

make[1]: *** [all-common] Error 1

make[1]: Leaving directory `/home/jamen/openldap-2.4.11/libraries'

make: *** [all-common] Error 1

 

Now I am logged in as root and have the following environment variables set:

LDFLAGS=-L/usr/local/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/Berkeley.4.2/lib

CPPFLAGS=-I/usr/local/BerkeleyDB.4.2/include

LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.2/lib

 

Can someone guide me as to what I am missing? I’m sure it’s pretty obvious, but I’ve not been able to figure it out. Please, any help you can provide will be greatly appreciated. Thank you!

 

*********************************

* Jamen McGranahan

* Systems Services Librarian

* Library Information Technology Services

* Vanderbilt University

* Suite 700

* 110 21st Avenue South

* Nashville, TN  37240

* (615) 343-1614

* (615) 343-8834 (fax)

* jamen.mcgranahan@vanderbilt.edu

***********************************