>>>Anything I should try? >> >>INSTALL is specfic about this. "Try removing any compiler optimization >>flags..." This very issue was discussed couple of times already (google >>for error message) in Solaris context. The error is believed to be a GCC >>64-bit specific bug and nobody managed to prove otherwise so far. A. > > > OK, thanks. > > If I compile the two .c/.o files in crypto/ripemd/ without optimization, > the ./rmdtest passes without a hitch. > > OSSL_LIBPATH="`cd ..; pwd`"; > LD_LIBRARY_PATH="$OSSL_LIBPATH:$LD_LIBRARY_PATH"; > DYLD_LIBRARY_PATH="$OSSL_LIBPATH:$DYLD_LIBRARY_PATH"; > SHLIB_PATH="$OSSL_LIBPATH:$SHLIB_PATH"; LIBPATH="$OSSL_LIBPATH:$LIBPATH"; > if [ "NetBSD-sparc" = "Cygwin" ]; then PATH="${LIBPATH}:$PATH"; fi; export > LD_LIBRARY_PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH PATH; ./rmdtest > test 1 ok > test 2 ok > test 3 ok > test 4 ok > test 5 ok > test 6 ok > test 7 ok > test 8 ok > > > So indeed, this seems to be a gcc (3.3.3) optimization error. Is there > a way to make OpenSSL auto-disable "-O3" for specific crypto/... modules > if its known that they fail on specific platforms?
No. BTW, if it enough to drop to -O2 or do you have to -O0? Can you test if './config -DMD32_REG_T=int' does the trick? > If yes, the NetBSD > pkgsrc module could just enable this... > > PS: sorry that I forgot "make report" last time, here it is: > > > OpenSSL self-test report: > > OpenSSL version: 0.9.7e > Last change: Avoid a race condition when CRLs are checked in a multi... > Options: no-asm no-krb5 > OS (uname): NetBSD kirk 2.0 NetBSD 2.0 (KIRK) #2: Tue Jan 11 20:49:13 > CET 2005 [EMAIL > PROTECTED]:/home/sparc64/obj/home/src-2.0/sys/arch/sparc64/compile/KIRK > sparc64 > OS (config): sparc64-whatever-netbsd > Target (default): NetBSD-sparc > Target: NetBSD-sparc Just NetBSD-sparc? When gcc spits out 64-bit objects? You're more than likely to suffer from http://www.openssl.org/support/faq.html#BUILD11. NetBSD should have contributed NetBSD-sparc64 target with appropriate flags... A. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]