[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Fileutils</title>
|
---|
| 3 |
|
---|
[f66ac14] | 4 | <para>The programs from a statically linked fileutils package may cause
|
---|
| 5 | segmentation faults on certain systems. These systems are often, but not
|
---|
| 6 | limited to, Linux systems that run Glibc-2.2.3 with an AMD CPU (Athlons
|
---|
| 7 | and Durons are the most reported used CPU's). If you are in this category,
|
---|
| 8 | run the following to sed commands before you compile this package.
|
---|
| 9 |
|
---|
[c15aead] | 10 | <para>Note that in some cases using these sed commands will result in
|
---|
| 11 | problems not being able to compile this at package at all. If that's the
|
---|
| 12 | case, start over again and don't use the sed commands.</para>
|
---|
| 13 |
|
---|
[3acb38f] | 14 | <screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &&</userinput>
|
---|
[de3414e2] | 15 | <userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
|
---|
| 16 | <userinput> -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
|
---|
| 17 | <userinput> lib/Makefile.in > lib/Makefile.in~ &&</userinput>
|
---|
| 18 | <userinput>mv lib/Makefile.in~ 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 |
|
---|