您的位置:首页 > 数据库

pl/proxy-2.5安装在postgresql9.6上无法编译

2017-04-06 11:17 323 查看
在postgresql安装编译pl/ploxy-2.5报错

postgres@node2 plproxy-2.5]$ make

flex -osrc/scanner.c src/scanner.l

bison -b src/parser -d src/parser.y

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -fpic -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include -DNO_SELECT=0
-I. -I./ -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include/internal -D_GNU_SOURCE   -c -o src/scanner.o src/scanner.c

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -fpic -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include -DNO_SELECT=0
-I. -I./ -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include/internal -D_GNU_SOURCE   -c -o src/parser.tab.o src/parser.tab.c

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -fpic -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include -DNO_SELECT=0
-I. -I./ -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include/internal -D_GNU_SOURCE   -c -o src/cluster.o src/cluster.c

src/cluster.c: In function ‘get_version’:

src/cluster.c:281: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘uint64’

src/cluster.c: In function ‘get_userinfo’:

src/cluster.c:940: error: too few arguments to function ‘GetUserNameFromId’

src/cluster.c: In function ‘resolve_query’:

src/cluster.c:1117: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘uint64’

gmake: *** [src/cluster.o] Error 1

本人之前在9.4和9.2上安装过没有出现问题,个人判断是pl/ploxy-2.5不支持pg9.6,需要自己改一下内容,我还没找到方法。pl/ploxy-2.5是2012年的东西了,也许久不更新了。如果想做pl/ploxy-2.5的实验,建议不要用pg9.6了

后经实验,pl/ploxy-2.5在pg9.5上编译的时候也是会出错的,错误和上述差不过。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: