针对本地符号错误的重定位 R_X86_64_32 [英] relocation R_X86_64_32 against a local symbol' error
问题描述
我正在尝试安装支持 Apache 的 Subversion.我使用 --enable-shared 安装了
apr
、apr-utils
、neon
和 OpenSSL
标志.但是,在尝试安装 subversion 时出现以下错误:
I am trying to install Subversion with Apache support. I installed apr
, apr-utils
, neon
, and OpenSSL
with the --enable-shared
flag. However, I get the following error when trying to install subversion:
/usr/bin/ld: /usr0/software/openssl/ossl/lib/libssl.a(s23_clnt.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr0/software/openssl/ossl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libserf-0.la] Error 1
make[1]: Leaving directory `/usr0/sources/svn/subversion-1.6.3/serf'
make: *** [external-all] Error 1
在 Subversion 常见问题解答中指出,如果我收到此错误,我应该使用 --enable-shared
标志并且它应该可以工作.然而,这无济于事.关于如何解决这个问题的任何想法?
On the Subversion FAQ it is stated that if I get this error, I should use the --enable-shared
flag and it should work. However, that doesn't help. Any ideas on how to get around this?
推荐答案
我发现问题出在 openssl 安装上.使用 enable-shared 重新安装 openssl.
I figured out that the problem was with the openssl install. Reinstalling openssl with enable-shared worked.
这篇关于针对本地符号错误的重定位 R_X86_64_32的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!