(I've attempted to break long lines below so mail/news readers won't.)

I'm attempting to build openssl 0.9.8d on SCO Openserver 507 w/MP5.
I've tried using both gcc 2.95.3 and the SCO native compiler. With gcc,
make fails when compiling ui_openssl.c:

gcc -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED \
-DZLIB -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -I/u/include \
-R/u/lib:/u/gnu/lib -s -O3 -fomit-frame-pointer \
-DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM \
-DMD5_ASM -DRMD160_ASM -DAES_ASM -c -o ui_openssl.o ui_openssl.c
In file included from /usr/include/posix/signal.h:35,
from /usr/include/signal.h:11,
from ui_openssl.c:126:
/usr/include/sys/signal.h:175: syntax error before `siginfo_t'
make[2]: *** [ui_openssl.o] Error 1
make[2]: Leaving directory \
`/u/home/rac/src/openssl/openssl-0.9.8/crypto/ui'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory \
`/u/home/rac/src/openssl/openssl-0.9.8/crypto'
make: *** [build_crypto] Error 1


I worked around this with this small patch to sys/signal.h:

*** signal.h.orig Sat Aug 19 12:35:57 2006
--- signal.h Fri Sep 29 11:15:33 2006
***************
*** 172,178 ****
union{
#if defined(__STDC__) && !defined(_NO_PROTOTYPE)
void (*_sa_handler)(int); /* signal handler */
! void (*_sa_sigaction)(int, siginfo_t *, void *); \
/* signal handler */
#else
void (*_sa_handler)(); /* signal handler */
void (*_sa_sigaction)(); /* signal handler */
--- 172,178 ----
union{
#if defined(__STDC__) && !defined(_NO_PROTOTYPE)
void (*_sa_handler)(int); /* signal handler */
! void (*_sa_sigaction)(); /* signal handler */
#else
void (*_sa_handler)(); /* signal handler */
void (*_sa_sigaction)(); /* signal handler */


Compile now completes but 'make test' fails here:

.../util/shlib_wrap.sh ./sha512t
make[1]: *** [test_sha] Illegal Instruction (core dumped)
make[1]: Leaving directory `/u/home/rac/src/openssl/openssl-0.9.8d/test'
make: *** [tests] Error 2

For all 0.9.8x versions I've built on OSR5 using gcc, the signal.h patch
was needed and 'make test' has bombed with a core dump at the same
point. If I remove the test for sha512t, all further tests succeed.


If I build using SCO's native compiler, the compile dies here:

cc -I. -I.. -I../include -Kpic -DOPENSSL_PIC -DZLIB_SHARED -DZLIB \
-DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -I/u/include \
-R/u/lib:/u/gnu/lib -s -belf -DOPENSSL_BN_ASM_PART_WORDS \
-DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM \
-c -o x86cpuid-elf.o x86cpuid-elf.s
UX:i386as: ERROR: x86cpuid-elf.s:144:invalid operand combination: pxor
UX:i386as: ERROR: x86cpuid-elf.s:145:invalid operand combination: pxor
UX:i386as: ERROR: x86cpuid-elf.s:146:invalid operand combination: pxor
UX:i386as: ERROR: x86cpuid-elf.s:147:invalid operand combination: pxor
UX:i386as: ERROR: x86cpuid-elf.s:148:invalid operand combination: pxor
UX:i386as: ERROR: x86cpuid-elf.s:149:invalid operand combination: pxor
UX:i386as: ERROR: x86cpuid-elf.s:150:invalid operand combination: pxor
UX:i386as: ERROR: x86cpuid-elf.s:151:invalid operand combination: pxor
UX:i386as: ERROR: x86cpuid-elf.s:225:syntax error at name: f
UX:i386as: ERROR: x86cpuid-elf.s:237:syntax error at name: f
UX:i386as: ERROR: x86cpuid-elf.s:247:syntax error at name: f
UX:i386as: ERROR: x86cpuid-elf.s:249:syntax error at integer constant: 1
make[1]: *** [x86cpuid-elf.o] Error 1
make[1]: Leaving directory `/u/home/rac/src/openssl/openssl-0.9.8d/crypto'
make: *** [build_crypto] Error 1


Has anyone successfully built openssl 0.9.8x, passing all tests, on SCO
Openserver 5? What are the ramifications of using the openssl libs even
though the sh512t test failed?

--
Roger Cornelius rac@tenzing.org
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org