Dawn Keenan wrote:
> 
> > I am trying to build Apache with SSL support, and so I compiled OpenSSL
> > 0.9.7g using gcc 2.95.3 on a Solaris 9 system.
>  ...
> > However, when I try to run Apache (either ./apachectl start or ./httpd
> > -<anything>), I am getting an error, something like:
> >
> >         "Cannot load /usr/local/apache2/module/mod_auth_digest.so into
> > the
> >          server: ld.so.1: fatal: relocation error: file ...symbol
> > __floatdidf
> >          not found"
> 
> The floatdidf symbol is part of libgcc.  I'd guess you built a shared
> OpenSSL library against a static libgcc.a.
> 
> One solution would be to rebuild OpenSSL with the vendor C compiler.
> Another would be to link the OpenSSL libraries with the shared version
> of libgcc (preferably using -R rather than relying on LDPATH stuff -- I
> think hiding libgcc.a at configure time will generate a Makefile that
> Does the Right Thing).  A third option would be to force the inclusion
> of libgcc in the Apache build, probably by editing the Makefile after
> configure has been run.


Hi Dawn,

Your last comment was very close to the answer :).

I finally got Apache working with SSL this afternoon.  The 'key' was a
warning message that appeared in the config.log several times.  The
message was rather confusing, and actually, I had several colleagues
puzzling over it for awhile.

Basically, the message indicated that because I was using a gcc version
that was earlier than 3.00, it could not bind libgcc to create the .SO,
but it created the .SOs anyway, and the message advised manually linking
the .SOs to libgcc.  

What I ended up doing was go through the entire configure/make/make
install, then afterwards, looking in the <Apache source root>/modules
directory at the modules.mk file.  I then re-linked (ld) each of the
modules, including libgcc.a, which was in the
/usr/local/openssl/lib-gcc/sparc.../2.95.3 directory to create a new
.SO.

Once I did that, Apache started up without a problem.  I then copied
over some CA and server certs that I had from a working test system, and
VOILA, everything worked!

Once I have a chance, I want to go back and re-do the build, because I
had done a lot of messing around with LD_LIBRARY_PATH and LDFLAGS, just
to make sure I can reproduce this.

Thanks,
Jim
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to