added note that patch is also required if host system uses glibc _older_ than 2.2.x (not just 2.2.x)

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2286 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2003-01-06 16:39:27 +00:00
parent f24558cdff
commit 8a59b643c6

View File

@ -40,25 +40,23 @@ file</userinput>).</para></listitem>
<para><screen><userinput>patch -Np1 -i ../glibc-&glibc-rootperl-patch-version;-root-perl.patch</userinput></screen></para>
<para>There is a potential problem that causes statically linked binaries
to crash that were linked against Glibc-2.2 libraries. Even though static
binaries have all the necessary parts of Glibc built-in, they still rely
on one external library: Glibc's NSS libraries. These libraries, among
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: Glibc's NSS libraries. These libraries, among
other things, tell programs where the system's password database is
(/etc/password, or NIS, or whatever other scheme has been
configured).</para>
<para>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 start to abort with
<emphasis>segmentation faults</emphasis>. This patch undoes a few of the
changes to overcome the problem.</para>
<para>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 start to abort with <emphasis>segmentation faults</emphasis>.
This patch undoes a few of the changes to overcome the problem.</para>
<para>So, if you started chapter 5 with a host system that uses Glibc-2.2.x
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.</para>
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.</para>
<para><screen><userinput>patch -Np1 -i ../glibc-&glibc-libnss-patch-version;-libnss.patch</userinput></screen></para>