Hi,

openssl version: 0.9.8e  (and d)
o/s:  Solaris 10 or 8  on sparc
gcc: 4.1.1   

On Solaris 10 (or 8)  when I compile openssl for 64 bit with shared (and
static-libgcc) the make test fails.

make[2]: Leaving directory `/tmp/build_openssl2425/openssl-0.9.8e'
../util/shlib_wrap.sh ./destest
make[1]: *** [test_des] Segmentation Fault (core dumped)
make[1]: Leaving directory `/tmp/build_openssl2425/openssl-0.9.8e/test'
make: *** [tests] Error 2


This is confirmed later when I execute the openssl speed command. 
...
Doing des cbc for 3s on 16 size blocks: Segmentation Fault (core dumped)
….

Other commands eg. s_client work.  The "make test" works without hiccup for
all other cases 32-bit or 64-bit without the shared flag and for Linux (32
or 64). 

So the problem is limited to DES for only "shared" and Solaris 64-bit..

Did anyone experienced the same ? 
Any CFLAGS/LDFLAGS/configuration suggestions or what to look for?

Many many thanks, Fred

detail:

Operating system: sun4u-whatever-solaris2
WARNING! If you wish to build 32-bit library, then you have to
         invoke './Configure solaris-sparcv9-gcc' *manually*.
Configuring for solaris64-sparcv9-gcc
Configuring for solaris64-sparcv9-gcc
    no-camellia     [default]  OPENSSL_NO_CAMELLIA (skip dir)
    no-gmp          [default]  OPENSSL_NO_GMP (skip dir)
    no-krb5         [krb5-flavor not specified] OPENSSL_NO_KRB5
    no-mdc2         [default]  OPENSSL_NO_MDC2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-rfc3779      [default]  OPENSSL_NO_RFC3779 (skip dir)
    no-zlib         [default] 
    no-zlib-dynamic [default] 
IsMK1MF=0
CC            =gcc
CFLAG         =-fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -static-libgcc -m64 -mcpu=ultrasparc -O3 -Wall
-DB_ENDIAN -DMD5_ASM
EX_LIBS       =-lsocket -lnsl -ldl
CPUID_OBJ     =
BN_ASM        =bn_asm.o
DES_ENC       =des_enc-sparc.o fcrypt_b.o
AES_ASM_OBJ   =aes_core.o aes_cbc.o
BF_ENC        =bf_enc.o
CAST_ENC      =c_enc.o
RC4_ENC       =rc4_enc.o
RC5_ENC       =rc5_enc.o
MD5_OBJ_ASM   =md5-sparcv9.o
SHA1_OBJ_ASM  =
RMD160_OBJ_ASM=
PROCESSOR     =
RANLIB        =/usr/ccs/bin/ranlib
ARFLAGS       =
PERL          =/usr/perl5.8.8/bin/perl
SIXTY_FOUR_BIT_LONG mode
DES_PTR used
DES_RISC1 used
DES_UNROLL used
DES_INT used
RC4 uses uchar
RC4_CHUNK is unsigned long
BF_PTR used
e_os2.h => include/openssl/e_os2.h
-- 
View this message in context: 
http://www.nabble.com/make-test-core-dumps-when-compiling-shared-and-on-64-bit-tf3693912.html#a10329260
Sent from the OpenSSL - User mailing list archive at Nabble.com.

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

Reply via email to