[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Ldap compile with ssl and BDB
>>> Quanah Gibson-Mount <quanah@stanford.edu> 01/26/04 09:48pm >>>
--On Monday, January 26, 2004 8:13 PM +0000 Julia
<julia131@netzero.com>
wrote:
>
> Hello,
> I am compiling OpenLdap-2.1.25 on a solaris machine.
> I have SSL and BDB installed under /usr/local/ssl and
> /usr/local/BerkeleyDB.4.2. When I run the configure,
> it complains it can not locate TLS/SSL package. Please
> let me know what could be wrong.
>
>
># CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include \
> -I/usr/local/ssl/include"
>
># LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/ssl/lib"
>
># ./configure --with-bdb --with-tls --with-cyrus-sasl
> Configuring OpenLDAP 2.1.25-Release
> ....................
> checking for openssl/ssl.h... no
> checking for ssl.h... no
> configure: error: Could not locate TLS/SSL package
Read config.log, it often has important clues.
<<<<<<<<<<<<<<<
I suspect that your CPPFLAGS and LDFLAGS are not being passed to
configure. You could verify that by looking at any of the "cc" or "gcc"
lines in config.log and see if -I/usr/local/ssl is there.
I always write a little shell script called cnf.cmd that I can re-use
for new releases so I remember all of the options I used and modify it
for any new and interesting options, mine for OpenLDAP 2.1.24 on Solaris
9 is thus:
export CC=/usr/local/bin/gcc
export CXX=/usr/local/bin/g++
export CFLAGS="-I/usr/local/bind/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include"
export CPPFLAGS="-I/usr/local/bind/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.2/lib
-L/usr/local/ssl/lib"
./configure --enable-debug --enable-ipv6 --with-cyrus-sasl
--without-kerberos \
--with-tls --enable-slapd --enable-cleartext --enable-crypt
--enable-spasswd \
--enable-bdb --enable-slurpd
note that I export the variables before calling ./configure.
Mike.