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
|
---|
9 | package.</para>
|
---|
10 |
|
---|
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
|
---|
13 | case, you'll need to remove the fileutils-&fileutils-version; directory
|
---|
14 | and unpack it again from the tarball before continuing.
|
---|
15 |
|
---|
16 | <screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &&</userinput>
|
---|
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>
|
---|
21 |
|
---|
22 | <para>Install fileutils by running the following commands:
|
---|
23 | <screen><userinput>./configure --disable-nls \</userinput>
|
---|
24 | <userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput>
|
---|
25 | <userinput>make LDFLAGS=-static &&</userinput>
|
---|
26 | <userinput>make install &&</userinput>
|
---|
27 | <userinput>cd $LFS/usr/bin &&</userinput>
|
---|
28 | <userinput>ln -sf ../../bin/install</userinput></screen></para>
|
---|
29 |
|
---|
30 | <para>Once you have installed fileutils, you can test whether the
|
---|
31 | segmentation fault problem has been avoided by running
|
---|
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>
|
---|
36 |
|
---|
37 | </sect2>
|
---|
38 |
|
---|