mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 05:57:43 +00:00
f9568b3a02
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1965 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
45 lines
1.9 KiB
XML
45 lines
1.9 KiB
XML
<sect2>
|
|
<title>Installation of Fileutils</title>
|
|
|
|
<para>This package requires its patch to be applied before you can
|
|
install it. Make sure it's unpacked before running the installation
|
|
commands.</para>
|
|
|
|
<para>The programs from a statically linked Fileutils package may cause
|
|
segmentation faults on certain systems, if your distribution has
|
|
Glibc-2.2.3 or higher installed. It seems to happen mostly on machines
|
|
powered by an AMD CPU, but there is a case or two where an Intel system
|
|
is affected as well. If your system falls in this category, apply the
|
|
patch.</para>
|
|
|
|
<para>Note that in some cases using this patch will result in not being
|
|
able to compile this package at all, even when your system has an AMD CPU
|
|
and has Glibc-2.2.3 (or higher) installed. If that's the case, you'll need
|
|
to remove the fileutils-&fileutils-version; directory and unpack it again
|
|
from the tarball before continuing. We believe this may be the case when
|
|
your distribution has altered Glibc-2.2.3 somehow, but details are
|
|
unavailable at the time.</para>
|
|
|
|
<para>To fix this package to compile properly on AMD/Glibc-2.2.3
|
|
machines, run the following command. Do <emphasis>not</emphasis>
|
|
attempt this fix if you don't have Glibc-2.2.3 installed. It will more
|
|
than likely result in all kinds of compile time problems.</para>
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../fileutils-&fileutils-version;.patch</userinput></screen></para>
|
|
|
|
<para>Install Fileutils by running the following commands:</para>
|
|
|
|
<para><screen><userinput>./configure --disable-nls --prefix=$LFS/static &&
|
|
make LDFLAGS=-static &&
|
|
make install</userinput></screen></para>
|
|
|
|
<para>Once you have installed Fileutils, you can test whether the
|
|
segmentation fault problem has been avoided by running
|
|
<userinput>$LFS/static/bin/ls</userinput>. If this works, then you are OK. If
|
|
not, then you need to re-do the installation with the patch if
|
|
you didn't use it, or without the patch if you did use
|
|
it.</para>
|
|
|
|
</sect2>
|
|
|