Re: Help on Apache 2.0.43 + SSL installation
am 12.03.2003 17:22:34 von Cliff Woolley
I'm cc:ing the users list so that the response is in the archives in case
anyone else has a similar problem.
On Sat, 8 Mar 2003, Kitty Ko wrote:
> How are you? I read accross one of your email replay on the "binding
> shared libraries with OpenSSL" on the interent, and that's how I got
> your email address.
>
> I have encounter problems while installing SSL + APACHE. I am wondering
> if you can give me some hits.
>
> I have successfully completed installing Tomcat 4.0.6 + Apache 2.0.43 on
> the Unix box. Buy I can't have SSL installed. FYI. I build apache and
> open ssl form source.
>
> After I extracted the openssl-0.9.7, I did the following:
>
> # cd openssl-0.9.7
>
> # ./config --prefix=/depot/ssl/install
> --openssldir=/depot/ssl/install/openssl
>
> # make
>
> However, once I get into make build-shared, i got the following errors:
>
> ld:fetal: relocations remain against allocatable but non-writable
> sections colletc2: ld returned 1 exit status
>
> make: ***[do-solars-shared] Error 1
>
> My questions are:
>
> 1. how to fix this compile error
Hmmm... well honestly I'm not all that familiar with linker problems on
Solaris. I have heard a number of people report problems getting the
shared library build of openssl to work on Solaris, though that's about as
much insight as I can offer. The option to use both a static openssl and
a static mod_ssl remains, of course, and at this point sounds like your
best option.
> 2. how do i know if I compiled mod_ssl statically or dynamicelly?
"httpd -l" will list all the statically-compiled modules.
> I build the apache by the following command:
>
> # ./configure --with-layout=Apache --prefix=/depot/apache2
> --enable-mods-shared=most --enable-ssl=shared
^^^^^^^^^^^^^^^^^^^
....though this right here tells me you've built it as shared, since that's
what that means. :)
--Cliff
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
Re: Help on Apache 2.0.43 + SSL installation
am 12.03.2003 17:57:16 von dodge
On Wed, 12 Mar 2003, Cliff Woolley wrote:
>
> I'm cc:ing the users list so that the response is in the archives in case
> anyone else has a similar problem.
>
>
> On Sat, 8 Mar 2003, Kitty Ko wrote:
>
> > How are you? I read accross one of your email replay on the "binding
> > shared libraries with OpenSSL" on the interent, and that's how I got
> > your email address.
> >
> > I have encounter problems while installing SSL + APACHE. I am wonderin=
g
> > if you can give me some hits.
> >
> > I have successfully completed installing Tomcat 4.0.6 + Apache 2.0.43 o=
n
> > the Unix box. Buy I can't have SSL installed. FYI. I build apache an=
d
> > open ssl form source.
> >
> > After I extracted the openssl-0.9.7, I did the following:
> >
> > # cd openssl-0.9.7
> >
> > # ./config --prefix=3D/depot/ssl/install
> > --openssldir=3D/depot/ssl/install/openssl
> >
> > # make
> >
> > However, once I get into make build-shared, i got the following errors:
> >
> > ld:fetal: relocations remain against allocatable but non-writable
> > sections colletc2: ld returned 1 exit status
> >
> > make: ***[do-solars-shared] Error 1
> >
> > My questions are:
> >
> > 1. how to fix this compile error
>
> Hmmm... well honestly I'm not all that familiar with linker problems on
> Solaris. I have heard a number of people report problems getting the
> shared library build of openssl to work on Solaris, though that's about a=
s
> much insight as I can offer. The option to use both a static openssl and
> a static mod_ssl remains, of course, and at this point sounds like your
> best option.
>
> > 2. how do i know if I compiled mod_ssl statically or dynamicelly?
>
> "httpd -l" will list all the statically-compiled modules.
>
> > I build the apache by the following command:
> >
> > # ./configure --with-layout=3DApache --prefix=3D/depot/apache2
> > --enable-mods-shared=3Dmost --enable-ssl=3Dshared
> ^^^^^^^^^^^^^^^^^^^
>
> ...though this right here tells me you've built it as shared, since that'=
s
> what that means. :)
>
> --Cliff
>
For the openssl compile (with gcc) use:
/config --prefix=3D shared threads no-idea '-fPIC'
Then build Apache 2.x:
/configure --with-layout=3DApache --prefix=3D/depot/apache2 \
--enable-mods-shared=3Dmost \
--with-ssl=3D \
--enable-ssl=3Dshared
make ; make install
Note when using gcc on Solaris you may run across a dependency on libgcc.a
(__floatdisf, --floatdidf,...).
Set SH_LDFLAGS=3D`gcc -print-libgcc-file-name` ; ./configure...
This shlould be all you need.
Note: Use the linker (ld) in /usr/ccs/bin
----------------------------------------
"Mon a=E9roglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org