2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Fileutils</title>
|
|
|
|
|
2001-08-24 17:11:04 +01:00
|
|
|
<para>The programs from a statically linked fileutils package may cause
|
2001-09-07 21:51:36 +01:00
|
|
|
segmentation faults on certain systems, if your distribution has
|
|
|
|
Glibc-2.2.3 or higher installed. It also seems to happen mostly on machines
|
|
|
|
powered by an AMD CPU, but there is a case or two where an Intel system
|
|
|
|
is affected as well. If your system falls under this category, try the
|
|
|
|
following fix.</para>
|
2001-08-24 17:11:04 +01:00
|
|
|
|
2001-09-02 17:00:12 +01:00
|
|
|
<para>Note that in some cases using these sed commands will result in
|
2001-09-07 21:51:36 +01:00
|
|
|
problems not being able to compile this at package at all, even when your
|
|
|
|
system has and 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 your distribution has altered Glibc-2.2.3 somehow,
|
|
|
|
but details are unavailable at the time.</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
|
|
|
|
machines, run the following commands. do <emphasis>not</emphasis>
|
|
|
|
attempt this fix your don't have Glibc-2.2.3 installed. It will more
|
|
|
|
than likely result in all kinds of compile time problems.</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &&</userinput>
|
2001-08-28 02:31:10 +01:00
|
|
|
<userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
|
|
|
|
<userinput> -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
|
|
|
|
<userinput> lib/Makefile.in > lib/Makefile.in~ &&</userinput>
|
|
|
|
<userinput>mv lib/Makefile.in~ lib/Makefile.in</userinput></screen></para>
|
2001-08-14 18:29:07 +01:00
|
|
|
|
|
|
|
<para>Install fileutils by running the following commands:
|
|
|
|
<screen><userinput>./configure --disable-nls \</userinput>
|
2001-07-10 17:05:29 +01:00
|
|
|
<userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput>
|
2001-07-06 16:25:48 +01:00
|
|
|
<userinput>make LDFLAGS=-static &&</userinput>
|
|
|
|
<userinput>make install &&</userinput>
|
|
|
|
<userinput>cd $LFS/usr/bin &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../../bin/install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-08-17 12:20:12 +01:00
|
|
|
<para>Once you have installed fileutils, you can test whether the
|
|
|
|
segmentation fault problem has been avoided by running
|
2001-08-24 17:11:04 +01:00
|
|
|
<userinput>$LFS/bin/ls</userinput>. If this works, then you are OK. If
|
|
|
|
not, then you need to re-do the installation using the sed commands if
|
|
|
|
you didn't use them, or without the sed commands if you did use
|
|
|
|
them.</para>
|
2001-08-17 12:20:12 +01:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|