fileutils-inst.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <sect2>
  2. <title>Installation of Fileutils</title>
  3. <para>The programs from a statically linked fileutils package may cause
  4. segmentation faults on certain systems, if your distribution has
  5. Glibc-2.2.3 or higher installed. It also seems to happen mostly on machines
  6. powered by an AMD CPU, but there is a case or two where an Intel system
  7. is affected as well. If your system falls under this category, try the
  8. following fix.</para>
  9. <para>Note that in some cases using these sed commands will result in
  10. problems not being able to compile this package at all, even when your
  11. system has an AMD CPU and has Glibc-2.2.3 (or higher) installed. If that's
  12. the case, you'll need to remove the fileutils-&fileutils-version; directory
  13. and unpack it again from the tarball before continuing. We believe this
  14. may be the case when your distribution has altered Glibc-2.2.3 somehow,
  15. but details are unavailable at the time.</para>
  16. <para>To fix this package to compile properly on AMD/Glibc-2.2.3
  17. machines, run the following commands. Do <emphasis>not</emphasis>
  18. attempt this fix if you don't have Glibc-2.2.3 installed. It will more
  19. than likely result in all kinds of compile time problems.</para>
  20. <para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &amp;&amp;</userinput>
  21. <userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
  22. <userinput>&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
  23. <userinput>&nbsp;&nbsp;&nbsp;lib/Makefile.in &gt; lib/Makefile.in~ &amp;&amp;</userinput>
  24. <userinput>mv lib/Makefile.in~ lib/Makefile.in</userinput></screen></para>
  25. <para>Install fileutils by running the following commands:
  26. <screen><userinput>./configure --disable-nls \</userinput>
  27. <userinput>&nbsp;&nbsp;&nbsp;--prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &amp;&amp;</userinput>
  28. <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
  29. <userinput>make install &amp;&amp;</userinput>
  30. <userinput>cd $LFS/usr/bin &amp;&amp;</userinput>
  31. <userinput>ln -sf ../../bin/install</userinput></screen></para>
  32. <para>Once you have installed fileutils, you can test whether the
  33. segmentation fault problem has been avoided by running
  34. <userinput>$LFS/bin/ls</userinput>. If this works, then you are OK. If
  35. not, then you need to re-do the installation using the sed commands if
  36. you didn't use them, or without the sed commands if you did use
  37. them.</para>
  38. </sect2>