Chinaunix首页 | 论坛 | 博客
  • 博客访问: 233560
  • 博文数量: 80
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 781
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-08 10:41
个人简介

爱莉清

文章分类

全部博文(80)

文章存档

2018年(1)

2017年(18)

2016年(49)

2015年(7)

2014年(5)

我的朋友

分类: 嵌入式

2015-03-06 20:53:36

编译busybox 出错
2015-03-06 20:50
$ make meuncnfig

> miscutils/ionice.c: In function 'ioprio_set': > miscutils/ionice.c:16: error: 'SYS_ioprio_set' undeclared (first use in > this function) > miscutils/ionice.c:16: error: (Each undeclared identifier is reported > only once > miscutils/ionice.c:16: error: for each function it appears in.) > miscutils/ionice.c: In function 'ioprio_get': > miscutils/ionice.c:21: error: 'SYS_ioprio_get' undeclared (first use in > this function) > make[1]: *** [miscutils/ionice.o] Error 1 > make: *** [miscutils] Error 2 
***********************************************************************************************
解决方法:

$ make meuncnfig

> miscutils/ionice.c: In function 'ioprio_set': > miscutils/ionice.c:16: error: 'SYS_ioprio_set' undeclared (first use in > this function) > miscutils/ionice.c:16: error: (Each undeclared identifier is reported > only once > miscutils/ionice.c:16: error: for each function it appears in.) > miscutils/ionice.c: In function 'ioprio_get': > miscutils/ionice.c:21: error: 'SYS_ioprio_get' undeclared (first use in > this function) > make[1]: *** [miscutils/ionice.o] Error 1 > make: *** [miscutils] Error 2 
***********************************************************************************************
解决方法:
将在busybox应用里关闭 ionice 选项。
$  make meunconfig
选择下面的菜单:
Miscellaneous Utilities  --->    
[ * ] ionice                                    
按空格去掉这个选项。改成下面这样。
[ ] ionice         
然后按 Y 保存退出。

$  make
$  make install


编译出错2
miscutils/nandwrite.c:53:26: mtd/mtd-user.h: No such file or directory
miscutils/nandwrite.c:69: warning: "struct mtd_info_user" declared inside parameter list
miscutils/nandwrite.c:69: warning: its scope is only this definition or declaration, which is probably not what you want
miscutils/nandwrite.c: In function `dump_bad':
miscutils/nandwrite.c:71: error: dereferencing pointer to incomplete type
miscutils/nandwrite.c:75: error: dereferencing pointer to incomplete type
miscutils/nandwrite.c:78: error: dereferencing pointer to incomplete type
miscutils/nandwrite.c:79: error: dereferencing pointer to incomplete type
miscutils/nandwrite.c:81: error: dereferencing pointer to incomplete type
miscutils/nandwrite.c:71: warning: unused variable `buf'
miscutils/nandwrite.c: At top level:
miscutils/nandwrite.c:86: warning: "struct mtd_info_user" declared inside parameter list
miscutils/nandwrite.c: In function `next_good_eraseblock':
miscutils/nandwrite.c:91: error: dereferencing pointer to incomplete type
miscutils/nandwrite.c:97: error: `MEMGETBADBLOCK' undeclared (first use in this function)
miscutils/nandwrite.c:97: error: (Each undeclared identifier is reported only once
miscutils/nandwrite.c:97: error: for each function it appears in.)
miscutils/nandwrite.c:102: error: dereferencing pointer to incomplete type
miscutils/nandwrite.c: In function `nandwrite_main':
miscutils/nandwrite.c:117: error: storage size of 'meminfo' isn't known
miscutils/nandwrite.c:118: error: storage size of 'oob' isn't known
miscutils/nandwrite.c:145: error: `MEMGETINFO' undeclared (first use in this function)
miscutils/nandwrite.c:252: error: `MEMREADOOB' undeclared (first use in this function)
miscutils/nandwrite.c:117: warning: unused variable `meminfo'
miscutils/nandwrite.c:118: warning: unused variable `oob'
make[1]: *** [miscutils/nandwrite.o] Error 1
make: *** [miscutils] Error 2

问题原因:
缺少ubi-user.h这个头文件


解决方法:
用linux-2.6.29内核源码中的/include/mtd/ubi-user.h 拷贝到
busybox源码 busybox-1.20.2/include/mtd/此目录下即可。


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