|
@@ -35,7 +35,11 @@ username to userid resolving isn't working yet, so a
|
|
if you use the numeric IDs (such as <userinput>chown 0
|
|
if you use the numeric IDs (such as <userinput>chown 0
|
|
file</userinput>).</para></listitem>
|
|
file</userinput>).</para></listitem>
|
|
|
|
|
|
-<listitem><para>It fixes a problem that causes statically linked binaries
|
|
|
|
|
|
+</itemizedlist>
|
|
|
|
+
|
|
|
|
+<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
|
|
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
|
|
binaries have all the necessary parts of Glibc built-in, they still rely
|
|
on one external library: Glibc's NSS libraries. These libraries, among
|
|
on one external library: Glibc's NSS libraries. These libraries, among
|
|
@@ -50,12 +54,13 @@ will load these new NSS libraries and start to abort with
|
|
<emphasis>segmentation faults</emphasis>. This patch undoes a few of the
|
|
<emphasis>segmentation faults</emphasis>. This patch undoes a few of the
|
|
changes to overcome the problem.</para>
|
|
changes to overcome the problem.</para>
|
|
|
|
|
|
-<para>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></listitem>
|
|
|
|
-</itemizedlist>
|
|
|
|
|
|
+<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>
|
|
|
|
|
|
-<para><screen><userinput>patch -Np1 -i ../glibc-&glibc-patch-version;.patch</userinput></screen></para>
|
|
|
|
|
|
+<para><screen><userinput>patch -Np1 -i ../glibc-&glibc-libnss-patch-version;-libnss.patch</userinput></screen></para>
|
|
|
|
|
|
<para>Glibc will check for the <filename>/etc/ld.so.conf</filename> file
|
|
<para>Glibc will check for the <filename>/etc/ld.so.conf</filename> file
|
|
and abort with an error if the file is missing, so we must create it.</para>
|
|
and abort with an error if the file is missing, so we must create it.</para>
|