After doing some more search I found this post
http://www.openldap.org/lists/openldap-software/200511/msg00178.html
Everything works except make test for openldap fails with error
./scripts/test000-rootdse: line 66: kill: (11073) - No such process
../clients/tools/ldapsearch: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed for bdb (exit 127)
make[2]: *** [bdb-yes] Error 127
I am using openldap 2.4.25, Berkeley DB 4.8.30, openssl 1.0.0, cyrus-sasl 2.1.23
and my path variables are set to
export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/opt/openssl-1.0.0/lib:/opt/db-4.8.30/lib:/opt/db-4.8.30/include
export LD_LIBRARY_PATH=/opt/db-4.8.30/lib
export SASL_PATH=/opt/cyrus-sasl-2.1.23/sasl2
export CPPFLAGS="-I/opt/db-4.8.30/include -I/opt/openssl-1.0.0/include -I/opt/cyrus-sasl-2.1.23/include"
export LDFLAGS="-L/opt/db-4.8.30/lib -L/opt/openssl-1.0.0/lib -L/opt/cyrus-sasl-2.1.23/lib"
export LIBS="-lgcc_s"
I checked that libssl.so.1.0.0 is present in /opt/openssl-1.0.0, so no clue :(
I will keep trying and would very much appreciate any help.
Thanks.