pllua / pllua-deprecated

[DEPRECATED] This repository is no longer maintained. Please follow https://github.com/pllua/pllua
197 stars 16 forks source link

Build failure with PG11: error: macro "AllocSetContextCreate" passed 5 arguments, but takes just 3 #68

Closed df7cb closed 6 years ago

df7cb commented 6 years ago

pllua fails to build against PG 11beta1:

11:17:41 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fdebug-prefix-map=/build/postgresql-11-LcCi7f/postgresql-11-11~beta1=. -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -I/usr/include/lua5.1  -I. -I/<<PKGBUILDDIR>> -I/usr/include/postgresql/11/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/mit-krb5  -c -o pllua_xact_cleanup.o /<<PKGBUILDDIR>>/pllua_xact_cleanup.c
11:17:41 /<<PKGBUILDDIR>>/pllua_xact_cleanup.c: In function 'pllua_init_common_ctx':
11:17:41 /<<PKGBUILDDIR>>/pllua_xact_cleanup.c:136:33: error: macro "AllocSetContextCreate" passed 5 arguments, but takes just 3
11:17:41          ALLOCSET_DEFAULT_MAXSIZE);
11:17:41                                  ^
11:17:41 /<<PKGBUILDDIR>>/pllua_xact_cleanup.c:134:15: error: 'AllocSetContextCreate' undeclared (first use in this function); did you mean 'SlabContextCreate'?
11:17:41      cmn_ctx = AllocSetContextCreate(TopMemoryContext,
11:17:41                ^~~~~~~~~~~~~~~~~~~~~
11:17:41                SlabContextCreate
11:17:41 /<<PKGBUILDDIR>>/pllua_xact_cleanup.c:134:15: note: each undeclared identifier is reported only once for each function it appears in
11:17:42 make[2]: *** [<builtin>: pllua_xact_cleanup.o] Error 1