I'm trying to enable SSL support on my Apache web server, and would like
to know if anyone could assist me.  I've followed the installation
instructions from the INSTALL file that's included w/ the SSLeay source
code distribution, but my "make" for Apache fails to locate the
"apache_ssl.o" module.

I've provided a description of my operating environment, and of the
SSLeay build and installation steps I've performed.  If you notice
anything peculiar or obviously wrong about my installation steps, please
reply via e-mail or phone and let me know.

Thanks,

ERIC FERGUSON, Capt, USAF
AU Research Office (CADRE/ARS) 
Maxwell AFB AL 36112-6428 

Phone:  334-953-5829 / DSN 493-5829
E-mail:  [EMAIL PROTECTED]

==================

OPERATING ENVIRONMENT:

We're running Apache v1.2.4 on a DEC AlphaServer 2100.  The host's
operating system is Digital UNIX v4.0b.  We're also running Apache
v1.2.4 and DU v4.0b on a DECpc AXP 150.  Apache is running
beautifully---has been for quite a while now.  We have Perl v5.004
installed (in /usr/local/bin).  We have both the native DEC ANSI C
compiler installed (/bin/cc) as well as GNU C/C++ v2.7.2 (we used GCC on
numerous occasions to compile Apache, so I'm assuming that it works
okay)

INSTALLATION STEPS:

1)  I obtained the Apache-SSL patches for Apache v1.2.4 from one of the
mirrors mentioned at www.apache-ssl.org.  I unpacked the distribution,
applied the patches to the Apache v1.2.4 source code with no problems.

2)  I obtained the SSLeay source from
ftp://ftp.psy.uq.oz.au/pub/Crypto/SSL/SSLeay-0.8.1.tar.gz.  I unpacked
the source using "zcat SSLeay-0.8.1.tar.gz | tar -xvf -".  The
distribution appears to have unpacked successfully.  The source was
unpacked to 

        /apps/apache/ssleay/SSLeay-0.8.1

3)  Following the instructions from the INSTALL file included in the
SSLeay 0.8.1 distribution, I skipped the first few instructions
(concerning Windows NT and alternate locations for the Perl binary).
Then I changed to the raw source directory (SSLeay-0.8.1) and ran the
configure script:  ./Configure alpha-gcc

Output was:

CC     =gcc 
CFLAG  =-O3 
EX_LIBS= 
BN_MULW=asm/alpha.o 
DES_ENC=des_enc.o fcrypt_b.o 
BF_ENC =bf_enc.o 
SIXTY_FOUR_BIT mode 
DES_PTR used 
DES_RISC2 used 
DES_INT used 

4)  Ran "make clean" (probably didn't need to for the first go around).
Appeared successful.

5)  Ran "make depend" (we _did_ have the "makedepend" command installed)

6) Ran "make" to build everything

7) Ran "make rehash" to fix up the demo certificate

8) Ran "make test" to test everything.  Notice the weird output at the
end ...

Output was:

(cd test; echo "testing $i...";  make -f Makefile.ssl CC='cc' CFLAG='-O
-DNOPROT 
O' INSTALLTOP='/usr/local/ssl' PEX_LIBS='-L. -L.. -L../.. -L../../..'
EX_LIBS='' 
 BN_MULW='bn_mulw.o' DES_ENC='des_enc.o fcrypt_b.o' BF_ENC='bf_enc.o'
SDIRS='md  
sha mdc2 des rc4 rc2 idea bf bn rsa dsa dh  buffer bio stack lhash rand
err obje 
cts  evp pem asn1 x509 conf txt_db pkcs7' AR='ar r' tests ); 
testing ... 
./destest 
Doing ecb 
Doing ede ecb 
Doing cbc 
Doing desx cbc 
Doing ede cbc 
Doing pcbc 
Doing cfb8 cfb16 cfb32 cfb48 cfb64 cfb64() ede_cfb64() done 
Doing ofb 
Doing ofb64 
Doing ede_ofb64 
Doing cbc_cksum 
bad return value (FFFFFFFFB462FEF7), should be B462FEF7 
Doing quad_cksum 
input word alignment test 0 1 2 3 
output word alignment test 0 1 2 3 
fast crypt test  
*** Exit 1 
Stop. 
*** Exit 1 
Stop. 

9)  I ran "make install".  Eveything _seemed_ to be okay.

