LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1107|回复: 5

内核编译出错

[复制链接]
发表于 2005-11-3 20:02:14 | 显示全部楼层 |阅读模式
我是新手,第一次编译内核,使用命令# make xconfig 编译内核出错,请高手指点,出错信息如下(系统为:RedHat Enterprise Linux AS 3.0原内核为2.4.21,新内核为2.6.14):
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:305:24: asm/socket.h: 没有那个文件或目录
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
 楼主| 发表于 2005-11-3 20:23:02 | 显示全部楼层
5555555555
没人理我
回复 支持 反对

使用道具 举报

发表于 2005-11-3 20:29:03 | 显示全部楼层
rm  /usr/include/asm , linux ,scsi  
ln -s /usr/src/linux asm  /usr/include/asm
.................................
回复 支持 反对

使用道具 举报

发表于 2005-11-3 20:37:39 | 显示全部楼层
Post by wxc
我是新手,第一次编译内核,使用命令# make xconfig 编译内核出错,请高手指点,出错信息如下(系统为:RedHat Enterprise Linux AS 3.0原内核为2.4.21,新内核为2.6.14):
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:305:24: asm/socket.h: 没有那个文件或目录
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


搜一下论坛吧,应该能找到的....
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-3 20:40:47 | 显示全部楼层
lbiosedit:
n -s /usr/src/linux asm /usr/include/asm
ln -s /usr/src/linux linux /usr/include/linux
ln -s /usr/src/linux scsi /usr/include/scsi
这些我都做过啦
现在作了rm /usr/include/asm , linux ,scsi后编译错误如下:
HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:130,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/limits.h: 132,
                 from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/syslimits .h:7,
                 from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/limits.h: 11,
                 from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: 没有那个文件或目录
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:305:24: asm/socket.h: 没有那个文件或目录
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:201: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:201: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:201: for each function it appears in.)
scripts/basic/fixdep.c:201: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:297: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:297: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-3 20:54:29 | 显示全部楼层
找了好多地方没找到解决办法,期待高手指点=========
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表