imx6ull 根文件系统编译报错libfakeroot.c:99:40: error: ‘_STAT_VER 问题解决

报错信息

libfakeroot.c: In function ‘chown’:

libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)

   99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)

原因

由于fakeroot别人修复了一个bug,把_STATA_VER删掉了,重新打上最新的补丁即可。

步骤

1. 下载最新补丁

访问这个链接
下载下图buildroot,(提供懒人下载链接
在这里插入图片描述

2. 解压进入后 /package/fakeroot/下,win可以在解压完后的目录下直接搜索fakeroot

3. 备份原来补丁,并替换成现在的,原来补丁目录

you_buildroot/package/fakeroot/

you_buildroot为自己所需要编译的buildroot所在文件夹,根据自己的情况

替换掉后如下文件

$ pwd
/home/hik/imx6ull/100ask_imx6ull_mini-sdk/Buildroot_2020.02.x/package/fakeroot
hik:fakeroot -> 
$ tree -L 1
.
├── 0001-skip-doc-subdirs.patch
├── 0002-libfakeroot.c-define-_STAT_VER-if-not-already-define.patch
├── 0003-libfakeroot.c-add-wrappers-for-new-glibc-2.33-symbol.patch
├── 0004-configure.ac-fix-__xmknod-at-pointer-argument.patch
├── fakeroot.hash
└── fakeroot.mk

参考链接

  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
全志R16平台编译linux系统V1.0.txt 2017/4/11 13:36 (编译请使用编译android的lichee的选项编译生成的.config文件,不然直接编译报错!!!!) rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ tar zxvf lichee_parrotv1.1_20161202.tar.gz rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ cd lichee/ rootroot@cm-System-Product-Name:/home/wwt/linux_r16/lichee$ ./build.sh config Welcome to mkscript setup progress All available chips: 0. sun8iw5p1 Choice: 0 All available platforms: 0. android 1. dragonboard 2. linux 3. tina Choice: 2 All available kernel: 0. linux-3.4 Choice: 0 All available boards: 0. bell-one 1. evb 2. evb-20 3. evb-30 4. evb-rtl8723bs 5. sc3813r Choice: 3 rootroot@cm-System-Product-Name:/home/wwt/linux_r16/lichee$ ./build.sh 错误1: KCONFIG_AUTOCONFIG=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/tristate.config BUILDROOT_CONFIG=/home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/.config /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/conf --silentoldconfig Config.in # # make dependencies written to .auto.deps # ATTENTION buildroot devels! # See top of this file before playing with this auto-preprequisites! # make[1]:正在离开目录 `/home/wwt/linux_r16/lichee/buildroot' You must install 'makeinfo' on your build machine makeinfo is usually part of the texinfo package in your distribution make: *** [dependencies] 错误 1 make:离开目录“/home/wwt/linux_r16/lichee/buildrootERROR: build buildroot Failed rootroot@cm-System-Product-Name:/home/wwt/linux_r16/lichee$ d/buildroot-config/conf.o /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/zconf.tab.o -o /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buil
错误信息 "./imx283_test: error while loading shared libraries: libtiff.so.6: cannot open shared object file: No such file or directory" 表明在执行"./imx283_test"时,系统无法找到名为"libtiff.so.6"的共享库文件。 为了解决这个问题,您可以尝试以下几个步骤: 1. 确认共享库文件是否存在:可以使用命令"ls /path/to/libtiff.so.6"来检查"/path/to/libtiff.so.6"是否存在。如果文件不存在,则需要安装或重新编译相应的库文件。 2. 添加共享库文件路径:如果共享库文件存在于非标准的库文件路径中,您需要将该路径添加到系统的共享库文件搜索路径中。可以通过设置LD_LIBRARY_PATH环境变量来实现。例如,使用命令"export LD_LIBRARY_PATH=/path/to/library"将路径"/path/to/library"添加到库文件搜索路径中。 3. 更新共享库缓存:在某些情况下,系统可能需要更新共享库缓存以使新安装的库文件可用。您可以使用"sudo ldconfig"命令来更新共享库缓存。 请注意,具体的解决方法可能会因系统配置和软件环境的不同而有所差异。建议您据实际情况选择适合的解决方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [STM32MP157移植Qt5.12.10](https://blog.csdn.net/zzssdd2/article/details/123310117)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [tslib1.4移植,Qt4.8.7移植arm,qt5.7.0移植arm](https://blog.csdn.net/qq1113231395/article/details/84392552)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值