源码安装svn serf_v1.2.1

Linux下编译Serf_v1.2.1源码时,提示以下错误,有知道解决方法的朋友吗,麻烦共享下,谢谢!


/svn_setup/lib/libssl.a(s23_clnt.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/svn_setup/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libserf-1.la] Error 1

 

解决方案:出现此错误是在ubuntu环境中源码编译Svn时,安装serf_1.2.1出现的,

重新编译openssl时,添加上 -fPIC,--enable-share参数即可解决上述错误

你可能感兴趣的:(工作)