1 <sect2><title> </title><para> </para></sect2>
4 <title>Installation of Fileutils</title>
6 <para>The programs from a statically linked Fileutils package may cause
7 segmentation faults on certain systems, if your distribution has
8 Glibc-2.2.3 installed. It seems to happen mostly on machines
9 powered by an AMD CPU, but there is a case or two where an Intel system
10 is affected as well. If your system falls in this category, apply the
13 <para>Note that in some cases using this patch will result in not being
14 able to compile this package at all, even when your system has an AMD CPU
15 and has Glibc-2.2.3 (or higher) installed. If that's the case, you'll need
16 to remove the fileutils-&fileutils-version; directory and unpack it again
17 from the tarball before continuing. We believe this may be the case when
18 your distribution has altered Glibc-2.2.3 somehow, but the exact details
21 <para>To fix this package to compile properly on AMD/Glibc-2.2.3
22 machines, run the following command. Do <emphasis>NOT</emphasis>
23 attempt this fix if you don't have Glibc-2.2.3 installed. It will more
24 than likely result in all kinds of compilation problems.</para>
26 <para><screen><userinput>patch -Np1 -i ../fileutils-&fileutils-patch-version;.patch</userinput></screen></para>
28 <para>Prepare the package to be compiled:</para>
30 <para><screen><userinput>LDFLAGS="-static" \
31 ./configure --disable-nls --prefix=$LFS/static</userinput></screen></para>
33 <para>Continue with compiling the package:</para>
35 <para><screen><userinput>make</userinput></screen></para>
37 <para>And finish off installing the package:</para>
39 <para><screen><userinput>make install</userinput></screen></para>
41 <para>Once you have installed Fileutils, you can test whether the
42 segmentation fault problem has been avoided by running
43 <userinput>$LFS/static/bin/ls</userinput>. If this works, then you are OK. If
44 not, then you need to re-do the installation with the patch if you didn't
45 use it, or without the patch if you did use it.</para>