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