| 1234567891011121314151617181920212223242526272829303132 | <sect2><title>Installation of Fileutils</title><para>The programs from a statically linked fileutils package may causesegmentation 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 -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><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 thesegmentation fault problem has been avoided by running<userinput>$LFS/bin/ls</userinput>. If this works, then you are OK. Ifnot, 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>
 |