openwrt dreambox 编译出错

在尝试编译openwrt为dreambox的过程中遇到了三个问题:1) 'gets' undeclared错误,通过在stdio.in.h中删除相关行解决;2) '::close'未声明的问题,通过在elf.cpp中引入unistd.h修复;3) 971-ocf_20080917.patch应用失败,手动删除随机部分。
摘要由CSDN通过智能技术生成

1、编译环境

sudo apt-get install subversion git flex g++ gawk zlib1g-dev libncurses5-dev

2、编译出错

a. ./stdio.h:456:1: error: 'gets' undeclared here (not in a function)

   进入相应的目录执行

   sed -i -e '/gets is a security/d' ./stdio.in.h

   http://www.openwrt.org.cn/bbs/forum.php?mod=viewthread&tid=13909

b.elf.cpp:68:5: error: '::close' has not been declared

修改 ./build_dir/host/mklibs/src/mklibs-readelf/elf.cpp

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值