Hi All,
I have a Solaris 2.5.1 x86 system and openssl 0.9.7e and I
want to build it with shared libraries, so I tried the following
with the openssl-0.9.7-stable-SNAP-20050109:
./Configure solaris-x86-gcc zlib shared no-asm
and part way into the compilation it aborts with the following:
+ gcc -shared -G -dy -z text -o libcrypto.so.0.9.7 -h
libcrypto.so.0.9.7 -Wl,-Bsymbolic -Wl,-z,allextract
libcrypto.a -Wl,-z,defaultextract -L. -lsocket -lnsl -ldl -lc
Undefined first referenced
symbol in file
__umoddi3 libcrypto.a(bn_word.o)
__udivdi3 libcrypto.a(b_print.o)
ld: warning: Symbol referencing errors
Text relocation remains referenced
against symbol offset in file
<unknown> 0x154 libcrypto.a(ocsp_prn.o)
<unknown> 0x15c libcrypto.a(ocsp_prn.o)
<unknown> 0x164 libcrypto.a(ocsp_prn.o)
<unknown> 0x16c libcrypto.a(ocsp_prn.o)
<unknown> 0x174 libcrypto.a(ocsp_prn.o)
<unknown> 0x184 libcrypto.a(ocsp_prn.o)
<unknown> 0x18c libcrypto.a(ocsp_prn.o)
<unknown> 0x17c libcrypto.a(ocsp_prn.o)
ld: fatal: relocations remain against allocatable but non-writable sections
*** Error code 1
make: Fatal error: Command failed for target `do_solaris-shared'
Current working directory
/usr/home/downloads/temp/openssl-0.9.7-stable-SNAP-20050109
*** Error code 1
make: Fatal error: Command failed for target `libcrypto.so.0.9.7'
Current working directory
/usr/home/downloads/temp/openssl-0.9.7-stable-SNAP-20050109
*** Error code 1
make: Fatal error: Command failed for target `shared'
Current working directory
/usr/home/downloads/temp/openssl-0.9.7-stable-SNAP-20050109/fips
*** Error code 1
make: Fatal error: Command failed for target `sub_all'
#
Any suggestions? The static build works fine. This is with gcc 2.7.2
Also, note that if I do this:
./Configure solaris-x86-gcc zlib shared no-asm -lgcc
then the
symbol in file
__umoddi3 libcrypto.a(bn_word.o)
__udivdi3 libcrypto.a(b_print.o)
problem goes away, however the rest of them are still there.
Ted
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]