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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/silenceray/article/details/69383684
在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上编译的时候也是会出错的,错误和上述差不过。

猜你喜欢

转载自blog.csdn.net/silenceray/article/details/69383684