1.2pre5编译不了内核,为什么?
# make xconfigmake: `scripts/fixdep' is up to date.
HOSTCCscripts/kconfig/mconf.o
In file included from /usr/include/linux/errno.h:4,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from scripts/kconfig/mconf.c:12:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: 没有那个文件或目录
scripts/kconfig/mconf.c: In function `exec_conf':
scripts/kconfig/mconf.c:243: error: `EINTR' undeclared (first use in this function)
scripts/kconfig/mconf.c:243: error: (Each undeclared identifier is reported only once
scripts/kconfig/mconf.c:243: error: for each function it appears in.)
scripts/kconfig/mconf.c:243: error: `EAGAIN' undeclared (first use in this function)
make: *** Error 1
make: *** Error 2
# 试试
make menuconfig make menuconfig 也是一样出错呀,不知道为什么 magic 1.2 pre5 自带的内核太老了,自己安装一个新的去,然后编译。 编译不了呀,怎么安装一个新的??? 内核头文件不完整吧?从网上下载一个2.6.3 or 2.6.4的。 /usr/include/asm/errno.h:4:31: asm-generic/errno.h: 没有那个文件或目录
出问题了,你的问题是ASM目录出错.
解决办法是:
cd /usr/include
mv asm asm.old
mv linux linux.old
mv scsi scsi.old
ln -s /usr/srv/linux-ver/include/asm-i386 asm
ln -s /usr/srv/linux-ver/include/scsi scsi
ln -s /usr/srv/linux-var/include/linux linux
然后你可以看看在/usr/include没有什么目录就采用link的方式连接到/usr/srv/linux-var/include的相应目录就可以了.
页:
[1]