针对本地符号的错误而重定位R_X86_64_32 [英] relocation R_X86_64_32 against a local symbol' error

查看:129
本文介绍了针对本地符号的错误而重定位R_X86_64_32的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Apache支持下安装Subversion.我使用--enable-shared标志安装了aprapr-utilsneonOpenSSL.但是,尝试安装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安装上.重新安装openssl并启用共享功能.

I figured out that the problem was with the openssl install. Reinstalling openssl with enable-shared worked.

这篇关于针对本地符号的错误而重定位R_X86_64_32的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