grok
grok copied to clipboard
DRY and RAD for regular expressions and then some.
As noted in https://github.com/jordansissel/grok/issues/29, some changes are needed to support `gperf` 3.1. These are backwards incompatible with `gperf` 3.0, hence the need to require `gperf` >= 3.1. `gperf` 3.0 is...
After removing the lines 217-219 from the Makefile (https://github.com/jordansissel/grok/issues/28), the compilation failes with gperf 3.1: >>> Compiling source in /var/tmp/portage/dev-libs/grok-0.9.2-r1/work/grok-0.9.2 ... make -j1 sh ./version.sh --header > grok_version.h [ -f...
Fixes: ``` conf.tab.c:1429:16: error: implicit declaration of function 'yylex' is invalid in C99 [-Werror,-Wimplicit-function-declaration] yychar = YYLEX; ^ conf.tab.c:745:16: note: expanded from macro 'YYLEX' # define YYLEX yylex (&yylval, &yylloc)...
[Paul Eggert explained on the bison mailing list](https://lists.gnu.org/archive/html/bug-bison/2022-01/msg00013.html): > This is because grok's #include order is messed up. conf.y includes conf.tab.h (which uses the type struct config) before it includes...
From logs: ``` so idk enough about bash to make the pr myself but I have a small change to the grok makefile to make it work on os x...
Fixes: ``` conf.y:132:87: error: expected ';' after expression { conf_new_match_pattern(conf, (yyvsp[0].str)) } ^ ; ```
Fixes: ``` conf.y:86:7: error: implicit declaration of function 'conf_new_patternfile' is invalid in C99 [-Werror,-Wimplicit-function-declaration] { conf_new_patternfile(conf); CURPATTERNFILE = (yyvsp[(3) - (3)].str); ;} ^ ```
Does not compile with clang from Xcode 12 or later on macOS: ``` conf.tab.c:1429:16: error: implicit declaration of function 'yylex' is invalid in C99 [-Werror,-Wimplicit-function-declaration] yychar = YYLEX; ^ conf.tab.c:745:16:...
I downloaded the code from the v0.9.2 tag and after fixing a few issues reported elsewhere in this issue tracker, I got something that built. But it reported an unexpected...
I am not sure there's a point reporting bugs, since this project seems to be dormant at best. I just summarize. * debug masks sometimes get lost, for example grok_config.c...