我的程序人生

libssl.a(s2_clnt.o): relocation R_X86_64_32 against

在linux 64bit上编译curl with-ssl时出现下面的错误

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/libssl.a(s2_clnt.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status


变更方法:
env PKG_CONFIG_PATH="openssl path" ./configure --disable-file --without-pic --disable-shared --with-ssl

posted on 2010-07-27 10:20 lancey 阅读(2285) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


My Links

Blog Stats

常用链接

留言簿(2)

随笔档案

文章分类

文章档案

我的链接

搜索

最新评论

阅读排行榜

评论排行榜