LinuxSir.cn,穿越时空的Linuxsir!

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

今天做LFS系统时遇到的一个问题

[复制链接]
发表于 2005-12-16 18:40:06 | 显示全部楼层 |阅读模式
我的系统是Linux AS4  kernel 2.6.9-5  按照6.1上说的做到linux-libc-headers时 解压得是2.6.11的内容,然后编译glibc时始终告诉我下面的内容:
checking installed Linux kernel header files... TOO OLD!
configure: error: GNU libc requires kernel header files from
Linux 2.0.10 or later to be installed before configuring.
The kernel header files are found usually in /usr/include/asm and
/usr/include/linux; make sure these directories use files from
Linux 2.0.10 or later.  This check uses <linux/version.h>, so
make sure that file was built correctly when installing the kernel header
files.  To use kernel headers not from /usr/include/linux, use the
configure option --with-headers.

是不是这个header必须和宿主的kernel版本一致?还是哪里出了问题?
我是从官方下的packages 6.1 按doc里一步一步做的,请各位老大指点!
发表于 2005-12-16 19:20:34 | 显示全部楼层
glibc 的参数你是如何写的?   --with-headers 路径?
回复 支持 反对

使用道具 举报

发表于 2011-2-10 21:10:03 | 显示全部楼层
我遇到同样的问题啦~就是按照文档来的:
../glibc-2.3.6/configure --prefix=/tools \
    --disable-profile --enable-add-ons \
    --enable-kernel=2.6.0 --with-binutils=/tools/bin \
    --without-gd --with-headers=/tools/include \
    --without-selinux
特意清空了/tools/include
然后重新
cp -Rv include/asm-i386 /tools/include/asm
cp -Rv include/linux /tools/include
不知道问题出到哪里了.
我用的是6.2
回复 支持 反对

使用道具 举报

发表于 2011-2-10 22:00:40 | 显示全部楼层
发现问题了,应该解压linux-libc-headers-2.6.12.0.tar.bz2,错解压成内核了.
回复 支持 反对

使用道具 举报

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

本版积分规则

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