Installation of Fileutils
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.
cp -f lib/Makefile.in lib/Makefile.in.backup &&
sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
lib/Makefile.in > tmp &&
sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
tmp > lib/Makefile.in
Install fileutils by running the following commands:
./configure --disable-nls \
--prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&
make LDFLAGS=-static &&
make install &&
cd $LFS/usr/bin &&
ln -sf ../../bin/install
Once you have installed fileutils, you can test whether the
segmentation fault problem has been avoided by running
$LFS/bin/ls. 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.