I need to call libcrypto from a .so file on Solaris using gcc.
When I build 0.9.7b as shared objects with the following commands:
./config no-rc5 shared
make depend
make
I get the following errors:
+ gcc -shared -G -dy -z text -o libcrypto.so.0.9.7 -h libcrypto.so.0.9.7 -Wl,-z,
allextract libcrypto.a -Wl,-z,defaultextract -L. -lsocket -lnsl -ldl -lc
Text relocation remains referenced
against symbol offset in file
<unknown> 0x2c0 libcrypto.a(rc5_skey.o)
<unknown> 0x2c4 libcrypto.a(rc5_skey.o)
<unknown> 0x2c8 libcrypto.a(rc5_skey.o)
<unknown> 0x2cc libcrypto.a(rc5_skey.o)
<unknown> 0x2d0 libcrypto.a(rc5_skey.o)
<unknown> 0x2d4 libcrypto.a(rc5_skey.o)
<unknown> 0x2d8 libcrypto.a(rc5_skey.o)
<unknown> 0x2dc libcrypto.a(rc5_skey.o)
<unknown> 0x5e0 libcrypto.a(rc5_enc.o)
<unknown> 0x5e4 libcrypto.a(rc5_enc.o)
<unknown> 0x5e8 libcrypto.a(rc5_enc.o)
<unknown> 0x5ec libcrypto.a(rc5_enc.o)
<unknown> 0x5f0 libcrypto.a(rc5_enc.o)
<unknown> 0x5f4 libcrypto.a(rc5_enc.o)
<unknown> 0x5f8 libcrypto.a(rc5_enc.o)
<unknown> 0x5fc libcrypto.a(rc5_enc.o)
<unknown> 0x600 libcrypto.a(rc5_enc.o)
<unknown> 0x604 libcrypto.a(rc5_enc.o)
<unknown> 0x608 libcrypto.a(rc5_enc.o)
<unknown> 0x60c libcrypto.a(rc5_enc.o)
<unknown> 0x610 libcrypto.a(rc5_enc.o)
<unknown> 0x614 libcrypto.a(rc5_enc.o)
<unknown> 0x618 libcrypto.a(rc5_enc.o)
<unknown> 0x61c libcrypto.a(rc5_enc.o)
<unknown> 0x100 libcrypto.a(rc5_skey.o)
<unknown> 0x104 libcrypto.a(rc5_skey.o)
RC5_32_encrypt 0x80 libcrypto.a(rc5_ecb.o)
RC5_32_encrypt 0x10c libcrypto.a(rc5_enc.o)
RC5_32_encrypt 0x238 libcrypto.a(rc5_enc.o)
RC5_32_encrypt 0xa8 libcrypto.a(rc5cfb64.o)
RC5_32_encrypt 0x1c4 libcrypto.a(rc5cfb64.o)
RC5_32_encrypt 0xd8 libcrypto.a(rc5ofb64.o)
RC5_32_decrypt 0x90 libcrypto.a(rc5_ecb.o)
RC5_32_decrypt 0x3d8 libcrypto.a(rc5_enc.o)
RC5_32_decrypt 0x4d8 libcrypto.a(rc5_enc.o)
<unknown> 0x1a0 libcrypto.a(rc5_enc.o)
<unknown> 0x1a4 libcrypto.a(rc5_enc.o)
<unknown> 0x504 libcrypto.a(rc5_enc.o)
<unknown> 0x508 libcrypto.a(rc5_enc.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
1. Am I doing something wrong?
Alternatively, I could build libcrypto statically with the gcc option -fPIC. I am able
to build 0.9.7b statically using the following commands:
./config
make
but can't figure out a way to pass -fPIC via config (or Configure).
2. Is it possible to pass the compiler flag -fPIC to config?
Thanks.
Frank
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorized copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]