BTW:  This was reported earlier based on a merged copy of 0.9.7i and
0.9.7d+os400 mods.  Since then, I have performed the same test with
clean copy of 0.9.7i and got the same error.  I also tried the same test
with a clean copy of 0.9.8a and got the same error.


I am compiling openssl-0.9.7i on Solaris 5.8 using the 64 bit compiler
options (gcc 3.4.2).  Everything compiles fine, but the Big Number tests
fails for the test_sqr.  By this I mean we don't get the right answers
for specific values.  It is either a problem with BN_mul or BN_div.


This either a bug or some problem with the configuration.  Any ideas?



Rick


Configuration
=============
The following entry was added to Configure for Solaris 5.8.

"solaris64-sparcv8-gcc","gcc:-m64 -mv8 -O3 -fomit-frame-pointer -Wall -
DB_ENDIAN -DBN_DIV2W::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG
RC4_CHAR RC4_CHUNK DES_UNROLL
BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-fPIC:-shared -
m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",

The steps taken were:
$  /bin/sh ./Configure -no-asm solaris64-sparcv8-gcc
$  make
$  make test


bntest Errors
=============
test BN_sqr
print "test BN_sqr\n"
-C0C0C0C0C0 * -C0C0C0C0C0 - 9121B242D241B1209000
2000000000000 * 2000000000000 - 4000000000000000000000000
-B0000FFFFFFFFFF * -B0000FFFFFFFFFF - 7900160000FFFFE9FFFE0000000001
-2CFFFFFF777715FFFF * -2CFFFFFF777715FFFF -
7E8FFFFCFFFDDBC4877C1D976F511D40001
Square test failed!


I did try omiting the -no-asm option and setting the asm file in
Makefile.org, but the compilation breaks with the Solaris assembler
(/usr/ccs/as).  

/usr/ccs/bin/as: "/var/tmp//ccxI3OvD.s", line 147: error: detect global
register use not covered .register pseudo-op




Rick







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

Reply via email to