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上编译的时候也是会出错的,错误和上述差不过。
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上编译的时候也是会出错的,错误和上述差不过。
相关文章推荐
- postgresql9.6 安装plpython3
- [转]PostgreSQL 数据库集群和PL/Proxy配置安装指南
- PostgreSQL9.6 pldebugger安装
- PostgreSQL 数据库集群和PL/Proxy配置安装指南
- PostgreSQL 数据库集群和PL/Proxy配置安装指南
- Msyql-proxy的编译安装
- postgresql PL/Java初步-安装篇
- 编译安装新内核后无法进入系统提示Kernel Panic
- ubuntu下 编译安装postgresql 8.2.5
- Postgresql 安装pgstatspack无法启动
- Postgresql8.3数据库在linux编译安装说明
- vs2005编译的release MFC程序无法在未安装2005的机器上使用的问题解决
- Ubuntu下PostgreSQL数据库集群(PL/Proxy)配置方法
- 关于安装 DirectX SDk Dec 2005 后无法编译DirectShow应用程序的问题
- mysql-proxy编译安装
- Postgresql: 解决无法安装uuid-ossp的问题
- apache单独编译添加proxy编译安装
- 使用pl/sql developer开发工具无法编译存储过程,触发器,包等程序文件
- wubi 安装Ubuntu (windows下安装),重新编译内核后无法进入系统解决方案(只能进入grub)
- 使用pl/sql developer开发工具无法编译存储过程,触发器,包等程序文件