I am trying to build a cryptopp.so shared library on Solaris using
GCC. I get "Text relocation remains" errors during the linking.

The stats are:
uname -a
SunOS * 5.8 * sun4u sparc SUNW,Ultra-5_10

gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.0/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/
ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.4.0

The cpp files are compiled as
g++ -O3 -DNDEBUG -pipe -DCRYPTOPP_EXPORTS -c *.cpp -o *.export.o

(I filtered out dll.cpp)

The .so file is being linked as
g++ -shared -o cryptopp.so -O3 -DNDEBUG -pipe algebra.export.o
algparam.export.o asn.export.o basecode.export.o cbcmac.export.o
channels.export.o cryptlib.export.o des.export.o dessp.export.o
dh.export.o dsa.export.o ec2n.export.o eccrypto.export.o ecp.export.o
emsa2.export.o eprecomp.export.o files.export.o filters.export.o
fips140.export.o fipstest.export.o gf2n.export.o gfpcrypt.export.o
hex.export.o hmac.export.o integer.export.o iterhash.export.o
misc.export.o modes.export.o modexppc.export.o mqueue.export.o
nbtheory.export.o oaep.export.o osrng.export.o pch.export.o
pkcspad.export.o pssr.export.o pubkey.export.o queue.export.o
randpool.export.o rdtables.export.o rijndael.export.o rng.export.o
rsa.export.o sha.export.o simple.export.o skipjack.export.o
strciphr.export.o trdlocal.export.o  -lnsl -lsocket

Then I get thousands of:
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x82c       basecode.export.o
<unknown>                           0x830       basecode.export.o
<unknown>                           0x834       basecode.export.o
<unknown>                           0x838       basecode.export.o
<unknown>                           0x83c       basecode.export.o
...

Any help on building a cryptopp.so on Solaris would be great.
Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to