您尚未登录。

楼主 # 2022-03-01 17:23:54

spring
会员
注册时间: 2021-11-27
已发帖子: 16
积分: 11

荔枝派nano 跟文件编译问题

freadahead.c: In function 'freadahead':
fseeko.c: In function 'rpl_fseeko':
freadahead.c:92: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."
   92 |  #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."
      |   ^~~~~
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
  110 |   #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
      |    ^~~~~
make[5]: *** [Makefile:1915: freadahead.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [Makefile:1915: fseeko.o] Error 1
make[4]: *** [Makefile:1674: all] Error 2
make[3]: *** [Makefile:1572: all-recursive] Error 1
make[2]: *** [Makefile:1528:all] 错误 2
make[1]: *** [package/pkg-generic.mk:230:/home/spring/linux/linux_test/buildroot-2017.08/output/build/host-m4-1.4.18/.stamp_built] 错误 2
make: *** [Makefile:79:_all] 错误 2


荔枝派nano根文件系统报如上错误,请问如何解决!

最近编辑记录 spring (2022-03-01 17:24:53)

离线

#1 2022-03-01 17:26:21

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 荔枝派nano 跟文件编译问题

http://blog.chinaunix.net/uid-20680966-id-5833778.html

1.
问题:
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[7]: *** [Makefile:1837: freadahead.o] Error 1
make[7]: Leaving directory '/opt/p2/openwrt/build_dir/host/m4-1.4.17/lib'



解决:
cd /opt/p2/openwrt/build_dir/host/m4-1.4.17/
sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h





离线

楼主 #2 2022-03-02 08:55:38

spring
会员
注册时间: 2021-11-27
已发帖子: 16
积分: 11

Re: 荔枝派nano 跟文件编译问题

@哇酷小二

他这个是openwrt系统,ubuntu下没有他列的文件夹

离线

#3 2022-03-02 09:34:05

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 荔枝派nano 跟文件编译问题

提示很明显了,这不都正在编译 m4挂了嘛。





离线

楼主 #4 2022-03-02 10:54:48

spring
会员
注册时间: 2021-11-27
已发帖子: 16
积分: 11

Re: 荔枝派nano 跟文件编译问题

哇酷小二 说:

提示很明显了,这不都正在编译 m4挂了嘛。

哦,看到了

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn