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