当前位置: 技术问答>linux和unix
我是新手,升级内核出错了!怎么解决啊??
来源: 互联网 发布时间:2015-07-30
本文导语: 问题如下 [root@GAO linux-2.6.8]# make menuconfig HOSTCC scripts/basic/fixdep In file included from /usr/include/bits/posix1_lim.h:126, from /usr/include/limits.h:144, from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132, from /usr/lib/gcc-lib/i...
问题如下
[root@GAO linux-2.6.8]# make menuconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from scripts/basic/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: 没有那个文件或目录
In file included from /usr/include/netinet/in.h:212,
from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: 没有那个文件或目录
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: for each function it appears in.)
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
[root@GAO linux-2.6.8]# make menuconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from scripts/basic/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: 没有那个文件或目录
In file included from /usr/include/netinet/in.h:212,
from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: 没有那个文件或目录
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: for each function it appears in.)
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
|
/usr/include/bits/local_lim.h:36:26: linux/limits.h: 没有那个文件或目录
--》 安装 rpm : glibc-kernheaders-2.4-8.10
2.4-8.10是 redhat 9上的版本
--》 安装 rpm : glibc-kernheaders-2.4-8.10
2.4-8.10是 redhat 9上的版本