|
|
发表于 2006-6-11 06:11:05
|
显示全部楼层
收集一点资料:
1. http://www.diy-linux.org/x86-reference-build/introduction.htmlWe are compiling Glibc against sanitized kernel headers ie: the `linux-libc-headers' package. Compiling Glibc against raw kernel headers is always an option, but it goes against the Glibc developer's general advice of recent times to use distro-supplied sanitized headers. As of kernel-2.6, sanitized kernel headers are the only realistic option for installation into /usr/include because the raw headers are pretty much unusable when installed there.
2. http://www.linuxfromscratch.org/ ... /files/OLD/nptl.txt6. Sanitized kernel headers
It is agreed that user space shouldn't use kernel headers, but a
set of sanitized headers such as distributions use instead. In
addition to it not being kosher, stock kernel headers in /usr/include
will break a lot of packages due to changes in 2.6 kernels. Get the
latest Fedora headers from:
http://download.fedora.redhat.co ... /development/SRPMS/
The package name is glibc-kernheaders-*. You can use rpm2cpio to first
convert and extract it. All you'll need is glibc-kernheaders.tar.bz2.
I've also made the tarball available in http://ttervo.vectorstar.net/nptl,
but don't expect it to be the latest one available. In the same directory,
you'll also find POSIX compliancy patches for several packages (see notes
after chapter 5 Glibc instructions).
3. http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/FAQQ: When compiling $INSERTYOURAPP I got an error message saying I shouldn't
be including kernel only files.
A: The llh package is for providing userland interfaces. It doesn't contain
internal kernel definitions. If you get such an error you most likely need
to fix your app either not to include offending files or to search for
headers inside kernel sources.
If you believe your sources are correct mail the maintainer (check AUTHORS
file for his address) to clear the matter up.
4.http://lists.debian.org/debian-glibc/2003/11/msg00069.html
虽然在LKML里边我没找到相应的说明,但是我觉得没必要去找了。
5. http://headers.cross-lfs.org/ 和 http://headers.cross-lfs.org/browser
LFS 大本营的东西,当然要看看咯。:)。
我认为与其讨论为什么需要 净化,不如讨论一下 如何净化,或者 LFS 书上有什么可以改进的东西。 |
|