fileutils-inst.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132
  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. These systems are often, but not
  5. limited to, Linux systems that run Glibc-2.2.3 with an AMD CPU (Athlons
  6. and Durons are the most reported used CPU's). If you are in this category,
  7. run the following to sed commands before you compile this package.
  8. <screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &amp;&amp;</userinput>
  9. <userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
  10. <userinput>&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
  11. <userinput>&nbsp;&nbsp;&nbsp;lib/Makefile.in &gt; lib/Makefile.in~ &amp;&amp;</userinput>
  12. <userinput>mv lib/Makefile.in~ lib/Makefile.in</userinput></screen></para>
  13. <para>Install fileutils by running the following commands:
  14. <screen><userinput>./configure --disable-nls \</userinput>
  15. <userinput>&nbsp;&nbsp;&nbsp;--prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &amp;&amp;</userinput>
  16. <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
  17. <userinput>make install &amp;&amp;</userinput>
  18. <userinput>cd $LFS/usr/bin &amp;&amp;</userinput>
  19. <userinput>ln -sf ../../bin/install</userinput></screen></para>
  20. <para>Once you have installed fileutils, you can test whether the
  21. segmentation fault problem has been avoided by running
  22. <userinput>$LFS/bin/ls</userinput>. If this works, then you are OK. If
  23. not, then you need to re-do the installation using the sed commands if
  24. you didn't use them, or without the sed commands if you did use
  25. them.</para>
  26. </sect2>