[comp.sys.next] GNU Awk 2.11

dbrenner@icon.weeg.uiowa.edu (Doug Brenner) (06/09/90)

The GNU Awk README file says:

   "This is GNU Awk 2.11. It should be upwardly compatible with the
   System V Release 4 awk."

I have successfully compiled GNU Awk on my Next computer with a few
minor changes.  Rob Kedoin <rob@lighthouse.com> of Lighthouse Design,
has also been able to install it on his Next.

GNU Awk is available from comp.sources.unix or via anonymous ftp at
prep.ai.mit.edu (directory pub/gnu, filename gawk-2.11.1.tar.Z).

Thanks should go to the GNU Awk authors for making GNU Awk; it looks
to be a good piece of work.

Here is the diff output to guide your changes.  I hope it helps.
====================
diff gawk-2.11.orig/Makefile gawk-2.11/Makefile
61c61
< MISSING = -DSTRERROR_MISSING -DSTRCASE_MISSING
---
> # MISSING = -DSTRERROR_MISSING -DSTRCASE_MISSING
76a77,79
> # NeXT running Mach 1.0
> MISSING = -DBSDSTDIO -DSTRCASE_MISSING -DTMPNAM_MISSING
> 
83c86
< CC=		 gcc
---
> # CC=		 gcc
92,93c95,96
< #PARSER = yacc
< PARSER = bison
---
> PARSER = yacc
> #PARSER = bison
====================
diff gawk-2.11.orig/awk.h gawk-2.11/awk.h
53a54
> #ifndef __STDC__
55a57
> #endif
80,82c82,84
< /* extern int fprintf(FILE *, char *, ...); */
< extern int fprintf();
< extern int vfprintf();
---
> extern int fprintf(FILE *, const char *, ...);
> extern int sprintf(char *s, const char *format, ...);
> extern int vfprintf(FILE *, const char *, va_list);
84c86
< extern int fwrite(char *, int, int, FILE *);
---
> extern size_t fwrite(const void *, size_t, size_t, FILE *);
96c98
< extern int sscanf(/* char *, char *, ... */);
---
> extern int sscanf(const char *s, const char *format, ...);
====================
diff gawk-2.11.orig/awk.y gawk-2.11/awk.y
389c389
< 		{ $<nodetypeval>$ = NULL; }
---
> 		{ $<nodetypeval>$ = Node_illegal; }
391c391
< 		{ $<nodetypeval>$ = NULL; }
---
> 		{ $<nodetypeval>$ = Node_illegal; }
396c396
< 		{ $<nodetypeval>$ = NULL; }
---
> 		{ $<nodetypeval>$ = Node_illegal; }
398c398
< 		{ $<nodetypeval>$ = NULL; }
---
> 		{ $<nodetypeval>$ = Node_illegal; }
====================
--
Doug Brenner, Weeg Computing Center, The University of Iowa, Iowa City, IA
dbrenner@umaxc.weeg.uiowa.edu | dbrennpg@uiamvs.bitnet | 319-335-5444.at&t