FYI...The resolution that worked me for building 2.2.9 & getting past
this issue included the following:

a) remove openldap 2.4.10 & install 2.3.35
b) prefix configure script with CPPFLPAGS=-DLDAP_DEPRECATED.  The
configure script looks at an old function that isn't found w/out this.
c) use the "--with-ldap" option w/out any value
d) use the "--with-ldap-lib" option w/ the path to the ldap lib dir (as
documented)  (e.g. --with-ldap-lib=/usr/local/lib)
e) use the "--with-ldap-include" option w/ the path to the ldap include
dir (as documented)  (e.g. --with-ldap-include=/usr/local/include)


-----Original Message-----
From: Jon Wilmoth 
Sent: Friday, June 20, 2008 4:00 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Solaris build w/LDAP support

I'm trying to build 2.2.9 with support for ldap authentication on a
solaris 10 box, but am getting an error during the configure step that
says apr-util isn't able to find an LDAP library.  I've installed the
latest openldap package from sunfreeware.com (details below) and used
the following options --with-ldap=/usr/local
--with-ldap-lib=/usr/local/lib --with-ldap-include=/usr/local/include.
I also tried the 2.0.63 version and got pretty much the same error.  The
exact configure commands and the relevant output is below.  Any
suggestions on how to let the build process know where the openldap
install is would be greatly appreciated.

Thanks,
Jon Wilmoth


   PKGINST:  SMColdap
      NAME:  openldap
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  2.4.10
   BASEDIR:  /usr/local
    VENDOR:  The OpenLDAP Group
    PSTAMP:  Steve Christensen
  INSTDATE:  Jun 18 2008 13:02
     EMAIL:  [EMAIL PROTECTED]
    STATUS:  completely installed
     FILES:     1054 installed pathnames
                  12 shared pathnames
                  63 directories
                  22 executables
               32209 blocks used (approx)


./configure --prefix=/usr/local/apache-2.2.9 --with-ldap=/usr/local
--with-ldap-lib=/usr/local/lib --with-ldap-include=/usr/local/include
--with-ssl=/usr/local/ssl --enable-so --enable-mods-shared='access
actions alias asis auth authnz-ldap autoindex cern-meta cgi cgid
charset-lite dav dav-fs dir env expires ext-filter headers imagemap
include ldap log-config mime negotiation proxy proxy-ajp proxy-balancer
proxy-connect proxy-ftp proxy-http rewrite setenvif speling ssl status
unique-id userdir usertrack vhost-alias'


checking for ldap support...
  setting APRUTIL_INCLUDES to "-I/usr/local/include"
  setting APRUTIL_LDFLAGS to "-L/usr/local/lib"
/home/svcacct/httpd-2.2.9/srclib/apr-util/configure: line 11398: unset:
`ac_cv_lib_/usr/local_ldap_init': not a valid identifier
/home/svcacct/httpd-2.2.9/srclib/apr-util/configure: line 11399: unset:
`ac_cv_lib_/usr/local___ldap_init': not a valid identifier
checking for ldap_init in -l/usr/local... no
/home/svcacct/httpd-2.2.9/srclib/apr-util/configure: line 11993: unset:
`ac_cv_lib_/usr/local_ldap_init': not a valid identifier
/home/svcacct/httpd-2.2.9/srclib/apr-util/configure: line 11994: unset:
`ac_cv_lib_/usr/local___ldap_init': not a valid identifier
checking for ldap_init in -l/usr/local... (cached) no
/home/svcacct/httpd-2.2.9/srclib/apr-util/configure: line 12588: unset:
`ac_cv_lib_/usr/local_ldap_init': not a valid identifier
/home/svcacct/httpd-2.2.9/srclib/apr-util/configure: line 12589: unset:
`ac_cv_lib_/usr/local___ldap_init': not a valid identifier
checking for ldap_init in -l/usr/local... (cached) no
/home/svcacct/httpd-2.2.9/srclib/apr-util/configure: line 13183: unset:
`ac_cv_lib_/usr/local_ldap_init': not a valid identifier
/home/svcacct/httpd-2.2.9/srclib/apr-util/configure: line 13184: unset:
`ac_cv_lib_/usr/local___ldap_init': not a valid identifier
checking for ldap_init in -l/usr/local... (cached) no
configure: error: could not find an LDAP library
configure failed for srclib/apr-util


./configure --prefix=/usr/local/apache-2.0.63 --with-ldap=/usr/local
--with-ldap-lib=/usr/local/lib --with-ldap-include=/usr/local/include
--with-ssl=/usr/local/ssl --enable-so --enable-mods-shared='ssl ldap
auth-ldap access actions alias asis auth autoindex cern-meta cgi cgid
charset-lite dav dav-fs dir env expires ext-filter headers imap include
info log-config log-forensic mime mime-magic negotiation rewrite
setenvif speling status unique-id userdir usertrack vhost-alias'


...
checking for unistd.h... yes
checking for ldap support...
  setting APRUTIL_INCLUDES to "-I/usr/local/include"
  setting APRUTIL_LDFLAGS to "-L/usr/local/lib"
/home/svcacct/httpd-2.0.63/srclib/apr-util/configure: line 7083: unset:
`ac_cv_lib_/usr/local_ldap_init': not a valid identifier
/home/svcacct/httpd-2.0.63/srclib/apr-util/configure: line 7084: unset:
`ac_cv_lib_/usr/local___ldap_init': not a valid identifier
checking for ldap_init in -l/usr/local... no
/home/svcacct/httpd-2.0.63/srclib/apr-util/configure: line 7384: unset:
`ac_cv_lib_/usr/local_ldap_init': not a valid identifier
/home/svcacct/httpd-2.0.63/srclib/apr-util/configure: line 7385: unset:
`ac_cv_lib_/usr/local___ldap_init': not a valid identifier
checking for ldap_init in -l/usr/local... (cached) no
/home/svcacct/httpd-2.0.63/srclib/apr-util/configure: line 7685: unset:
`ac_cv_lib_/usr/local_ldap_init': not a valid identifier
/home/svcacct/httpd-2.0.63/srclib/apr-util/configure: line 7686: unset:
`ac_cv_lib_/usr/local___ldap_init': not a valid identifier
checking for ldap_init in -l/usr/local... (cached) no
/home/svcacct/httpd-2.0.63/srclib/apr-util/configure: line 7986: unset:
`ac_cv_lib_/usr/local_ldap_init': not a valid identifier
/home/svcacct/httpd-2.0.63/srclib/apr-util/configure: line 7987: unset:
`ac_cv_lib_/usr/local___ldap_init': not a valid identifier
checking for ldap_init in -l/usr/local... (cached) no
configure: error: could not find an LDAP library
configure failed for srclib/apr-util


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to