编译linux内核遇到的错误 记录

Actual Results:
HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function ‘get_src_version’:
scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared (first use in
this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported
only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable ‘filelist’
make[3]: *** [scripts/mod/sumversion.o] Error 1
make[2]: *** [scripts/mod] Error 2
make[1]: *** [scripts] Error 2
make[1]: Leaving directory `/home/david/Download/uClinux-dist/linux-2.6.x'
make: *** [linux] Error 1

Expected Results:
compile the xen kernel
 
解决办法,添加头文件
linux-2.6.x/scripts/mod/sumversion.c
添加#include <limits.h>

你可能感兴趣的:(linux,kernel,内核,编译,休闲)