-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Nice work on the plugin, was able to get it to work on 8.4 as expected, but not quite 10.
Env: Raspberry Pi 3 B
Raspbian GNU/Linux 9 (stretch)
Built from source, pg_config:
PGXS = /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--with-perl' '--with-python' '--with-tcl' '--with-systemd' '--with-uuid=ossp' '--with-openssl' '--with-libxml' '--enable-debug' '--with-gssapi'
CC = gcc
CPPFLAGS = -DFRONTEND -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -O2
CFLAGS_SL = -fPIC
LDFLAGS = -L../../src/common -Wl,--as-needed -Wl,-rpath,'/usr/local/pgsql/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lpthread -lxml2 -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lrt -lcrypt -ldl -lm
VERSION = PostgreSQL 10.0
In file included from src/postpic.c:21:0:
src/postpic.c: In function ‘lo_size’:
src/postpic.c:978:22: error: ‘lo_lseek’ undeclared (first use in this function); did you mean ‘lseek’?
DirectFunctionCall3(lo_lseek, Int32GetDatum(fd), Int32GetDatum(0),
^
/usr/local/pgsql/include/server/fmgr.h:589:26: note: in definition of macro ‘DirectFunctionCall ’
DirectFunctionCall3Coll(func, InvalidOid, arg1, arg2, arg3)
^~~~
src/postpic.c:978:22: note: each undeclared identifier is reported only once for each function it appears in
DirectFunctionCall3(lo_lseek, Int32GetDatum(fd), Int32GetDatum(0),
^
/usr/local/pgsql/include/server/fmgr.h:589:26: note: in definition of macro ‘DirectFunctionCall ’
DirectFunctionCall3Coll(func, InvalidOid, arg1, arg2, arg3)
^~~~
src/postpic.c:980:27: error: ‘lo_tell’ undeclared (first use in this function); did you mean ‘be_lo_tell’?
sz = DirectFunctionCall1(lo_tell, Int32GetDatum(fd));
^
/usr/local/pgsql/include/server/fmgr.h:585:26: note: in definition of macro ‘DirectFunctionCall ’
DirectFunctionCall1Coll(func, InvalidOid, arg1)
^~~~
src/postpic.c: In function ‘lo_readblob’:
src/postpic.c:992:29: error: ‘lo_open’ undeclared (first use in this function); did you mean ‘be_lo_open’?
fd_d = DirectFunctionCall2(lo_open, ObjectIdGetDatum(loid),
^
/usr/local/pgsql/include/server/fmgr.h:587:26: note: in definition of macro ‘DirectFunctionCall ’
DirectFunctionCall2Coll(func, InvalidOid, arg1, arg2)
^~~~
src/postpic.c:1004:22: error: ‘lo_close’ undeclared (first use in this function); did you mean close’?
DirectFunctionCall1(lo_close, Int32GetDatum(fd));
^
/usr/local/pgsql/include/server/fmgr.h:585:26: note: in definition of macro ‘DirectFunctionCall ’
DirectFunctionCall1Coll(func, InvalidOid, arg1)
Lemme know if you need any info!