| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | <sect2><title>Installation of Fileutils</title><para>The programs from a statically linked Fileutils package may causesegmentation faults on certain systems, if your distribution hasGlibc-2.2.3 or higher installed. It seems to happen mostly on machinespowered by an AMD CPU, but there is a case or two where an Intel systemis affected as well. If your system falls in this category, try thefollowing fix.</para><para>Note that in some cases using these sed commands will result innot being able to compile this package at all, even when yoursystem has an 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; directoryand unpack it again from the tarball before continuing. We believe thismay be the case when your distribution has altered Glibc-2.2.3 somehow,but details are unavailable at the time.</para><para>To fix this package to compile properly on AMD/Glibc-2.2.3machines, run the following commands. Do <emphasis>not</emphasis>attempt this fix if you 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 &&sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \    -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \    lib/Makefile.in.backup > lib/Makefile.in</userinput></screen></para><para>Install Fileutils by running the following commands:</para><para><screen><userinput>./configure --disable-nls --prefix=$LFS/static &&make LDFLAGS=-static &&make install</userinput></screen></para><para>Once you have installed Fileutils, you can test whether thesegmentation fault problem has been avoided by running<userinput>$LFS/static/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>
 |