[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP 2.3 Make Test Failed



Hi Quanah,
 
Thank you for the response.
 
I have the following set when I ran the configure:
 
#!/bin/bash
env CPPFLAGS="-I/usr/local/include -I/usr/local/zlib-1.2.3/include -I/usr/local/BerkeleyDB.4.5/include -I/usr/local/krb5-1.6.3/include -I/usr/local/ssl/include -I/usr/local/cyrus-sasl-2.1.21/include" \
LDFLAGS="-L/usr/local/lib -L/usr/local/zlib-1.2.3/lib -L/usr/local/BerkeleyDB.4.5/lib -L/usr/local/krb5-1.6.3/lib -L/usr/local/ssl/lib -L/usr/local/cyrus-sasl-2.1.21/lib" \
./configure --with-tls --with-cyrus-sasl --enable-crypt --enable-syslog
 
I didn't encounter a problem when I did the make depend and make. Should I set the environment when I run the make test? Please enlighten me. Thanks.
 
Luke

----- Original Message ----
From: Quanah Gibson-Mount <quanah@zimbra.com>
To: Luke Lee <leeluke77@yahoo.com>; openldap-technical@openldap.org
Sent: Friday, April 11, 2008 4:53:42 PM
Subject: Re: OpenLDAP 2.3 Make Test Failed

--On Friday, April 11, 2008 4:35 PM -0700 Luke Lee <leeluke77@yahoo.com>
wrote:

>
>
> Hi,
>
> I'd like to appreciate all people who previously helped out my OpenLDAP
> 2.3 build process. Now, I come to the last stage but got stuck at the
> "make test" stage. It failed with the following messages:

> I triled to resolve the problem by creating a symbolic link to the shared
> lib under the /usr/local/ssl/lib but in vain. Can anyone please help?
> I'll highly appreciate it!

You need to set the run path correctly when building, so that slapd knows
what paths to search to find the libraries.

For example, in my OpenLDAP build, I have:

        LDFLAGS="-L$(OPENSSL_LIB_DIR) -L$(BDB_LIB_DIR) -L$(CYRUS_LIB_DIR)
-R$(OPENSSL_LIB_DIR) -R$(BDB_LIB_DIR) -R$(CYRUS_LIB_DIR)"

and when I go to make:

LD_RUN_PATH=$(OPENSSL_LIB_DIR):$(BDB_LIB_DIR):$(CYRUS_LIB_DIR) $(MAKE)
$(MAKEARGS);

that should get you going in the right direction.

--Quanah


--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com