QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1625|回复: 0

求助,编译glibc头文件时出错

[复制链接]
发表于 2006-8-9 22:44:12 | 显示全部楼层 |阅读模式
我用的软件包如下:
binutils-2.16.tar.gz
gcc-3.4.4.tar.bz2
glibc-2.3.5.tar.gz
glibc-linuxthreads-2.3.5.tar.gz
linux-2.6.14.1.tar.gz
补丁:
ioperm.c.diff
flow.c.diff
t-linux.diff

想编译交叉工具链,用的编译指令是这样的:
[root@localhost build-glibc-headers]#../glibc-2.3.5/configure --host=${TARGET} --prefix=/usr \
>--enable-add-ons=linuxthreads --with-headers=${TARGET_PREFIX}/include

之前编译的内核头文件放在${TARGET_PREFIX}/include下

在进行到编译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.


大虾们帮帮忙,谢谢了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 12:33 , Processed in 0.037985 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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