Hello All, This is my first message, so I hope all goes well.
As a contractor, I'm working for a company that uses openssl quite extensively. They port it over to many different platforms. I have been given the task to update their current version (0.9.7d + OS400 mods) to 0.9.7i. We have gotten 0.9.7d+OS400 to work correctly or at least to our satisfaction. I have run into one interesting problem. For Solaris 5.8 with 64 bit compilation, the bntest always fails in test_sqr routine. Closer inspection shows that the BN_div is failing. If I comment out test_sqr, then the failure occurs in test_mul at BN_mul. The problem appears to be size based. The test runs through 5 - 9 iterations and then dies. Sometimes it just hangs. I tried using the asm routines by changing BN_ASM= asm/bn86-sol.o in Makefile.org. I looked in crypto/bn/asm to see if it was compiled but found some mysterious perl files and no bn86-sol.o file. Strangely, BN works on the other Solaris 5.8 and 5.9 systems using 32 or 64 bit compilation. BN also works on AIX, OS400, HP, and Linux in many different flavors. The following is some general information about the system and compiler. $ uname -a SunOS flare 5.8 Generic_117350-11 sun4u sparc SUNW,Ultra-60 $ gcc -v Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.4/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man -- infodir=/usr/share/info --enable-shared --enable-threads=posix -- disable-checking --with-system-zlib --enable-__cxa_atexit --disable- libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux Thread model: posix gcc version 3.4.4 20050721 (Red Hat 3.4.4-2) Compilation of bn_mul.c gcc -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS - D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 - DOPENSSL_NO_ASM -DOPENSSL_NO_HW -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 - DOPENSSL_NO_CAST -DOS_SUNOS5 -DUNIX -DPURIFY -D_REENTRANT -m64 -mv8 -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -c -o bn_mul.o bn_mul.c If you need more info, let me know. Any ideas are appreciated. Rick ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]