Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in Postgres 13 #267

Open
asharabu opened this issue Apr 16, 2021 · 1 comment
Open

Build error in Postgres 13 #267

asharabu opened this issue Apr 16, 2021 · 1 comment

Comments

@asharabu
Copy link

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
Copy link

rod260185 commented May 30, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants