Segfault-Inc / Multicorn

Data Access Library
https://multicorn.org/
PostgreSQL License
700 stars 145 forks source link

Build error in Postgres 13 #267

Open asharabu opened 3 years ago

asharabu commented 3 years ago

Hi,

I am getting the below error while trying to build. I am using Postgres 13 in ubuntu 18.

root@test:/tmp/Multicorn# make Python version is 3.6 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -I. -I./ -I/usr/include/python3.6m -I. -I./ -I/usr/include/postgresql/13/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/errors.o src/errors.c src/errors.c: In function âreportExceptionâ: src/errors.c:71:6: error: too many arguments to function âerrstartâ if (errstart(severity, FILE, LINE, PG_FUNCNAME_MACRO, TEXTDOMAIN)) ^~~~ In file included from /usr/include/postgresql/13/server/postgres.h:47:0, from src/multicorn.h:2, from src/errors.c:15: /usr/include/postgresql/13/server/utils/elog.h:149:13: note: declared here extern bool errstart(int elevel, const char domain); ^~~~ src/errors.c:73:7: error: too many arguments to function âerrstartâ if (errstart(severity, FILE, LINE, PG_FUNCNAME_MACRO, TEXTDOMAIN)) ^~~~ In file included from /usr/include/postgresql/13/server/postgres.h:47:0, from src/multicorn.h:2, from src/errors.c:15: /usr/include/postgresql/13/server/utils/elog.h:149:13: note: declared here extern bool errstart(int elevel, const char domain); ^~~~ src/errors.c:84:2: error: too few arguments to function âerrfinishâ errfinish(0); ^~~~~ In file included from /usr/include/postgresql/13/server/postgres.h:47:0, from src/multicorn.h:2, from src/errors.c:15: /usr/include/postgresql/13/server/utils/elog.h:150:13: note: declared here extern void errfinish(const char filename, int lineno, const char funcname); ^~~~~

: recipe for target 'src/errors.o' failed make: *** [src/errors.o] Error 1
rod260185 commented 3 years ago

I'm having the same issue and is similar to issue #261 .