fileutils-inst.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Fileutils</title>
  4. <para>The programs from a statically linked Fileutils package may cause
  5. segmentation faults on certain systems, if your distribution has
  6. Glibc-2.2.3 installed. It seems to happen mostly on machines
  7. powered by an AMD CPU, but there is a case or two where an Intel system
  8. is affected as well. If your system falls in this category, apply the
  9. patch.</para>
  10. <para>Note that in some cases using this patch will result in not being
  11. able to compile this package at all, even when your system has an AMD CPU
  12. and has Glibc-2.2.3 (or higher) installed. If that's the case, you'll need
  13. to remove the fileutils-&fileutils-version; directory and unpack it again
  14. from the tarball before continuing. We believe this may be the case when
  15. your distribution has altered Glibc-2.2.3 somehow, but details are
  16. unavailable at this time.</para>
  17. <para>To fix this package to compile properly on AMD/Glibc-2.2.3
  18. machines, run the following command. Do <emphasis>NOT</emphasis>
  19. attempt this fix if you don't have Glibc-2.2.3 installed. It will more
  20. than likely result in all kinds of compile time problems.</para>
  21. <para><screen><userinput>patch -Np1 -i ../fileutils-&fileutils-patch-version;.patch</userinput></screen></para>
  22. <para>Prepare the package to be compiled:</para>
  23. <para><screen><userinput>LDFLAGS="-static" \
  24. &nbsp;&nbsp;&nbsp;&nbsp;./configure --disable-nls --prefix=$LFS/static</userinput></screen></para>
  25. <para>Continue with compiling the package:</para>
  26. <para><screen><userinput>make</userinput></screen></para>
  27. <para>And finish off installing the package:</para>
  28. <para><screen><userinput>make install</userinput></screen></para>
  29. <para>Once you have installed Fileutils, you can test whether the
  30. segmentation fault problem has been avoided by running
  31. <userinput>$LFS/static/bin/ls</userinput>. If this works, then you are OK. If
  32. not, then you need to re-do the installation with the patch if you didn't
  33. use it, or without the patch if you did use it.</para>
  34. </sect2>