1 | <sect2>
|
---|
2 | <title>Installation of Fileutils</title>
|
---|
3 |
|
---|
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 |
|
---|
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 |
|
---|
14 | <screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &&</userinput>
|
---|
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>
|
---|
19 |
|
---|
20 | <para>Install fileutils by running the following commands:
|
---|
21 | <screen><userinput>./configure --disable-nls \</userinput>
|
---|
22 | <userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput>
|
---|
23 | <userinput>make LDFLAGS=-static &&</userinput>
|
---|
24 | <userinput>make install &&</userinput>
|
---|
25 | <userinput>cd $LFS/usr/bin &&</userinput>
|
---|
26 | <userinput>ln -sf ../../bin/install</userinput></screen></para>
|
---|
27 |
|
---|
28 | <para>Once you have installed fileutils, you can test whether the
|
---|
29 | segmentation fault problem has been avoided by running
|
---|
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>
|
---|
34 |
|
---|
35 | </sect2>
|
---|
36 |
|
---|