eggyknap/pllolcode

Doesn't compile with recent dec tools

FranckPachot opened this issue · 0 comments

I tried to compile on PG11 centos7 but got many errors:

#13 0.573 pllolcode.c:30:13: error: conflicting types for 'pllolcode_yyparse'
#13 0.573  extern int  pllolcode_yyparse(void *result);
#13 0.573              ^
#13 0.573 In file included from pllolcode.c:21:0:
#13 0.573 gram.tab.h:140:5: note: previous declaration of 'pllolcode_yyparse' was here
#13 0.574 pllolcode.c: In function 'pl_lolcode_validator':
#13 0.574 pllolcode.c:277:18: warning: variable 'procStruct' set but not used [-Wunused-but-set-variabl
e]
#13 0.574      Form_pg_proc procStruct;
#13 0.574                   ^
#13 0.578 make: *** [pllolcode.o] Error 1

Then after removing the conflict:

#14 0.670 pllolcode_exec.c:28:28: error: macro "castNode" requires 2 arguments, but only 1 given
#14 0.670  void castNode(lolNode *node);
#14 0.670                             ^
#14 0.671 pllolcode_exec.c:357:23: error: macro "castNode" requires 2 arguments, but only 1 given
#14 0.671  castNode(lolNode *node)
#14 0.671                        ^
#14 0.671 pllolcode_exec.c:358:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' to
ken
#14 0.671  {
#14 0.671  ^
#14 0.671 pllolcode_exec.c: In function 'executeNode':
#14 0.671 pllolcode_exec.c:640:26: error: macro "castNode" requires 2 arguments, but only 1 given
#14 0.671              castNode(node);
#14 0.671                           ^
#14 0.672 pllolcode_exec.c: In function 'SPInode':
#14 0.672 pllolcode_exec.c:695:13: warning: format '%d' expects argument of type 'int', but argument 3
has type 'uint64' [-Wformat=]
#14 0.672              elog(DEBUG3, "PL/LOLCODE SPI: Processed %d rows", SPI_processed);
#14 0.672              ^
#14 0.676 make: *** [pllolcode_exec.o] Error 1

If you have compiled it on recent version I'm interested. I find this project a good (and fun) way to show custom languages