Operating System - HP-UX
1832226 Members
2307 Online
110041 Solutions
New Discussion

Can't open shared library: ./libcrypto.sl.0.9.6

 
SOLVED
Go to solution
Ken Penland_1
Trusted Contributor

Can't open shared library: ./libcrypto.sl.0.9.6

I am having sort of the same problem as a few other people in these forums, but none of the solutions provided to them help me out. I am trying to compile apache with mod_ssl 2.0.46 and I am getting the following error come make time:

/bin/sh /home/hnj0281/httpd-2.0.46/srclib/apr/libtool --silent --mode=link cc -g -Ae +DAportable +Z -DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -I/home/hnj0281/httpd-2.0.46/srclib/apr/include -I/home/hnj0281/httpd-2.0.46/srclib/apr-util/include -I/home/hnj0281/httpd-2.0.46/srclib/apr-util/xml/expat/lib -I. -I/home/hnj0281/httpd-2.0.46/os/unix -I/home/hnj0281/httpd-2.0.46/server/mpm/prefork -I/home/hnj0281/httpd-2.0.46/modules/http -I/home/hnj0281/httpd-2.0.46/modules/filters -I/home/hnj0281/httpd-2.0.46/modules/proxy -I/home/hnj0281/httpd-2.0.46/include -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -I/home/hnj0281/httpd-2.0.46/modules/dav/main -export-dynamic -L/home/hnj0281/httpd-2.0.46/srclib/apr-util/xml/expat/lib -L/usr/local/ssl/lib -o dftables -L/home/hnj0281/httpd-2.0.46/srclib/apr-util/xml/expat/lib -L/usr/local/ssl/lib dftables.lo -lssl -lcrypto
./dftables > /home/hnj0281/httpd-2.0.46/srclib/pcre/chartables.c
/usr/lib/dld.sl: Can't open shared library: ./libcrypto.sl.0.9.6
/usr/lib/dld.sl: No such file or directory
sh: 11535 Abort
*** Error exit code 134

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.


I put /usr/local/ssl/lib in my $PATH, and I created a link in /usr/lib pointing to /usr/local/ssl/lib/libcrypto.sl.0.9.6 but it still bombs out...any suggestions?
'
3 REPLIES 3
Adam J Markiewicz
Trusted Contributor
Solution

Re: Can't open shared library: ./libcrypto.sl.0.9.6

Hi

How about setting $SHLIB_PATH?

Also check 'chatr' utility. Pay special attention to options '-l' and '+s'.

I hope it helps
Good luck
Adam
I do everything perfectly, except from my mistakes
Ken Penland_1
Trusted Contributor

Re: Can't open shared library: ./libcrypto.sl.0.9.6

the SHLIB_PATH was the answer, it wasnt set to anything, in fact, I dont remember ever having to set it in the past, but now it knows where the lib is. It still didnt compile, getting a new error now, but at least I am closer to getting this installed (we are currently running 2.0.44 but have to upgrade to 46 cause of security)....

I haven't done any playing around with it yet, to try and fix on my own, but here is my new error:

cc -E -DHAVE_CONFIG_H -DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -I/home/hnj0281/httpd-2.0.46/srclib/apr-util/include -I/home/hnj0281/httpd-2.0.46/srclib/apr-util/include/private -I/home/hnj0281/httpd-2.0.46/srclib/apr/include -I/home/hnj0281/httpd-2.0.46/srclib/apr-util/xml/expat/lib export_vars.h | sed -e 's/^\#[^!]*//' | sed -e '/^$/d' >> aprutil.exp
Making all in pcre
Make: Cannot read or get /build/ltlib.mk. Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
'
Adam J Markiewicz
Trusted Contributor

Re: Can't open shared library: ./libcrypto.sl.0.9.6

Hi

I would check what does it say.
Actually I suspect that the file shouldn't really be in /build/ltlib.mk, but there is some unset variable, like $MAKE_ROOT/build/ltlib.mk, which is unset.
Unset variable is unfold to empty string and this ends up with path from the root.

Good luck
Adam
I do everything perfectly, except from my mistakes