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
***********************************
--On Monday, April 06, 2009 8:52 AM -0500 "McGranahan, Jamen" jamen.mcgranahan@Vanderbilt.Edu wrote:
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:
Don't use 2.4.11. Try 2.4.16 instead. There've been hundreds of fixes since 2.4.11, including fixes to the routines that figure out with TLS/SSL package to use.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
I tried you're suggestion, going from 2.4.11 to 2.4.16 and now, when I run make, I get the following:
P_LIBRARY -c tls_g.c -KPIC -DPIC -o .libs/tls_g.o "tls_g.c", line 73: syntax error before or at: gnutls_kx_algorithm_t "tls_g.c", line 82: syntax error before or at: gnutls_certificate_credentials_t "tls_g.c", line 98: syntax error before or at: typedef "tls_g.c", line 99: syntax error before or at: gnutls_session_t "tls_g.c", line 105: syntax error before or at: static "tls_g.c", line 109: syntax error before or at: static "tls_g.c", line 109: syntax error before or at: * "tls_g.c", line 109: warning: undefined or missing type for: char "tls_g.c", line 109: member cannot be function: tlsg_parse_ciphers "tls_g.c", line 110: syntax error before or at: * "tls_g.c", line 110: member cannot be function: tlsg_cert_verify "tls_g.c", line 174: member cannot be function: tlsg_init "tls_g.c", line 174: warning: syntax requires ";" after last struct/union member "tls_g.c", line 174: syntax error before or at: { "tls_g.c", line 196: warning: syntax requires ";" after last struct/union member "tls_g.c", line 200: syntax error before or at: while "tls_g.c", line 224: member cannot be function: tlsg_destroy "tls_g.c", line 224: warning: syntax requires ";" after last struct/union member "tls_g.c", line 224: syntax error before or at: { "tls_g.c", line 235: member cannot be function: tlsg_ctx_new "tls_g.c", line 235: warning: syntax requires ";" after last struct/union member "tls_g.c", line 235: syntax error before or at: { "tls_g.c", line 253: warning: syntax requires ";" after last struct/union member "tls_g.c", line 254: zero-sized struct/union "tls_g.c", line 256: only one storage class allowed "tls_g.c", line 256: invalid type combination "tls_g.c", line 259: undefined symbol: tlsg_ctx "tls_g.c", line 259: undefined symbol: c "tls_g.c", line 259: syntax error before or at: = "tls_g.c", line 263: left operand of "->" must be pointer to struct/union "tls_g.c", line 267: cannot recover from previous errors cc: acomp failed for tls_g.c make[2]: *** [tls_g.lo] Error 1 make[2]: Leaving directory `/home/jamen/openldap-2.4.16/libraries/libldap' make[1]: *** [all-common] Error 1 make[1]: Leaving directory `/home/jamen/openldap-2.4.16/libraries' make: *** [all-common] Error 1
Please advise. Thank you!
Jamen McGranahan Systems Services Librarian Vanderbilt University
-----Original Message----- From: Quanah Gibson-Mount [mailto:quanah@zimbra.com] Sent: Monday, April 06, 2009 10:14 AM To: McGranahan, Jamen; openldap-software@openldap.org Subject: Re: make error
--On Monday, April 06, 2009 8:52 AM -0500 "McGranahan, Jamen" jamen.mcgranahan@Vanderbilt.Edu wrote:
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:
Don't use 2.4.11. Try 2.4.16 instead. There've been hundreds of fixes since 2.4.11, including fixes to the routines that figure out with TLS/SSL package to use.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
--On Monday, April 06, 2009 10:58 AM -0500 "McGranahan, Jamen" jamen.mcgranahan@Vanderbilt.Edu wrote:
I tried you're suggestion, going from 2.4.11 to 2.4.16 and now, when I run make, I get the following:
What SSL implementation are you trying to use? I believe Solaris ships with an older, unsupported release of GnuTLS, so you need to either build (or install) your own version of OpenSSL or a newer release of GnuTLS, and then point slapd at its headers & libraries.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Quanah Gibson-Mount wrote:
--On Monday, April 06, 2009 8:52 AM -0500 "McGranahan, Jamen" jamen.mcgranahan@Vanderbilt.Edu wrote:
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:
Don't use 2.4.11. Try 2.4.16 instead. There've been hundreds of fixes since 2.4.11, including fixes to the routines that figure out with TLS/SSL package to use.
That won't make any difference; Solaris 10 ships with an ancient version of GnuTLS which is being used automatically, even though it's too old. run configure --with-tls=openssl or --without-tls to bypass that.
openldap-software@openldap.org