mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
ab2027fd92
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1033 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
33 lines
1.6 KiB
XML
33 lines
1.6 KiB
XML
<sect2>
|
|
<title>Installation of Fileutils</title>
|
|
|
|
<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.
|
|
|
|
<screen><userinput>cp -f lib/Makefile.in lib/Makefile.in.backup &&</userinput>
|
|
<userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
|
|
<userinput> lib/Makefile.in > tmp &&</userinput>
|
|
<userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
|
|
<userinput> tmp > lib/Makefile.in</userinput></screen></para>
|
|
|
|
<para>Install fileutils by running the following commands:
|
|
<screen><userinput>./configure --disable-nls \</userinput>
|
|
<userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput>
|
|
<userinput>make LDFLAGS=-static &&</userinput>
|
|
<userinput>make install &&</userinput>
|
|
<userinput>cd $LFS/usr/bin &&</userinput>
|
|
<userinput>ln -sf ../../bin/install</userinput></screen></para>
|
|
|
|
<para>Once you have installed fileutils, you can test whether the
|
|
segmentation fault problem has been avoided by running
|
|
<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>
|
|
|
|
</sect2>
|
|
|