fileutils-inst.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Fileutils</title>
  4. <para>There is a documented (see
  5. <ulink url="http://mail.gnu.org/pipermail/bug-glibc/2001-May/003149.html"/>)
  6. bug with the atexit() function in glibc-2.2.3 when it is compiled with
  7. gcc-2.95.3. This bug only occurs on some systems (primarily AMD, but not
  8. exclusively). This bug causes segmentation faults in fileutils-4.1 when it
  9. is compiled statically. This patch causes on_exit() to be called instead of
  10. atexit().</para>
  11. <para>Note that in some cases using this patch will result in not being
  12. able to compile this package at all, even when your system has an AMD CPU
  13. and has Glibc-2.2.3 (or higher) installed. If that's the case, you'll need
  14. to remove the fileutils-&fileutils-version; directory and unpack it again
  15. from the tarball before continuing. We believe this may be the case when
  16. your distribution has altered Glibc-2.2.3 somehow, but the exact details
  17. are unknown.</para>
  18. <para>To fix this package to compile properly on AMD/Glibc-2.2.3
  19. machines, run the following command. Do <emphasis>NOT</emphasis>
  20. attempt this fix if you don't have Glibc-2.2.3 installed. It will more
  21. than likely result in all kinds of compilation problems.</para>
  22. <para><screen><userinput>patch -Np1 -i ../fileutils-&fileutils-patch-version;.patch</userinput></screen></para>
  23. <para>Prepare the package to be compiled:</para>
  24. <para><screen><userinput>LDFLAGS="-static" \
  25. &nbsp;&nbsp;&nbsp;&nbsp;./configure --disable-nls --prefix=$LFS/static</userinput></screen></para>
  26. <para>Continue with compiling the package:</para>
  27. <para><screen><userinput>make</userinput></screen></para>
  28. <para>And finish off installing the package:</para>
  29. <para><screen><userinput>make install</userinput></screen></para>
  30. <para>Once you have installed Fileutils, you can test whether the
  31. segmentation fault problem has been avoided by running
  32. <userinput>$LFS/static/bin/ls</userinput>. If this works, then you are OK. If
  33. not, then you need to re-do the installation with the patch if you didn't
  34. use it, or without the patch if you did use it.</para>
  35. </sect2>