Well, first some background information:

    ; uname -a
    OSF1 aries V4.0 1091 alpha

This is 4.0e, with Patchkit 1 installed, on an AlphaServer 1200 5/533.

I'm trying to compile OpenSSL, with the Digital C compiler (alpha-cc),
but I'm running into troubles. Running config resulted in the
following:

./config
   Configuring for alpha-cc

   [ output here trimmed for brevity. If it makes a difference, I
     certainly can reproduce it. ]
   IsWindows=0
   CC            =cc
   CFLAG         =-tune host -O4 -readonly_strings
   EX_LIBS       =
   BN_ASM        =asm/alpha.o
   DES_ENC       =des_enc.o fcrypt_b.o
   BF_ENC        =bf_enc.o
   CAST_ENC      =c_enc.o
   RC4_ENC       =rc4_enc.o
   RC5_ENC       =rc5_enc.o
   MD5_OBJ_ASM   =
   SHA1_OBJ_ASM  =
   RMD160_OBJ_ASM=
   SIXTY_FOUR_BIT_LONG mode


I follow that with 'make' and except for numerous warnings similar to:

    cc: Warning: str2key.c, line 163: In this statement, the referenced type of the 
pointer value "str" is "const signed char", which is not compatible with "const 
unsigned char". (ptrmismatch)
            des_cbc_cksum(str,key2,length,ks,key2);
    ----------------------^

... it appears to compile ok, right until I get the following message:

    making all in apps...
    cc -DMONOLITH -I../include -tune host -O4 -readonly_strings -c verify.c
    
    . . . [ many files compile ] . . .
    
    cc -DMONOLITH -I../include -tune host -O4 -readonly_strings -c openssl.c
    rm -f openssl
    cc -o openssl -DMONOLITH -I../include -tune host -O4 -readonly_strings openssl.o 
verify.o asn1pars.o req.o dgst.o dh.o enc.o gendh.o errstr.o ca.o  pkcs7.o crl2p7.o 
crl.o  rsa.o dsa.o dsaparam.o  x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o  
s_time.o apps.o s_cb.o s_socket.o version.o sess_id.o  ciphers.o nseq.o -L. -L.. 
-L../.. -L../../.. -L.. -lssl -L.. -lcrypto 
    ld:
    Unresolved:
    bn_div_words
    *** Exit 1
    Stop.
    *** Exit 1
    Stop.


I attempted to correct this situation by editting Makefile.ssl to use
the C version of bn_asm (I don't see bn_div_words anywhere in
crypto/bn/asm/alpha.s, so I expected that may fix this problem):

    cp -p Makefile.ssl Makefile.ssl.original
    vi    Makefile.ssl
    diff  Makefile.ssl.original Makefile.ssl
    #   49c49
    #   < BN_ASM= asm/alpha.o
    #   ---
    #   > BN_ASM= bn_asm.o

... and that _does_ compile correctly (modulo the pointer type mismatch
warnings). The problem then occurs in the 'make test' target. I append a
complete transcript below my signature to include complete details of
that.

Has anybody else seen this? Does anybody know what the problem is? Is
anybody using OpenSSL on Digital Unix v4.0e? I'm really stumped. :-(

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              [EMAIL PROTECTED]
 
Systems Manager                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------
Script started on Wed May 12 14:42:53 1999

; make rehash
Doing certs
ICE-CA.pem => 6bee6be3.0
ICE-root.pem => adbec561.0
ICE-user.pem => 3ecf89a3.0
ca-cert.pem => 1f6c59cd.0
dsa-ca.pem => 73912336.0
dsa-pca.pem => 24867d38.0
factory.pem => f3e90025.0
nortelCA.pem => 1ef89214.0
pca-cert.pem => 8caad35e.0
rsa-cca.pem => a99c5886.0
rsa-ssca.pem => f73e89fd.0
thawteCb.pem => ddc328ff.0
thawteCp.pem => c33a80d4.0
timCA.pem => 8c401b31.0
tjhCA.pem => 052eae11.0
vsign1.pem => 2edf7016.0
vsign2.pem => b5f329fa.0
vsign3.pem => 7651b327.0
vsign4.pem => 9d0c2a65.0
vsignss.pem => f73e89fd.0
vsigntca.pem => 18d46017.0

