Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ns-mx!ns-mx.uiowa.edu!dbrenner From: dbrenner@icon.weeg.uiowa.edu (Doug Brenner) Newsgroups: comp.sys.next Subject: GNU Awk 2.11 (Next patches) Message-ID: Date: 8 Jun 90 22:53:16 GMT Sender: news@ns-mx.uiowa.edu Organization: U of Iowa, Iowa City, IA Lines: 80 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 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 < { $$ = NULL; } --- > { $$ = Node_illegal; } 391c391 < { $$ = NULL; } --- > { $$ = Node_illegal; } 396c396 < { $$ = NULL; } --- > { $$ = Node_illegal; } 398c398 < { $$ = NULL; } --- > { $$ = 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