blob: 80f4c87e2cfa026dc79b8fb09b8ba1283921a19c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<sect2>
<title>Installation of Fileutils</title>
<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:
<screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
<userinput> lib/Makefile.in > tmp &&</userinput>
<userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
<userinput> tmp > lib/Makefile.in</userinput></screen></para>
<para>Install fileutils by running the following commands:
<screen><userinput>./configure --disable-nls \</userinput>
<userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput>
<userinput>make LDFLAGS=-static &&</userinput>
<userinput>make install &&</userinput>
<userinput>cd $LFS/usr/bin &&</userinput>
<userinput>ln -s ../../bin/install</userinput></screen></para>
<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>
</sect2>
|