[2b138d6] | 1 | <sect2><title> </title><para> </para></sect2>
|
---|
| 2 |
|
---|
[6370fa6] | 3 | <sect2>
|
---|
| 4 | <title>Installation of Fileutils</title>
|
---|
| 5 |
|
---|
[e69a59f] | 6 | <para>The programs from a statically linked Fileutils package may cause
|
---|
[70cdda10] | 7 | segmentation faults on certain systems, if your distribution has
|
---|
[f5cc1c17] | 8 | Glibc-2.2.3 installed. It seems to happen mostly on machines
|
---|
[70cdda10] | 9 | powered by an AMD CPU, but there is a case or two where an Intel system
|
---|
[3b3e965d] | 10 | is affected as well. If your system falls in this category, apply the
|
---|
| 11 | patch.</para>
|
---|
[f66ac14] | 12 |
|
---|
[3b3e965d] | 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
|
---|
[558cb8a] | 18 | your distribution has altered Glibc-2.2.3 somehow, but the exact details
|
---|
| 19 | are unknown.</para>
|
---|
[c15aead] | 20 |
|
---|
[70cdda10] | 21 | <para>To fix this package to compile properly on AMD/Glibc-2.2.3
|
---|
[2b138d6] | 22 | machines, run the following command. Do <emphasis>NOT</emphasis>
|
---|
[0ed57c8] | 23 | attempt this fix if you don't have Glibc-2.2.3 installed. It will more
|
---|
[558cb8a] | 24 | than likely result in all kinds of compilation problems.</para>
|
---|
[70cdda10] | 25 |
|
---|
[2344896] | 26 | <para><screen><userinput>patch -Np1 -i ../fileutils-&fileutils-patch-version;.patch</userinput></screen></para>
|
---|
[4d6fc2da] | 27 |
|
---|
[4a88065] | 28 | <para>Prepare the package to be compiled:</para>
|
---|
[4d6fc2da] | 29 |
|
---|
[8f93b15] | 30 | <para><screen><userinput>LDFLAGS="-static" \
|
---|
[4a88065] | 31 | ./configure --disable-nls --prefix=$LFS/static</userinput></screen></para>
|
---|
| 32 |
|
---|
| 33 | <para>Continue with compiling the package:</para>
|
---|
| 34 |
|
---|
| 35 | <para><screen><userinput>make</userinput></screen></para>
|
---|
| 36 |
|
---|
[91b45ad] | 37 | <para>And finish off installing the package:</para>
|
---|
[4a88065] | 38 |
|
---|
| 39 | <para><screen><userinput>make install</userinput></screen></para>
|
---|
[6370fa6] | 40 |
|
---|
[e69a59f] | 41 | <para>Once you have installed Fileutils, you can test whether the
|
---|
[ec710a3] | 42 | segmentation fault problem has been avoided by running
|
---|
[c02af2e] | 43 | <userinput>$LFS/static/bin/ls</userinput>. If this works, then you are OK. If
|
---|
[2b138d6] | 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>
|
---|
[ec710a3] | 46 |
|
---|
[6370fa6] | 47 | </sect2>
|
---|
| 48 |
|
---|