NUC980开源项目24-Please port gnulib freadahead.c to your platform!

上面是我的微信和QQ群,欢迎新朋友的加入。

项目码云地址(国内下载速度快):https://gitee.com/jun626/nuc980-open-source-project

项目github地址:https://github.com/Jun1172/nuc980-open-source-project

ubuntu镜像,文件太大,加群私聊。

问题来源于编译buildroot的时候

/usr/bin/gcc  -I.   -I/home/jun/nuc980/nuc980bsp/buildroot/output/host/usr/include  -O2 -I/home/jun/nuc980/nuc980bsp/buildroot/output/host/usr/include -c -o freadahead.o freadahead.c
freadahead.c: In function 'freadahead':
freadahead.c:91:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
   91 |  #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
      |   ^~~~~
make[4]: *** [Makefile:1842: freadahead.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/jun/nuc980/nuc980bsp/buildroot/output/build/host-m4-1.4.17/lib'
make[3]: *** [Makefile:1602: all] Error 2
make[3]: Leaving directory '/home/jun/nuc980/nuc980bsp/buildroot/output/build/host-m4-1.4.17/lib'
make[2]: *** [Makefile:1506: all-recursive] Error 1
make[2]: Leaving directory '/home/jun/nuc980/nuc980bsp/buildroot/output/build/host-m4-1.4.17'
make[1]: *** [Makefile:1461:all] 错误 2
make[1]: 离开目录“/home/jun/nuc980/nuc980bsp/buildroot/output/build/host-m4-1.4.17”
make: *** [package/pkg-generic.mk:219:/home/jun/nuc980/nuc980bsp/buildroot/output/build/host-m4-1.4.17/.stamp_built] 错误 2

具体报错如上

解决:

进入对应文件夹

sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h

问题解决,继续正常编译

  • 26
    点赞
  • 50
    收藏
    觉得还不错? 一键收藏
  • 10
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值