libgpg-error doesn't build with new nawk

From: Yuri Pankov <yuri.pankov_at_gmail.com>
Date: Fri, 8 Jun 2007 08:04:37 +0400
Hi,

After new nawk version import, libgpg-error doesn't build:

===>  Building for libgpg-error-1.4_1
make  all-recursive
Making all in intl
Making all in m4
Making all in src
nawk -f ./mkstrtable.awk -v textidx=3  ./err-sources.h.in >err-sources.h
nawk -f ./mkstrtable.awk -v textidx=3  ./err-codes.h.in >err-codes.h
nawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
nawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
cc -E _mkerrcodes.h | grep GPG_ERR_ | nawk -f ./mkerrcodes.awk
>mkerrcodes.h
nawk: field separator [         ]+GPG_E... is too long
 source line number 66
*** Error code 2

Change in question:
--- src/contrib/one-true-awk/lib.c	2005/05/16 19:11:33	1.1.1.4
+++ src/contrib/one-true-awk/lib.c	2007/06/05 15:33:51	1.1.1.5
_at__at_ -40,9 +40,9 _at__at_ char	*fields;
 int	fieldssize = RECSIZE;
 
 Cell	**fldtab;	/* pointers to Cells */
-char	inputFS[100] = " ";
+char	inputFS[10] = " ";
               ^^^^^

Is maximum length of field separator documented somewhere?


Thanks,
Yuri
Received on Fri Jun 08 2007 - 02:05:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:12 UTC