Chinaunix首页 | 论坛 | 博客
  • 博客访问: 128390
  • 博文数量: 42
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 131
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-27 22:06
文章分类

全部博文(42)

文章存档

2017年(42)

我的朋友

分类: 嵌入式

2017-06-18 18:47:15

原文地址:编译busybox 出错 作者:bellsleep

1.miscutils/ionice.c:16: error: 'SYS_ioprio_set' undeclared (first use in> this function)
解决方法:
在busybox应用里关闭 ionice 选项
$  make meunconfig 
选择下面的菜单:
Miscellaneous Utilities  --->    
 [ * ] ionice
按空格去掉这个选项

2.
miscutils/ubi_tools.c:63:26: mtd/ubi-user.h: No such file or directory
miscutils/ubi_tools.c: In function `ubi_tools_main':
miscutils/ubi_tools.c:133: error: `UBI_DEV_NUM_AUTO' undeclared (first use in this function)
解决办法:
在include下新建mtd目录,并从别处拷贝文件ubi-user.h(我是从uboot拷贝的,也能用u-boot/include/mtd/ubi-user.h)到该目录下,这个文件自己找吧,上传不上来

3.
networking/interface.c:806: error: `ARPHRD_INFINIBAND' undeclared here (not in a function)
networking/interface.c:806: error: initializer element is not constant
networking/interface.c:806: error: (near initialization for `ib_hwtype.type')
在文件interface.c中加入如下语句
#define ARPHRD_INFINIBAND 32            /* InfiniBand                   */
这个是从文件include/linux/if_arp.h中得到

4.
networking/udhcp/dhcpc.c: In function `udhcp_raw_socket':
networking/udhcp/dhcpc.c:821: error: elements of array `filter_instr' have incomplete type
把network下面不要的一堆东西干掉吧

5.
/opt/arm/3.4.1/bin/../lib/gcc/arm-linux/3.4.1/../../../../arm-linux/sys-include/linux/percpu.h:45: error: `GFP_KERNEL' undeclared (first use in this function)
/opt/arm/3.4.1/bin/../lib/gcc/arm-linux/3.4.1/../../../../arm-linux/sys-include/linux/percpu.h:45: error: (Each undeclared identifier is reported only once
/opt/arm/3.4.1/bin/../lib/gcc/arm-linux/3.4.1/../../../../arm-linux/sys-include/linux/percpu.h:45: error: for each function it appears in.)
In file included from /opt/arm/3.4.1/bin/../lib/gcc/arm-linux/3.4.1/../../../../arm-linux/sys-include/linux/ext2_fs.h:20,
去掉
Linux System Utilities  --->
[ ] mkfs_ext2   
[ ] mkfs_vfat

阅读(1307) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~