编译busybox时出现"ioprio_set" undeclared等错误
> 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
$ make