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
|
|
|
|
segmentation faults on certain systems. These systems are often, but not
|
|
|
|
limited to, Linux systems that run Glibc-2.2.3 with an AMD CPU (Athlons
|
|
|
|
and Durons are the most reported used CPU's). If you are in this category,
|
|
|
|
run the following to sed commands before you compile this package.
|
|
|
|
|
2001-08-25 19:15:35 +01:00
|
|
|
<screen><userinput>cp -f lib/Makefile.in lib/Makefile.in.backup &&</userinput>
|
2001-08-24 21:45:42 +01:00
|
|
|
<userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput> lib/Makefile.in > tmp &&</userinput>
|
2001-08-07 17:43:01 +01:00
|
|
|
<userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput> tmp > 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>
|
|
|
|
|