2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Fileutils</title>
|
|
|
|
|
2001-08-14 18:29:07 +01:00
|
|
|
<para>Before we install fileutils statically, if you are using
|
|
|
|
glibc-2.2.3 you need to apply two seds in order to prevent them giving
|
|
|
|
segmentation faults once we enter chroot in Chapter 6. The sed commands for
|
|
|
|
those using glibc-2.2.3 are:
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-08-14 18:29:07 +01:00
|
|
|
<screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput> lib/Makefile.in > tmp &&</userinput>
|
2001-08-07 17:43:01 +01:00
|
|
|
<userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput> tmp > lib/Makefile.in</userinput></screen></para>
|
2001-08-14 18:29:07 +01:00
|
|
|
|
|
|
|
<para>Install fileutils by running the following commands:
|
|
|
|
<screen><userinput>./configure --disable-nls \</userinput>
|
2001-07-10 17:05:29 +01:00
|
|
|
<userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput>
|
2001-07-06 16:25:48 +01:00
|
|
|
<userinput>make LDFLAGS=-static &&</userinput>
|
|
|
|
<userinput>make install &&</userinput>
|
|
|
|
<userinput>cd $LFS/usr/bin &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../../bin/install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-08-17 12:20:12 +01:00
|
|
|
<para>Once you have installed fileutils, you can test whether the
|
|
|
|
segmentation fault problem has been avoided by running
|
|
|
|
<userinput>$LFS/bin/ls</userinput>. If this works then you are OK, if
|
|
|
|
not, then you need to re-do the installation using the seds if you
|
|
|
|
didn't the first time or vice-versa.</para>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|