GNU bug report logs -
#17072
dfa change apparently needed on Irix
Previous Next
Reported by: Aharon Robbins <arnold <at> skeeve.com>
Date: Sun, 23 Mar 2014 19:34:02 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
FYI
Arnold
-------------------
> Date: Tue, 18 Mar 2014 13:44:57 -0600 (MDT)
> From: "Nelson H. F. Beebe" <beebe <at> math.utah.edu>
> To: "Arnold Robbins" <arnold <at> skeeve.com>
> Cc: beebe <at> math.utah.edu
> Subject: gawk-4.1.0f: a patch for a failed build
>
> On SGI IRIX MIPS, gawk-4.1.0a had built and installed without problems
> on 13-Dec-2013.
>
> For gawk-4.1.0f, however, I had to make one source code patch:
>
> % diff -c dfa.c.org dfa.c
> *** dfa.c.org Mon Mar 10 14:39:05 2014
> --- dfa.c Mon Mar 17 18:04:46 2014
> ***************
> *** 43,49 ****
> #include "missing_d/gawkbool.h"
> #endif /* HAVE_STDBOOL_H */
>
> - #include "dfa.h"
>
> /* Gawk doesn't use Gnulib, so don't assume static_assert is present. */
> #ifndef static_assert
> --- 43,48 ----
> ***************
> *** 89,94 ****
> --- 88,95 ----
>
> #include "xalloc.h"
>
> + #include "dfa.h"
> +
> #ifdef GAWK
> static int
> is_blank (int c)
>
> The reason for the patch is this error:
>
> dfa.c:956: error: conflicting types for 'case_folded_counterparts'
> dfa.h:111: error: previous declaration of 'case_folded_counterparts' was here
> dfa.c:956: error: conflicting types for 'case_folded_counterparts'
>
> What happens is that the prototype for that function has wchar_t
> arguments, but between the time that prototype is seen, and the first
> reference to the function is seen, wchar_t has been changed to char.
> Moving the inclusion of "dfa.h" later in "dfa.c" solved the problem.
>
> I configured and built like this:
>
> env CC='gcc -std=c99' CFLAGS=-D_SGI_SOURCE LDFLAGS='-L/usr/local/lib -Wl,-rpath,/usr/local/lib' ./configure && $B/make all check
This bug report was last modified 11 years and 24 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.