diff options
Diffstat (limited to 'chapter06/gawk.xml')
-rw-r--r-- | chapter06/gawk.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chapter06/gawk.xml b/chapter06/gawk.xml index 2f361a9d6..6430c7a3f 100644 --- a/chapter06/gawk.xml +++ b/chapter06/gawk.xml @@ -30,10 +30,21 @@ Diffutils, GCC, Gettext, Glibc, Grep, Make, and Sed</seg></seglistitem> <sect2 role="installation"> <title>Installation of Gawk</title> +<para>Patch Gawk to fix a bug which causes it to segfault when invoked on a +non-existent file:</para> + +<screen><userinput>patch -Np1 -i ../&gawk-segfault-patch;</userinput></screen> + <para>Prepare Gawk for compilation:</para> <screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen> +<para>The configure script doesn't detect some functionality correctly. The +following commands correct this problem:</para> + +<screen><userinput>echo "#define HAVE_LANGINFO_CODESET 1" >> config.h +echo "#define HAVE_LC_MESSAGES 1" >> config.h</userinput></screen> + <para>Compile the package:</para> <screen><userinput>make</userinput></screen> |