Busybox版本:1.16.0
Arm-linux-gcc版本:3.4.1
系统:ubuntu 10.10
编译时出现错误:
1、fatal error: curses.h: 没有这个文件或目录
原因:ubuntu系统中缺少一个套件 ncurses devel
解决方法:apt-get install libncurses5-dev
2、O_NOATIME未定义
coreutils/fsync.c: In function `fsync_main':
coreutils/fsync.c:27: error: `O_NOATIME' undeclared (first use in this function)
coreutils/fsync.c:27: error: (Each undeclared identifier is reported only once
coreutils/fsync.c:27: error: for each function it appears in.)
解决方法:make menuconfig下找到FSYNC取消选中
3、ARPHRD_INFINIBAND未定义
CC networking/interface.o
networking/interface.c:818: error: 'ARPHRD_INFINIBAND' undeclared here (not in a function)
make[1]: *** [networking/interface.o] Error 1
make: *** [networking] Error 2
原因:ARPHRD_INFINIBAND为给出确切的值
解决方法:在networking/interface.c下增加如下宏定义 #define ARPHRD_INFINIBAND 32
(解决途径为追踪内核源码,在内核源码目录下的include/linux/if_arp.h中定义了ARPHRD_INFINIBAND值为32.)