Hi there,
Dunno if this will get back to the person who submitted the BUGDB report??
Anyhow ...
On Thu, 19 Apr 2001 [EMAIL PROTECTED] wrote:
> Full_Name: Phil Allen
> Version: 2.8.2-1.3.19
> OS: Solaris 7
> Submission from: (NULL) (209.22.30.2)
>
>
> Compiled mod_ssl with shared enabled, openssl is made with shared libs, and as
> per instructions I do configure on apache and get a slew of Undefined functions
> in libssl.a. However, to get it to finish without errors, I have to make it
> with shared libs and not run apache's configure, just do make, make certificate,
> and make install. All paths and varibles set right it will compile to finish and
> even run httpd. But, when I run startssl I get this:
>
> "Syntax error on line 206 of /usr/local/conf/httpd.conf:
> Cannot load libssl.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal:
> /usr/local/apache/libexec/libssl.so: open failed: No such file or directory"
>
> The lib is fine, in the right place, and I can even load via command line.
> Apache says it's probably not them.
>
> Is there a sure fire way of building Apache with mod_ssl? Or, should I just
> quit my job and go on welfare?
That shouldn't be necessary.
Looking at the error, my first instinct would be to ensure that the openssl
headers and libs you're building against match the libraries that your
apache/mod_ssl is trying to load at run-time. This has been a common problem for
many people with OpenSSL of late, now that many systems are having OpenSSL
*installed* in system-wide locations. An error such as this might explain what
you see because the shared library load would attempt to resolve all linkage
symbols and binary incompatible versions of OpenSSL could cause that to fail.
The other possible problem is that the system can't find the OpenSSL shared
libraries at run-time? Eg. where are the ssl and crypto shared libraries on your
host system and how was libssl.so (mod_ssl) linked with respect to the openssl
libs? Have you tried setting LD_LIBRARY_PATH on the console you start apache
from to see if that resolves the problem?
Given how little we can tell from the above report, if these two thoughts don't
lead you to a solution, try "ptrace"ing the apache start-up and checking out
where things go wrong at that level. Or perhaps find the code in apache that
calls the dlopen() and change it to print "dlerror()" in the event of a NULL
return (and perror() as well to make sure). You could also change the loader
flags used in the second parameter to dlopen() to RTLD_LAZY (or whatever is
equivalent on solaris) ... this might cause the library to load but failure to
occur later on somewhere easier to pin-down (eg. you may be able to get a
core-dump and thus a back-trace ... that would certainly help).
Hope that helps,
Geoff
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]