libgsm.a relocation R_X86_64_PC32 can not be used when making a shared object; recompile with -fPIC

简介: libgsm.a relocation R_X86_64_PC32 can not be used when making a shared object; recompile with -fPIC

错误如下:

/usr/bin/ld: /home/quantum6/telecom/build_libs/lib/libgsm.a(long_term.o): relocation R_X86_64_PC32 against symbol `gsm_DLB' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/quantum6/telecom/build_libs/lib/libgsm.a(rpe.o): relocation R_X86_64_PC32 against symbol `gsm_FAC' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status

解决办法,修改Makefile。参考

https://blog.csdn.net/quantum7/article/details/104087285

目录
相关文章
libfreetype.so.6: cannot open shared object file: No such file or directory
libfreetype.so.6: cannot open shared object file: No such file or directory
535 0
|
机器学习/深度学习 Linux
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
227 0
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
|
7月前
|
关系型数据库 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
357 0
|
4月前
|
应用服务中间件 Shell 网络安全
nginx安装提示 libssl.so.3: cannot open shared object file: No
【8月更文挑战第1天】### 原因 未将安装的ssl中的`libssl.so.3`链接到`/usr/lib`导致缺失。 ### 解决方案 1. 检查openssl是否已安装,若为低版本则需重装。 ```sh whereis openssl
2205 6
|
4月前
|
Ubuntu
Ubuntu22.04,AOSP编译报错: libncurses.so.5: cannot open shared object file: No such file
本文描述了在Ubuntu 22.04系统上编译AOSP时遇到的`libncurses.so.5`缺失错误,并提供了通过安装相应库解决该问题的步骤。
502 0
|
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
445 2
|
7月前
|
缓存 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 问题如何处理
976 0
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
288 33
|
7月前
|
Java
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
90 0