diff options
Diffstat (limited to 'chapter06/gawk.xml')
-rw-r--r-- | chapter06/gawk.xml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/chapter06/gawk.xml b/chapter06/gawk.xml index 41df7f965..d25196e41 100644 --- a/chapter06/gawk.xml +++ b/chapter06/gawk.xml @@ -28,8 +28,8 @@ 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> +<para>Under some circumstances, Gawk-&gawk-version; attempts to free a chunk +of memory that was not allocated. This bug is fixed by the following patch:</para> <screen><userinput>patch -Np1 -i ../&gawk-segfault-patch;</userinput></screen> @@ -37,11 +37,15 @@ non-existent file:</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> +<para>Due to a bug in the <command>./configure</command> script, Gawk fails +to detect certain aspects of locale support in glibc. This +bug leads to, e.g., Gettext testsuite failures. Work around this issue +by appending the missing macro definitions to <filename>config.h</filename>:</para> -<screen><userinput>echo "#define HAVE_LANGINFO_CODESET 1" >> config.h -echo "#define HAVE_LC_MESSAGES 1" >> config.h</userinput></screen> +<screen><userinput>cat >>config.h <<"EOF" +<literal>#define HAVE_LANGINFO_CODESET 1 +#define HAVE_LC_MESSAGES 1</literal> +EOF</userinput></screen> <para>Compile the package:</para> |