I have just started to compile SNAPs on linux-ppc (and soon
linux-ppc64). Please let me know if it's not right to comment on SNAPs
(...too easily overtaken by CVS..), if so, this will be my last report
on SNAP.
Anyway here goes: SNAP-20070521 on linux-ppc using ./config settings.
[Problem 1]
USE_SSL is never defined - this leads to imit_gost_vizir undeclared problem.
gcc -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DB_ENDIAN -DTERMIO -O3 -Wall -DOPENSSL_BN_ASM_MONT
-DSHA1_ASM -DSHA256_ASM -c -o gost_pmeth.o gost_pmeth.c
gost_pmeth.c: In function `pkey_gost_mac_ctrl':
gost_pmeth.c:594: error: `imit_gost_vizir' undeclared (first use in this
function)
gost_pmeth.c:594: error: (Each undeclared identifier is reported only once
gost_pmeth.c:594: error: for each function it appears in.)
make[2]: *** [gost_pmeth.o] Error 1
Workaround: Manually declare -DUSE_SSL in Makefile CFLAG= works.
[Problem 2]
PPC assembler problem.
Using less aggressive optimization (-O2 -g instead of -O3) get
/usr/bin/perl asm/sha1-ppc.pl sha1-ppc_linux32.s
gcc -I.. -I../.. -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DB_ENDIAN -DTERMIO -O2 -g -Wall
-DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -c -o sha1-ppc_linux32.o
sha1-ppc_linux32.s
sha1-ppc_linux32.s: Assembler messages:
sha1-ppc_linux32.s:1101: Error: unaligned opcodes detected in executable
segment
make[2]: *** [sha1-ppc_linux32.o] Error 1
Workaround: declare .rodata above .byte directive?
stw 19,12(3)
mr 10,19
stw 20,16(3)
mr 11,20
addi 4,4,64
bc 17,0,.Lsha1_block_private
blr
.rodata
.byte
83,72,65,49,32,98,108,111,99,107,32,116,114,97,110,115,102,111,114,109,32,102,111,114,32,80,
80,67,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,102,121,46,99,104,97
,108,109,101,114,115,46,115,101,62,0
gcc is 3.4.6 (on RHEL4 ppc64).
Thanks
Richard
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager [EMAIL PROTECTED]