[2b138d6] | 1 | <sect2><title> </title><para> </para></sect2>
|
---|
| 2 |
|
---|
[6370fa6] | 3 | <sect2>
|
---|
| 4 | <title>Installation of Fileutils</title>
|
---|
| 5 |
|
---|
[31435ca] | 6 | <para>There is a documented (see
|
---|
| 7 | <ulink url="http://mail.gnu.org/pipermail/bug-glibc/2001-May/003149.html"/>)
|
---|
| 8 | bug with the atexit() function in glibc-2.2.3 when it is compiled with
|
---|
| 9 | gcc-2.95.3. This bug only occurs on some systems (primarily AMD, but not
|
---|
| 10 | exclusively). This bug causes segmentation faults in fileutils-4.1 when it
|
---|
| 11 | is compiled statically. This patch causes on_exit() to be called instead of
|
---|
| 12 | atexit().</para>
|
---|
[f66ac14] | 13 |
|
---|
[3b3e965d] | 14 | <para>Note that in some cases using this patch will result in not being
|
---|
| 15 | able to compile this package at all, even when your system has an AMD CPU
|
---|
| 16 | and has Glibc-2.2.3 (or higher) installed. If that's the case, you'll need
|
---|
| 17 | to remove the fileutils-&fileutils-version; directory and unpack it again
|
---|
| 18 | from the tarball before continuing. We believe this may be the case when
|
---|
[558cb8a] | 19 | your distribution has altered Glibc-2.2.3 somehow, but the exact details
|
---|
| 20 | are unknown.</para>
|
---|
[c15aead] | 21 |
|
---|
[70cdda10] | 22 | <para>To fix this package to compile properly on AMD/Glibc-2.2.3
|
---|
[2b138d6] | 23 | machines, run the following command. Do <emphasis>NOT</emphasis>
|
---|
[0ed57c8] | 24 | attempt this fix if you don't have Glibc-2.2.3 installed. It will more
|
---|
[558cb8a] | 25 | than likely result in all kinds of compilation problems.</para>
|
---|
[70cdda10] | 26 |
|
---|
[2344896] | 27 | <para><screen><userinput>patch -Np1 -i ../fileutils-&fileutils-patch-version;.patch</userinput></screen></para>
|
---|
[4d6fc2da] | 28 |
|
---|
[4a88065] | 29 | <para>Prepare the package to be compiled:</para>
|
---|
[4d6fc2da] | 30 |
|
---|
[8f93b15] | 31 | <para><screen><userinput>LDFLAGS="-static" \
|
---|
[4a88065] | 32 | ./configure --disable-nls --prefix=$LFS/static</userinput></screen></para>
|
---|
| 33 |
|
---|
| 34 | <para>Continue with compiling the package:</para>
|
---|
| 35 |
|
---|
| 36 | <para><screen><userinput>make</userinput></screen></para>
|
---|
| 37 |
|
---|
[91b45ad] | 38 | <para>And finish off installing the package:</para>
|
---|
[4a88065] | 39 |
|
---|
| 40 | <para><screen><userinput>make install</userinput></screen></para>
|
---|
[6370fa6] | 41 |
|
---|
[e69a59f] | 42 | <para>Once you have installed Fileutils, you can test whether the
|
---|
[ec710a3] | 43 | segmentation fault problem has been avoided by running
|
---|
[c02af2e] | 44 | <userinput>$LFS/static/bin/ls</userinput>. If this works, then you are OK. If
|
---|
[2b138d6] | 45 | not, then you need to re-do the installation with the patch if you didn't
|
---|
| 46 | use it, or without the patch if you did use it.</para>
|
---|
[ec710a3] | 47 |
|
---|
[6370fa6] | 48 | </sect2>
|
---|
| 49 |
|
---|