[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,
|
---|
[a5e3273] | 8 | run the following to sed commands before you compile this
|
---|
| 9 | package.</para>
|
---|
[f66ac14] | 10 |
|
---|
[c15aead] | 11 | <para>Note that in some cases using these sed commands will result in
|
---|
| 12 | problems not being able to compile this at package at all. If that's the
|
---|
[0054561] | 13 | case, you'll need to remove the fileutils-&fileutils-version; directory
|
---|
[5dff45e] | 14 | and unpack it again from the tarball before continuing.
|
---|
[c15aead] | 15 |
|
---|
[3acb38f] | 16 | <screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &&</userinput>
|
---|
[de3414e2] | 17 | <userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
|
---|
| 18 | <userinput> -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
|
---|
| 19 | <userinput> lib/Makefile.in > lib/Makefile.in~ &&</userinput>
|
---|
| 20 | <userinput>mv lib/Makefile.in~ lib/Makefile.in</userinput></screen></para>
|
---|
[8d5735b] | 21 |
|
---|
| 22 | <para>Install fileutils by running the following commands:
|
---|
| 23 | <screen><userinput>./configure --disable-nls \</userinput>
|
---|
[27f5d3b] | 24 | <userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput>
|
---|
[11ce06a] | 25 | <userinput>make LDFLAGS=-static &&</userinput>
|
---|
| 26 | <userinput>make install &&</userinput>
|
---|
| 27 | <userinput>cd $LFS/usr/bin &&</userinput>
|
---|
[45714a7] | 28 | <userinput>ln -sf ../../bin/install</userinput></screen></para>
|
---|
[6370fa6] | 29 |
|
---|
[ec710a3] | 30 | <para>Once you have installed fileutils, you can test whether the
|
---|
| 31 | segmentation fault problem has been avoided by running
|
---|
[f66ac14] | 32 | <userinput>$LFS/bin/ls</userinput>. If this works, then you are OK. If
|
---|
| 33 | not, then you need to re-do the installation using the sed commands if
|
---|
| 34 | you didn't use them, or without the sed commands if you did use
|
---|
| 35 | them.</para>
|
---|
[ec710a3] | 36 |
|
---|
[6370fa6] | 37 | </sect2>
|
---|
| 38 |
|
---|