Closed BlueMeanie closed 13 years ago
do I have to recompile the 'rpc' target with this switch?
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?
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
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