Subject: Re: Apache SSL
To: Bryan McWhirt <iceberg@nxco.com>
From: Andrew Gillham <gillhaa@ghost.whirlpool.com>
List: port-alpha
Date: 06/03/2000 00:43:11
Bryan McWhirt writes:
> Ok, thanks to everyone who helped me get NetBSD up and running and get
> apache and php running.
> Im trying to get SSL working now and I am missing some libs I guess, here
> is what Im getting:
>
>
> alphabash-2.03# apachectl startssl
> Syntax error on line 210 of /usr/pkg/etc/httpd/httpd.conf:
> Cannot load !librsaref.so.2 into server:Shared object "librsaref.so.2" not
> found
> /usr/pkg/sbin/apachectl startssl: httpd could not be started
> alphabash-2.03#
Do 'pkg_info -L rsaref' and check the librsaref.so.* files. I have the
following libraries:
/usr/pkg/lib/librsaref.a
/usr/pkg/lib/librsaref.so.3.0
/usr/pkg/lib/librsaref.so.3
/usr/pkg/lib/librsaref.so
Note that the httpd.conf example is looking for ".so.2" rather than 3.
I changed it to a 3 and then apache core dumped. Apparently mod_ssl.so
is built without specifying the -rpath option. (at least on my i386)
You might want to check the output of: (mine is fixed)
# ldd ldd /usr/pkg/lib/httpd/mod_ssl.so
/usr/pkg/lib/httpd/mod_ssl.so:
-lssl.1 => /usr/pkg/lib/libssl.so.1
-lcrypto.1 => /usr/pkg/lib/libcrypto.so.1
-lc.12 => /usr/lib/libc.so.12
-lrsaref.3 => /usr/pkg/lib/librsaref.so.3
If you see something like:
/usr/pkg/lib/httpd/mod_ssl.so:
-lssl.1 => not found
-lcrypto.1 => not found
-lrsaref.3 => not found
Then you need to edit the Makefile and add '-rpath /usr/pkg/lib' to the
SSL_LDFLAGS line. Then rebuild and reinstall. You will probably need to
delete the .install_done file in the ap-ssl/work directory.
The Makefile to edit is in:
/usr/pkgsrc/www/ap-ssl/work/mod_ssl-2.6.3-1.3.12/pkg.sslmod
If that fixes your problem, you probably should send-pr this so somebody
fixes it.
-Andrew
--
-----------------------------------------------------------------
Andrew Gillham | NetBSD ist Affengeil.
gillham@whirlpool.com | Nachts ist es kaelter
I speak for myself, not for my employer. | als draussen.