the generated fips_premain_dso (as a part of openssl fips 1.2 build on powerpc ) hanging is that the generated code is always jump to the same function address :-
bash-3.00# gdb fips/fips_premain_dso (gdb) r eee Starting program: /ssl/openssl-fips-1.2/fips/fips_premain_dso eee <-- hangs here now Program received signal SIGINT, Interrupt. 0x1003e5cc in lh_new () (gdb) disassemble 0x1003e5cc <lh_new+72>: bl 0x1003e5cc <lh_new+72> it does not matter what compiler you use ? I tried 4.0 and 4.2.3 and 3.4.4 both results in similar problem.? - basit On Tue, Mar 17, 2009 at 4:58 PM, ABDUL BASIT <ba...@basit.pk> wrote: > This is coming down the specific compiler, changing compiler flags / > optimization produces different results. > > Could someone please indicate which compiler is good/tested for compiling > openssl fips 1.2 for power pc ? > gcc 3.x 4.0.x 4.1.x or 4.2.x, 4.3.x Currently I am using 4.2.3 and having > problems. > > any help in this is very much appreciated. > > best regards, > - basit > > > On Fri, Mar 13, 2009 at 2:05 AM, ABDUL BASIT <ba...@basit.pk> wrote: > >> Hello, >> >> I am compiling OpenSSL FIPS-1.2 natively on PPC, the build blocks forever >> at :- >> >> + /bin/rm -f ./libcrypto.so.0.9.8 >> + gcc /fips-lib///fipscanister.o /fips-lib/fips_premain.c -fPIC >> -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DOPENSSL_NO_ERR -DB_ENDIAN >> -DTERMIO -O3 -Wall -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_CAPIENG >> -DOPENSSL_NO_CAST -DOPENSSL_NO_CMS -DOPENSSL_NO_EC -DOPENSSL_NO_ECDH >> -DOPENSSL_NO_ECDSA -DOPENSSL_NO_ENGINE -DOPENSSL_NO_GMP -DOPENSSL_NO_IDEA >> -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MDC2 -DOPENSSL_NO_OCSP -DOPENSSL_NO_RC5 >> -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_RIPEMD -DOPENSSL_NO_SEED -DOPENSSL_NO_SSL2 >> -DOPENSSL_NO_TLSEXT -DOPENSSL_NO_UI -shared -Wl,-Bsymbolic >> -Wl,-soname=libcrypto.so.0.9.8 -o libcrypto.so.0.9.8 -Wl,--whole-archive >> libcrypto.a -Wl,--no-whole-archive -L. -ldl >> + fips/../fips/fips_premain_dso ./libcrypto.so.0.9.8 <-------------- >> BLOCKS HERE FOREVER >> >> After I ran gdb, I found that it is blocked in lh_new, here is the >> backtrace .. >> >> Current language: auto; currently asm >> (gdb) bt >> #0 0x100400dc in lh_new () >> #1 0x10039fdc in def_get_class () >> #2 0x1003a564 in int_new_ex_data () >> #3 0x1003adb8 in CRYPTO_new_ex_data () >> #4 0x100384e8 in BIO_set () >> #5 0x100385f0 in BIO_new () >> #6 0x10000bb8 in main () >> >> The same thing is happening to me if i compile 0.9.8j on the same system >> with ./config fips taking fipscanister.o from previous build of FIPS-1.2. >> >> Please help. >> >> - Basit >> >> >> >> >> >