relocation R_X86_64_PC32 against symbol can not be used when making a shared object recompile with

简介: relocation R_X86_64_PC32 against symbol can not be used when making a shared object recompile with

错误:

/usr/bin/ld: /usr/local/lib/libavcodec.a(vc1dsp_mmx.o): relocation R_X86_64_PC32 against symbol `ff_pw_9' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

网上所有教程,都说加-fPIC。大多情况下有用,个别情况下没用。比如编译FFmpeg。这个时候,你需要如下操作:


export ECFLAG="-fPIC"
./configure \
--extra-cflags="-fPIC " \
目录
相关文章
|
5月前
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
190 0
|
2月前
|
应用服务中间件 Shell 网络安全
nginx安装提示 libssl.so.3: cannot open shared object file: No
【8月更文挑战第1天】### 原因 未将安装的ssl中的`libssl.so.3`链接到`/usr/lib`导致缺失。 ### 解决方案 1. 检查openssl是否已安装,若为低版本则需重装。 ```sh whereis openssl
642 6
|
2月前
|
Ubuntu
Ubuntu22.04,AOSP编译报错: libncurses.so.5: cannot open shared object file: No such file
本文描述了在Ubuntu 22.04系统上编译AOSP时遇到的`libncurses.so.5`缺失错误,并提供了通过安装相应库解决该问题的步骤。
150 0
|
3月前
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
135 2
|
5月前
|
缓存 Ubuntu Linux
error while loading shared libraries: libxcb-icccm.so.4: cannot open shared object file: No such file or directory 问题如何处理
【5月更文挑战第16天】error while loading shared libraries: libxcb-icccm.so.4: cannot open shared object file: No such file or directory 问题如何处理
498 0
|
5月前
|
Java
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
65 0
|
5月前
|
Java
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
50 0
|
5月前
|
JavaScript 前端开发
ES6:什么是Symbol?
ES6:什么是Symbol?
61 1
|
5月前
ES6之Symbol
ES6之Symbol
|
5月前
|
JavaScript 前端开发