diff options
Diffstat (limited to 'chapter06/glibc-inst.xml')
-rw-r--r-- | chapter06/glibc-inst.xml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/chapter06/glibc-inst.xml b/chapter06/glibc-inst.xml index b89ecb312..384b86577 100644 --- a/chapter06/glibc-inst.xml +++ b/chapter06/glibc-inst.xml @@ -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 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 binaries have all the necessary parts of Glibc built-in, they still rely 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 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 and abort with an error if the file is missing, so we must create it.</para> |