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