glibc的头文件 linux_求助,编译glibc头文件时出错
我用的軟件包如下:
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
之前編譯的內(nèi)核頭文件放在${TARGET_PREFIX}/include下
在進(jìn)行到編譯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.
大蝦們幫幫忙,謝謝了
作者: richardzzf
發(fā)布時間: 2006-08-09
總結(jié)
以上是生活随笔為你收集整理的glibc的头文件 linux_求助,编译glibc头文件时出错的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: centos安装VirtualBox增强
- 下一篇: linux扩容根目录空间_Linux系统