[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Fileutils</title>
|
---|
| 3 |
|
---|
[e69a59f] | 4 | <para>The programs from a statically linked Fileutils package may cause
|
---|
[70cdda10] | 5 | segmentation faults on certain systems, if your distribution has
|
---|
[f5cc1c17] | 6 | Glibc-2.2.3 installed. It seems to happen mostly on machines
|
---|
[70cdda10] | 7 | powered by an AMD CPU, but there is a case or two where an Intel system
|
---|
[3b3e965d] | 8 | is affected as well. If your system falls in this category, apply the
|
---|
| 9 | patch.</para>
|
---|
[f66ac14] | 10 |
|
---|
[3b3e965d] | 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
|
---|
[60ed866] | 17 | unavailable at this time.</para>
|
---|
[c15aead] | 18 |
|
---|
[70cdda10] | 19 | <para>To fix this package to compile properly on AMD/Glibc-2.2.3
|
---|
[3b3e965d] | 20 | machines, run the following command. Do <emphasis>not</emphasis>
|
---|
[0ed57c8] | 21 | attempt this fix if you don't have Glibc-2.2.3 installed. It will more
|
---|
[70cdda10] | 22 | than likely result in all kinds of compile time problems.</para>
|
---|
| 23 |
|
---|
[2344896] | 24 | <para><screen><userinput>patch -Np1 -i ../fileutils-&fileutils-patch-version;.patch</userinput></screen></para>
|
---|
[4d6fc2da] | 25 |
|
---|
[e69a59f] | 26 | <para>Install Fileutils by running the following commands:</para>
|
---|
[4d6fc2da] | 27 |
|
---|
[fde5bc7] | 28 | <para><screen><userinput>LDFLAGS=-static \
|
---|
| 29 | ./configure --disable-nls --prefix=$LFS/static &&
|
---|
| 30 | make &&
|
---|
[5e2cb65] | 31 | make install</userinput></screen></para>
|
---|
[6370fa6] | 32 |
|
---|
[e69a59f] | 33 | <para>Once you have installed Fileutils, you can test whether the
|
---|
[ec710a3] | 34 | segmentation fault problem has been avoided by running
|
---|
[c02af2e] | 35 | <userinput>$LFS/static/bin/ls</userinput>. If this works, then you are OK. If
|
---|
[f9568b3] | 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>
|
---|
[ec710a3] | 39 |
|
---|
[6370fa6] | 40 | </sect2>
|
---|
| 41 |
|
---|