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

OpenLDAP installation, make test



I am trying to install OpenSSL, cyrus-sasl and OpenLDAP
all in a test directory /tmp/pd.
I have SUN/Solaris9, gcc (recent version), and BerkeleyDB v4.2.52
in a directory /home/local/BerkeleyDB (in fact a soft link to
/home/local/BerkeleyDB.4.2)

This is what I did so far

openssl-0.9.7f (latest):
------------------------
$ ./config --prefix=/tmp/pd/local --openssldir=/tmp/pd/local/openssl
$ make
$ make test
$ make install
installs everything in /tmp/pd/local/bin, /tmp/pd/local/lib,
and in /tmp/pd/local/include/openssl - this last directory is reserved,
according to OpenSSL INSTALL documentation, to configuration files.

cyrus-sasl-2.1.20 (latest)
--------------------------
$ CPPFLAGS='-I/tmp/pd/local/include -I/home/local/BerkeleyDB/include'
$ LDFLAGS='-L/tmp/pd/local/lib -L/home/local/BerkeleyDB/lib/'
$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/pd/local/lib:/tmp/pd/local/openssl/lib:/
home/local/BerkeleyDB/lib
$ LD_RUN_PATH=$LD_RUN_PATH:/tmp/pd/local/lib:/tmp/pd/local/openssl/lib:/home/loc
al/BerkeleyDB/lib
$ export CPPFLAGS LDFLAGS LD_LIBRARY_PATH LD_RUN_PATH

./configure --prefix=/tmp/pd/local \
--with-bdb-libdir=/home/local/BerkeleyDB/lib \
--with-bdb-incdir=/home/local/BerkeleyDB/include \
--with-openssl=/tmp/pd/local
$ make
$ make install

openldap-2.2.24 (latest):
-------------------------
$ CC=gcc
$ CPPFLAGS='-I/tmp/pd/local/include -I/home/local/BerkeleyDB/include'
$ LDFLAGS='-L/tmp/pd/local/lib -L/home/local/BerkeleyDB/lib/'
$ export CC CPPFLAGS LDFLAGS

Remark: here LD_LIBRARY_PATH and LD_RUN_PATH are only what I normally
use with software installations
$ echo $LD_LIBRARY_PATH
/usr/local/JMF/lib:/usr/local/qt/lib:/usr/local/lib:/usr/openwin/lib:/usr/dt/lib
:/usr/lib:/opt/SUNWspro/lib
$ echo LD_RUN_PATH
/usr/openwin/lib:/usr/local/lib:/usr/lib

(in a second test, see below, they are as for cyrus-sasl-2.1.20 above)

$ ./configure --prefix=/tmp/pd/local
following messages are what I expected
There are no WARNING messages
checking host system type... sparc-sun-solaris2.9
..
checking for gcc... gcc
..
checking for Berkeley DB link (-ldb-4.2)... yes
checking for Berkeley DB version match... yes
checking for Berkeley DB thread support... yes
checking Berkeley DB version for BDB backend... yes
..
checking for sasl_client_init in -lsasl2... yes
checking Cyrus SASL library version... yes
checking for sasl_version... yes

$ make depend
$ make
$ make test
make[1]: Entering directory `/tmp/pd/openldap-2.2.24/tests'
make[2]: Entering directory `/tmp/pd/openldap-2.2.24/tests'
Initiating LDAP tests for BDB...
Running ./scripts/all...
>>>>> Executing all LDAP tests for bdb
>>>>> Starting test000-rootdse ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve the root DSE...
Killed
28867 Killed
Waiting 5 seconds for slapd to start...
Killed
Waiting 5 seconds for slapd to start...
Killed
Waiting 5 seconds for slapd to start...
Killed
Waiting 5 seconds for slapd to start...
Killed
Waiting 5 seconds for slapd to start...
Killed
Waiting 5 seconds for slapd to start...
./scripts/test000-rootdse: kill: no such process
ld.so.1: ../clients/tools/ldapsearch: fatal: libssl.so.0.9.7: open failed:
No su
ch file or directory
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 137)
make[2]: *** [bdb-yes] Error 137
make[2]: Leaving directory `/tmp/pd/openldap-2.2.24/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/tmp/pd/openldap-2.2.24/tests'
make: *** [test] Error 2

which is what one could expect, because libssl.so.0.9.7 is in my
directory /tmp/pd/local/lib

So, now I extend LD_LIBRARY_PATH and LD_RUN_PATH

$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/pd/local/lib:/tmp/pd/local/openssl/lib:/
home/local/BerkeleyDB/lib
$ LD_RUN_PATH=$LD_RUN_PATH:/tmp/pd/local/lib:/tmp/pd/local/openssl/lib:/home/loc
al/BerkeleyDB/lib

I also set SASL_PATH:
since cyrus-sasl (as mentioned in documentation) always will look for its
plugins in /usr/lib/sasl2, which you can override with the env var
SASL_PATH
$ SASL_PATH=/tmp/pd/local/lib/sasl2
(however I find it strange that even without SASL_PATH set, the .configure
output mentionned (see above):
checking for sasl_client_init in -lsasl2... yes
checking Cyrus SASL library version... yes
checking for sasl_version... yes
$ export SASL_PATH LD_LIBRARY_PATH LD_RUN_PATH

$ ./configure --prefix=/tmp/pd/local && make depend && make
$ make test
make[1]: Entering directory `/tmp/pd/openldap-2.2.24/tests'
make[2]: Entering directory `/tmp/pd/openldap-2.2.24/tests'
Initiating LDAP tests for BDB...
Running ./scripts/all...
>>>>> Executing all LDAP tests for bdb
>>>>> Starting test000-rootdse ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve the root DSE...
Segmentation Fault - core dumped
Waiting 5 seconds for slapd to start...
17063 Segmentation Fault - core dumped
Segmentation Fault - core dumped
Waiting 5 seconds for slapd to start...
Segmentation Fault - core dumped
Waiting 5 seconds for slapd to start...
Segmentation Fault - core dumped
Waiting 5 seconds for slapd to start...
Segmentation Fault - core dumped
Waiting 5 seconds for slapd to start...
./scripts/test000-rootdse: kill: no such process
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 139)
make[2]: *** [bdb-yes] Error 139
make[2]: Leaving directory `/tmp/pd/openldap-2.2.24/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/tmp/pd/openldap-2.2.24/tests'
make: *** [test] Error 2

Now it get  Segmentation faults ?
What can be wrong with that ???


  _______________
 / Pieter Donche \____________________________________________
 | ITC Manager                  e-mail Pieter.Donche@ua.ac.be \
 | Dept. Mathem. & Computer Science, University of Antwerp    |
 | (UA) Middelheimlaan 1, B 2020 Antwerpen,      BELGIUM (EU) |
 | room G1.16,      tel +32 03.265.3870, fax +32 03.265.3777  |
 |____________________________________________________________|