2003-01-11 17:06:14 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Fileutils</title>
|
|
|
|
|
2003-02-04 05:50:41 +00:00
|
|
|
<para>There is a documented bug with the atexit() function in glibc-2.2.3
|
|
|
|
when it is compiled with gcc-2.95.3. This bug only occurs on some systems
|
|
|
|
(primarily AMD, but not exclusively). This bug causes segmentation faults
|
|
|
|
in fileutils-4.1 when it is compiled statically. This patch causes
|
|
|
|
on_exit() to be called instead of atexit().</para>
|
2001-08-24 17:11:04 +01:00
|
|
|
|
2002-05-30 12:51:27 +01:00
|
|
|
<para>Note that in some cases using this patch will result in not being
|
|
|
|
able to compile this package at all, even when your system has an AMD CPU
|
|
|
|
and has Glibc-2.2.3 (or higher) installed. If that's the case, you'll need
|
|
|
|
to remove the fileutils-&fileutils-version; directory and unpack it again
|
|
|
|
from the tarball before continuing. We believe this may be the case when
|
2003-01-27 21:28:02 +00:00
|
|
|
your distribution has altered Glibc-2.2.3 somehow, but the exact details
|
|
|
|
are unknown.</para>
|
2001-09-02 17:00:12 +01:00
|
|
|
|
2001-09-07 21:51:36 +01:00
|
|
|
<para>To fix this package to compile properly on AMD/Glibc-2.2.3
|
2003-01-11 17:06:14 +00:00
|
|
|
machines, run the following command. Do <emphasis>NOT</emphasis>
|
2001-09-07 21:52:58 +01:00
|
|
|
attempt this fix if you don't have Glibc-2.2.3 installed. It will more
|
2003-01-27 21:28:02 +00:00
|
|
|
than likely result in all kinds of compilation problems.</para>
|
2001-09-07 21:51:36 +01:00
|
|
|
|
2002-07-02 20:25:34 +01:00
|
|
|
<para><screen><userinput>patch -Np1 -i ../fileutils-&fileutils-patch-version;.patch</userinput></screen></para>
|
2001-10-27 23:21:44 +01:00
|
|
|
|
2003-01-11 17:41:17 +00:00
|
|
|
<para>Prepare the package to be compiled:</para>
|
2001-10-27 23:21:44 +01:00
|
|
|
|
2002-12-30 03:12:54 +00:00
|
|
|
<para><screen><userinput>LDFLAGS="-static" \
|
2003-01-11 17:41:17 +00:00
|
|
|
./configure --disable-nls --prefix=$LFS/static</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Continue with compiling the package:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
|
|
|
|
2003-01-13 13:26:45 +00:00
|
|
|
<para>And finish off installing the package:</para>
|
2003-01-11 17:41:17 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-04-19 19:27:01 +01:00
|
|
|
<para>Once you have installed Fileutils, you can test whether the
|
2001-08-17 12:20:12 +01:00
|
|
|
segmentation fault problem has been avoided by running
|
2002-05-25 14:56:32 +01:00
|
|
|
<userinput>$LFS/static/bin/ls</userinput>. If this works, then you are OK. If
|
2003-01-11 17:06:14 +00:00
|
|
|
not, then you need to re-do the installation with the patch if you didn't
|
|
|
|
use it, or without the patch if you did use it.</para>
|
2001-08-17 12:20:12 +01:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|