From 5897639a63b476759f18df9496b5d8d8844372fc Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Wed, 3 May 2017 21:28:38 +0000 Subject: Fix a problem with glibc tests and add some explanations to i the configure options. Add a command to touch /root/.vimrc so that the default vim options don't override those in /etc/vimrc. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11240 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/glibc.xml | 51 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 6 deletions(-) (limited to 'chapter06/glibc.xml') diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index 49775184a..5d2afcd81 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -78,11 +78,51 @@ cd build Prepare Glibc for compilation: ../configure --prefix=/usr \ + --disable-werror \ --enable-kernel=&min-kernel; \ --enable-obsolete-rpc \ --enable-stack-protector=strong \ libc_cv_slibdir=/lib + + The meaning of the new configure options: + + + --disable-werror + + This option disables the -Werror option passed to + GCC. This is necessary for running the test suite. + + + + + --enable-obsolete-rpc + + This option builds older RPC code for use with + network file system utilities (nfs). + + + + + --enable-stack-protector=strong + + This option increases system security by adding a known canary + (a random integer) to the stack during a function preamble, and checks + it when the function returns. If it changed, there was a stack + overflow, and the program aborts. + + + + + libc_cv_slibdir=/lib + + This variable sets the correct library for all + systems. We do not want lib64 to be used. + + + + + Compile the package: make @@ -97,17 +137,16 @@ cd build make check - You will probably see some test failures. The Glibc test suite is + You may see some test failures. The Glibc test suite is somewhat dependent on the host system. This is a list of the most common - issues seen for this version of LFS: + issues seen for some versions of LFS: - posix/tst-getaddrinfo4 will always fail due - to not having the necessary networking applications when the tests are - run. posix/tst-getaddrinfo5 is also known - to fail on some architectures. + posix/tst-getaddrinfo4 and + posix/tst-getaddrinfo5 + may fail on some architectures. -- cgit v1.2.3-54-g00ecf