部分內容來自 http://blog.chinaunix.net/uid-23089249-id-34503.html,侵刪
1、inotifyd出錯
交叉編譯busybox-1.11.1時撞叽,出現以下錯誤:
CC miscutils/inotifyd.o
miscutils/inotifyd.c:31:27: linux/inotify.h: No such file or directory
miscutils/inotifyd.c: In function `inotifyd_main':
miscutils/inotifyd.c:61: error: `IN_ALL_EVENTS' undeclared (first use in this function)
miscutils/inotifyd.c:61: error: (Each undeclared identifier is reported only once
miscutils/inotifyd.c:61: error: for each function it appears in.)
miscutils/inotifyd.c:129: error: dereferencing pointer to incomplete type
miscutils/inotifyd.c:139: error: dereferencing pointer to incomplete type
miscutils/inotifyd.c:140: error: dereferencing pointer to incomplete type
miscutils/inotifyd.c:140: error: dereferencing pointer to incomplete type
miscutils/inotifyd.c:143: error: invalid application of `sizeof' to incomplete type `inotify_event'
miscutils/inotifyd.c:143: error: dereferencing pointer to incomplete type
make[1]: *** [miscutils/inotifyd.o] Error 1
make: *** [miscutils] Error 2
網上說這是busybox的一個bug藏杖,解決方法:去掉對inotifyed的支持啊掏,具體步驟如下:
# make menuconfig
Miscellaneous Utilities --->
[ ]inotifyd
還有另一個bug是taskset,也要將它去掉,不然編譯時又會出錯参淫。
Miscellaneous Utilities --->
[ ]taskset
2、啟動時愧杯,BusyBox提示"/bin/sh:can't access tty;job console turn off"
解決方法:
shell --->
[ ]Job Console
[*]Cttyhack
3涎才、未定義ARPHRD_INFINIBAND
錯誤信息如下:
networking/interface.c:818: error: 'ARPHRD_INFINIBAND' undeclared here (not in a function)
make[1]: *** [networking/interface.o] Error 1
make: *** [networking] Error 2
通過查看內核源代碼目錄中的“include/linux/ifarp.h”文件可知“ARPHRD_INFINIBAND”的值為“32”。然后修改“networking/interface.c”文件力九,在其中添加:
#define ARPHRD_INFINIBAND 32 /* InfiniBand */