libgio-2.0.so: undefined reference to `fcntl64@GLIBC_2.28'
时间: 2023-10-21 17:52:32 浏览: 363
香橙派(orangepi)的GPIO接口wiringOP_zero
5星 · 资源好评率100%
回答: 这个错误是由于在链接过程中找不到`fcntl64@GLIBC_2.28`的定义所引起的。\[1\]解决这个问题的方法是找到`xxxxxlibc.so`的源码,在本地进行编译,然后将编译出来的动态库替换掉原来的库,再重新执行编译命令。这样就可以解决`libgio-2.0.so: undefined reference to `fcntl64@GLIBC_2.28'`的问题。\[2\]如果你需要构建交叉编译器,你可以下载相应的软件进行构建。\[3\]
#### 引用[.reference_title]
- *1* [安装fastdfs出现/usr/local/lib/libfastcommon.so: undefined reference to `fcntl64@GLIBC_2.28](https://blog.csdn.net/appleyuchi/article/details/105103652)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [对‘fcntl@GLIBC_2.28‘未定义的引用](https://blog.csdn.net/weixin_43793181/article/details/120502748)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [libwiringPi.so:undefined reference to ‘fcntl@GLIBC_2.28](https://blog.csdn.net/tao970608/article/details/119824713)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文