[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Fileutils</title>
|
---|
| 3 |
|
---|
[8d5735b] | 4 | <para>Before we install fileutils statically, if you are using
|
---|
| 5 | glibc-2.2.3 you need to apply two seds in order to prevent them giving
|
---|
| 6 | segmentation faults once we enter chroot in Chapter 6. The sed commands for
|
---|
| 7 | those using glibc-2.2.3 are:
|
---|
[6370fa6] | 8 |
|
---|
[f66ac14] | 9 | <para>The programs from a statically linked fileutils package may cause
|
---|
| 10 | segmentation faults on certain systems. These systems are often, but not
|
---|
| 11 | limited to, Linux systems that run Glibc-2.2.3 with an AMD CPU (Athlons
|
---|
| 12 | and Durons are the most reported used CPU's). If you are in this category,
|
---|
| 13 | run the following to sed commands before you compile this package.
|
---|
| 14 |
|
---|
[8d5735b] | 15 | <screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
|
---|
[45714a7] | 16 | <userinput> lib/Makefile.in > tmp &&</userinput>
|
---|
[5b99103] | 17 | <userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
|
---|
[45714a7] | 18 | <userinput> tmp > lib/Makefile.in</userinput></screen></para>
|
---|
[8d5735b] | 19 |
|
---|
| 20 | <para>Install fileutils by running the following commands:
|
---|
| 21 | <screen><userinput>./configure --disable-nls \</userinput>
|
---|
[27f5d3b] | 22 | <userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput>
|
---|
[11ce06a] | 23 | <userinput>make LDFLAGS=-static &&</userinput>
|
---|
| 24 | <userinput>make install &&</userinput>
|
---|
| 25 | <userinput>cd $LFS/usr/bin &&</userinput>
|
---|
[45714a7] | 26 | <userinput>ln -sf ../../bin/install</userinput></screen></para>
|
---|
[6370fa6] | 27 |
|
---|
[ec710a3] | 28 | <para>Once you have installed fileutils, you can test whether the
|
---|
| 29 | segmentation fault problem has been avoided by running
|
---|
[f66ac14] | 30 | <userinput>$LFS/bin/ls</userinput>. If this works, then you are OK. If
|
---|
| 31 | not, then you need to re-do the installation using the sed commands if
|
---|
| 32 | you didn't use them, or without the sed commands if you did use
|
---|
| 33 | them.</para>
|
---|
[ec710a3] | 34 |
|
---|
[6370fa6] | 35 | </sect2>
|
---|
| 36 |
|
---|