; make test
testing...
./destest
Doing cbcm
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
Doing quad_cksum
input word alignment test 0 1 2 3
output word alignment test 0 1 2 3
fast crypt test 
./ideatest
ecb idea ok
cbc idea ok
cfb64 idea ok
./shatest
test 1 ok
test 2 ok
test 3 ok
./sha1test
test 1 ok
test 2 ok
test 3 ok
./md5test
test 1 ok
test 2 ok
test 3 ok
test 4 ok
test 5 ok
test 6 ok
test 7 ok
./hmactest
test 0 ok
test 1 ok
test 2 ok
test 3 ok
./md2test
test 1 ok
test 2 ok
test 3 ok
test 4 ok
test 5 ok
test 6 ok
test 7 ok
./mdc2test
pad1 - ok
pad2 - ok
./rc2test
ecb RC2 ok
./rc4test
test 0 ok
test 1 ok
test 2 ok
test 3 ok
test 4 ok
test 5 ok
test end processing ....................done
test multi-call ....................done
./rc5test
ecb RC5 ok
cbc RC5 ok
./bftest
testing blowfish in raw ecb mode
testing blowfish in ecb mode
testing blowfish set_key
testing blowfish in cbc mode
testing blowfish in cfb64 mode
testing blowfish in ofb64
./casttest
ecb cast5 ok
This test will take some time....123456789ABCDEF ok
./randtest
test 1 done
test 2 done
test 3 done
test 4 done
cat
base64
rc4
rc4 base64
des-cfb
des-cfb base64
des-ede-cfb
des-ede-cfb base64
des-ede3-cfb
des-ede3-cfb base64
des-ofb
des-ofb base64
des-ede-ofb
des-ede-ofb base64
des-ede3-ofb
des-ede3-ofb base64
des-ecb
des-ecb base64
des-ede
des-ede base64
des-ede3
des-ede3 base64
desx
desx base64
des-cbc
des-cbc base64
des-ede-cbc
des-ede-cbc base64
des-ede3-cbc
des-ede3-cbc base64
idea-ecb
idea-ecb base64
idea-cfb
idea-cfb base64
idea-ofb
idea-ofb base64
idea-cbc
idea-cbc base64
rc2-ecb
rc2-ecb base64
rc2-cfb
rc2-cfb base64
rc2-ofb
rc2-ofb base64
rc2-cbc
rc2-cbc base64
bf-ecb
bf-ecb base64
bf-cfb
bf-cfb base64
bf-ofb
bf-ofb base64
bf-cbc
bf-cbc base64
rc4
rc4 base64
cast5-ecb
cast5-ecb base64
cast5-cfb
cast5-cfb base64
cast5-ofb
cast5-ofb base64
cast5-cbc
cast5-cbc base64
echo test normal x509v1 certificate
test normal x509v1 certificate
sh ./tx509 2>/dev/null
testing X509 conversions
p -> d
p -> n
p -> p
d -> d
n -> d
p -> d
d -> n
n -> n
p -> n
d -> p
n -> p
p -> p
echo test first x509v3 certificate
test first x509v3 certificate
sh ./tx509 v3-cert1.pem 2>/dev/null
testing X509 conversions
p -> d
p -> n
p -> p
d -> d
n -> d
p -> d
d -> n
n -> n
p -> n
d -> p
n -> p
p -> p
echo test second x509v3 certificate
test second x509v3 certificate
sh ./tx509 v3-cert2.pem 2>/dev/null
testing X509 conversions
p -> d
p -> n
p -> p
d -> d
n -> d
p -> d
d -> n
n -> n
p -> n
d -> p
n -> p
p -> p
testing rsa conversions
p -> d
p -> p
d -> d
p -> d
d -> p
p -> p
./rsa_oaep_test
Encryption failed!
Encryption failed!
Encryption failed!
*** Exit 1
Stop.
*** Exit 1
Stop.

; exit
script done on Wed May 12 14:43:32 1999

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

Reply via email to