Apache 2.x LDAPSDK SSL Build Error

From: Rodrick R. Brown (rrbrown@dcas.nyc.gov)
Date: Fri Jul 25 2003 - 13:22:14 EDT


I'm trying to build Apache 2.x with LDAP AuthLDAP & SSL and running into
the following I'm not sure if it's because I'm using the
ldapsdk5.08-SunOS5.864_OPT.OBJ.tar.gz and my current OS is Solaris 9

Here is some information from the configure script.

I'm using the following. /configure arguments.

./configure --prefix=/usr/local/apache --enable-so
--enable-mods-shared=ldap auth-ldap --with-ldap --with-auth-ldap
--with-ldap-lib=/usr/local/iplanet-ldap-sdk.5
--with-ldap-include=/usr/local/iplanet-ldap-sdk.5
--with-ssl=/usr/local/ssl --enable-ssl --enable-rewrite --enable-dav

checking ldap_ssl.h usability... no
checking ldap_ssl.h presence... yes
configure: WARNING: ldap_ssl.h: present but cannot be compiled
configure: WARNING: ldap_ssl.h: check for missing prerequisite headers?
configure: WARNING: ldap_ssl.h: proceeding with the preprocessor's
result checking for ldap_ssl.h... yes

checking whether to enable mod_ssl... checking dependencies
checking for SSL/TLS toolkit base... /usr/local/ssl checking for SSL/TLS
toolkit version... OpenSSL 0.9.7b 10 Apr 2003

checking for SSL/TLS toolkit includes... /usr/local/ssl/include
checking for SSL/TLS toolkit libraries... /usr/local/ssl/lib adding
"-I/usr/local/ssl/include/openssl" to INCLUDES adding "
I/usr/local/ssl/include" to INCLUDES adding "-L/usr/local/ssl/lib" to
LDFLAGS adding "-R/usr/local/ssl/lib" to LDFLAGS setting LIBS to "-lssl
-lcrypto"

checking for SSL_set_state... no checking for SSL_set_cert_store... no
checking whether to enable mod_ssl... yes (default)

-- Here is some info from the build log

Building shared: mod_ldap.la mod_auth_ldap.la
/bin/bash /export/home/rbrown/WWWbuild/httpd-2.0.47/srclib/apr/libtool
--silent --mode=compile gcc -g -O2 -pthreads -DSOLARIS2=9
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER
-I/usr/local/iplanet-ldap-sdk.5/include
-I/export/home/rbrown/WWWbuild/httpd-2.0.47/srclib/apr/include
-I/export/home/rbrown/WWWbuild/httpd-2.0.47/srclib/apr-util/include
-I/usr/local/iplanet-ldap-sdk.5
-I/export/home/rbrown/WWWbuild/httpd-2.0.47/srclib/apr-util/xml/expat/li
b -I. -I/export/home/rbrown/WWWbuild/httpd-2.0.47/os/unix
-I/export/home/rbrown/WWWbuild/httpd-2.0.47/server/mpm/prefork
-I/export/home/rbrown/WWWbuild/httpd-2.0.47/modules/http
-I/export/home/rbrown/WWWbuild/httpd-2.0.47/modules/filters
-I/export/home/rbrown/WWWbuild/httpd-2.0.47/modules/proxy
-I/export/home/rbrown/WWWbuild/httpd-2.0.47/include
-I/usr/local/ssl/include/openssl -I/usr/local/ssl/include
-I/export/home/rbrown/WWWbuild/httpd-2.0.47/modules/dav/main -prefer-pic
-c util_ldap.c && touch util!
 _ldap.slo
util_ldap.c: In function `util_ldap_connection_open':
util_ldap.c:294: `LDAP_OPT_X_TLS_HARD' undeclared (first use in this
function)
util_ldap.c:294: (Each undeclared identifier is reported only once
util_ldap.c:294: for each function it appears in.)
util_ldap.c:295: `LDAP_OPT_X_TLS' undeclared (first use in this
function)
util_ldap.c: In function `util_ldap_post_config':
util_ldap.c:1226: `LDAP_OPT_X_TLS_CACERTFILE' undeclared (first use in
this function)
*** Error code 1
make: Fatal error: Command failed for target `util_ldap.slo' Current
working directory
/export/home/rbrown/WWWbuild/httpd-2.0.47/modules/experimental
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory
/export/home/rbrown/WWWbuild/httpd-2.0.47/modules/experimental
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory
/export/home/rbrown/WWWbuild/httpd-2.0.47/modules
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /export/home/rbrown/WWWbuild/httpd-2.0.47
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Note* I'm unable to find LDAP_OPT_X_TLS_CACERTFILE & LDAP_OPT_X_TLS
defined anywhere in /usr/iplanet-ldap-sdk.5/include/* has anyone here
built apache2 with auth_ldap using the ldapsdk from Sun?

-----------------------------------------
Rodrick R. Brown (rrbrown[at]dcas.nyc.gov)
(NYCAPS Project) Systems Engineer
New York City Automated Personal Systems
Office: (212)6694711 | Cell: (646)5296338
-----------------------------------------
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:48 EDT