|
发表于 2003-2-23 14:17:42
|
显示全部楼层
这个是最新的LFS文档里面第一次编译glibc时打补丁的说明:
There is a potential problem that causes statically linked binaries to crash that were linked against Glibc-2.2 or older libraries. Even though static binaries have all the necessary parts of Glibc built-in, they still rely on one external library set: Glibc's NSS libraries. These libraries, among other things, tell programs where the system's password database is (in /etc/password, NIS, or whatever other scheme has been configured).
Glibc has undergone some changes since version 2.2.x and the new NSS code is incompatible with the old one. So when Glibc is installed it will install its new NSS libraries, and static programs will load these new NSS libraries and will abort with a segmentation fault error. This patch undoes some of the changes to overcome the problem.
If you started chapter 5 with a host system that uses Glibc-2.2.x or older, you must apply the following patch. We will install Glibc again at the end of this chapter to remove this patch so you'll have a pristine Glibc as the developers intended it.
patch -Np1 -i ../glibc-2.3.1-libnss.patch |
|