9)  I then proceeded with the Apache-SSL instructions provided in the
Ben & Peter Lauries' book (Apache:  The Definitive Guide).  Those steps
were to add the following to my Apache "Configuration" file (on my
machine, /apps/apache/apache/src/Configuration):

        # the unpacked SSLeay distribution is in
/apps/apache/ssleay/SSLeay-0.8.1
        SSL_BASE=../../ssleay/SSLeay-0.8.1

        -and-

        Module ssl_module               apache_ssl.o 

I thought this was kind of strange, since I couldn't find an
"apache_ssl.o" object file anywhere on my system using

        find / -name "apache_ssl.o"

10)  As the Lauries' book suggested, I ran "./Configure" from the Apache
source directory (/apps/apache/apache/src)

Using config file: Configuration 
Using Makefile template file: Makefile.tmpl 
 + configured for DEC OSF/1 platform 
 + setting C compiler optimization-level to -O2 

11)  I then ran "make" from the Apache source directory to rebuild
Apache and link in the SSLeay libraries.  The "Module ssl_module" line
is the next to the last entry in the Configuration file.  As you can see
from the end of the output from the make, make can't find the
"apache_ssl.o" module (which didn't exist on my system to begin with!)

/usr/bin/cc -c   -O2 -DOSF1   -DAPACHE_SSL
-I../../ssleay/SSLeay-0.8.1/include m 
od_headers.c 
/usr/bin/cc -c   -O2 -DOSF1   -DAPACHE_SSL
-I../../ssleay/SSLeay-0.8.1/include m 
od_browser.c 
/usr/bin/cc   -o httpsd alloc.o http_main.o http_core.o http_config.o
http_reque 
st.o  http_log.o http_protocol.o rfc1413.o util.o util_script.o
modules.o buff.o 
 md5c.o util_md5.o explain.o http_bprintf.o util_date.o util_snprintf.o
mod_log_ 
config.o  mod_mime.o  mod_negotiation.o  mod_include.o  mod_dir.o
mod_cgi.o  mo 
d_asis.o  mod_imap.o  mod_actions.o  mod_userdir.o  mod_alias.o
mod_access.o  m 
od_auth.o  mod_headers.o  apache_ssl.o  mod_browser.o
-L../../ssleay/SSLeay-0.8 
.1 -lssl -lcrypto  -lm 
ld: 
Can't open: apache_ssl.o (No such file or directory) 
*** Exit 1 
Stop. 

NOTE that the "Module ssl_module" line is the next to the last
"uncommented" module entry in the Configuration file.  
# grep "Module" ./Configuration 

#
# Module env_module          mod_env.o 
# Module dld_module          mod_dld.o 
Module config_log_module   mod_log_config.o 
# Module agent_log_module    mod_log_agent.o 
# Module referer_log_module  mod_log_referer.o 
Module mime_module         mod_mime.o 
Module negotiation_module  mod_negotiation.o 
# Module status_module       mod_status.o 
# Module info_module         mod_info.o 
Module includes_module     mod_include.o 
Module dir_module          mod_dir.o 
Module cgi_module          mod_cgi.o 
Module asis_module         mod_asis.o 
Module imap_module         mod_imap.o 
Module action_module       mod_actions.o 
Module userdir_module      mod_userdir.o 
# Module proxy_module        modules/proxy/libproxy.a 
Module alias_module        mod_alias.o 
# Module rewrite_module      mod_rewrite.o 
Module access_module       mod_access.o 
Module auth_module         mod_auth.o 
# Module anon_auth_module    mod_auth_anon.o 
# Module db_auth_module      mod_auth_db.o 
# Module dbm_auth_module     mod_auth_dbm.o 
# Module msql_auth_module    mod_auth_msql.o 
# Module digest_module       mod_digest.o 
# Module cern_meta_module    mod_cern_meta.o 
# Module expires_module      mod_expires.o 
#        Module headers_module should be UNcommmented! 
 Module headers_module      mod_headers.o 
Module ssl_module apache_ssl.o 
# Module usertrack_module      mod_usertrack.o 
# Module example_module      modules/example/mod_example.o 
Module browser_module      mod_browser.o 

12)  I'm at a dead end.  There's no "apache_module.o" for me to link in.
Where does it come from?  If you noticed anything strange about the way
I compiled SSLeay or Apache, please e-mail me at the address above and
help me out.  Thanks!
+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/  |
+-------------------------------------------------------------------------+

Reply via email to