FellowTraveler / Open-Transactions-old

Open-Transactions democratizes financial and monetary actions. You can use it for issuing currencies/stock, paying dividends, creating asset accounts, sending/receiving digital cash, writing/depositing cheques, cashier's cheques, creating basket currencies, trading on markets, scripting custom agreements, recurring payments, escrow, etc. Open-Transactions uses strong crypto. The balances are unchangeable (even by a malicious server.) The receipt history is destructible. The transactions are unforgeable. The cash is unlinkable. The cheques are non-repudiable. Etc.
http://opentransactions.org
408 stars 84 forks source link

compilation problem on Ubuntu x64 #38

Closed BlueMeanie closed 13 years ago

BlueMeanie commented 13 years ago

get this when I compile java api ( make java ):

/usr/bin/ld: ../xmlrpcpp//libXmlRpc.a(XmlRpcClient.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC

BlueMeanie commented 13 years ago

do I have to recompile the 'rpc' target with this switch?

BlueMeanie commented 13 years ago

relevant thread, although it's about Python.

http://leenissen.dk/fann/forum/viewtopic.php?f=1&t=478

seems to suggest that all the files need to be recompiled with this switch. Any pointers before I jump in?

BlueMeanie commented 13 years ago

apparently the problem is the openssl files need to be compiled with fPIC...

g++ OpenTransactions.o OTServerConnection.o OTClient.o OTAPI.o ./SSL-Example/SFSocket.o OTAPI_java.o -L/usr/local/ssl/lib64 -L../xmlrpcpp/ -L../OTLib -shared -lXmlRpc -lssl -lcrypto -lOTLib -lssl -lcrypto -lOTLib -lssl -lcrypto -lOTLib -lssl -lcrypto -lOTLib -o libotapi.so
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libssl.a(s3_meth.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libssl.a: could not read symbols: Bad value

BlueMeanie commented 13 years ago

http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3

link on fPIC.