Subject: | Difficulties compiling SVMLight |
It isn't directly your issue but it is related. While compiling SVMLight
I needed to export SFLAGS=-fPIC or I received the below error message.
gcc -shared svm_learn_main.o svm_learn.o svm_common.o svm_hideo.o -o
libsvmlight.so
/usr/bin/ld: svm_learn_main.o: relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object; recompile
with -fPIC
svm_learn_main.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libsvmlight.so] Error 1
Other modules use an Alien extension which includes the full source code
(I.e. Alien::InteractiveBrokers). You could greatly simplify
installation of your module by creating an Alien::SVMLight with the
patched source code included.