Hi,
the pgpool version we ship is from mid-2018 and fails to build with
clang 10. Since there, upstream has released 4.0, 4.1 and 4.2 branches,
while 3.7 is still maintained.
so i went the easy route and upgraded to 3.7.18. Some things are red
herrings though:
pgpool-regclass.c:124:7: warning: implicit declaration of function
'SplitIdentifierString' is invalid in C99 [-Wimplicit-function-declaration]
if (!SplitIdentifierString(rawname, '.', &namelist))
protocol/child.c:2206:4: warning: implicit declaration of function 'load_hba'
is invalid in C99 [-Wimplicit-function-declaration]
load_hba(get_hba_file_name());
protocol/child.c:2416:3: warning: implicit declaration of function
'ClientAuthentication' is invalid in C99 [-Wimplicit-function-declaration]
ClientAuthentication(frontend);
afaict those are psql functions, it's just that pgpool doesnt include the
corresponding header ? Not planning to dig more in this port, at least this
unbreaks it..
Landry
Index: Makefile
===
RCS file: /cvs/ports/databases/pgpool/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile12 Jul 2019 21:15:34 - 1.13
+++ Makefile20 Feb 2021 17:36:40 -
@@ -2,7 +2,7 @@
COMMENT= connection pool server for PostgreSQL
-DISTNAME= pgpool-II-3.7.5
+DISTNAME= pgpool-II-3.7.18
CATEGORIES=databases
Index: distinfo
===
RCS file: /cvs/ports/databases/pgpool/distinfo,v
retrieving revision 1.9
diff -u -r1.9 distinfo
--- distinfo10 Sep 2018 12:29:24 - 1.9
+++ distinfo20 Feb 2021 17:36:40 -
@@ -1,2 +1,2 @@
-SHA256 (pgpool-II-3.7.5.tar.gz) = UQrHzQDiKW3FCtHMvIb5MI38Ns+pjQQGa5o3pUZMR8E=
-SIZE (pgpool-II-3.7.5.tar.gz) = 3276279
+SHA256 (pgpool-II-3.7.18.tar.gz) = 0I4zuZYUjHukHw5PWjMLU5Ec1srJTHh3gIewaMjaCX4=
+SIZE (pgpool-II-3.7.18.tar.gz) = 3447131
Index: pkg/PLIST
===
RCS file: /cvs/ports/databases/pgpool/pkg/PLIST,v
retrieving revision 1.3
diff -u -r1.3 PLIST
--- pkg/PLIST 19 Dec 2017 09:02:03 - 1.3
+++ pkg/PLIST 20 Feb 2021 17:36:40 -
@@ -1,6 +1,7 @@
@comment $OpenBSD: PLIST,v 1.3 2017/12/19 09:02:03 pea Exp $
@newgroup _pgpool:690
@newuser _pgpool:690:_pgpool:daemon:pgpool daemon:/nonexistent:/sbin/nologin
+@rcscript ${RCDIR}/pgpool
@bin bin/pcp_attach_node
@bin bin/pcp_detach_node
@bin bin/pcp_node_count
@@ -20,10 +21,10 @@
include/pcp.h
include/pool_process_reporting.h
include/pool_type.h
-lib/libpcp.a
+@static-lib lib/libpcp.a
lib/libpcp.la
@lib lib/libpcp.so.${LIBpcp_VERSION}
-lib/postgresql/pgpool-regclass.so
+@so lib/postgresql/pgpool-regclass.so
@man man/man8/pgpool.8
share/examples/pgpool-II/
share/examples/pgpool-II/pcp.conf.sample
@@ -43,4 +44,3 @@
share/postgresql/extension/pgpool-regclass.sql
share/postgresql/extension/pgpool_regclass--1.0.sql
share/postgresql/extension/pgpool_regclass.control
-@rcscript ${RCDIR}/pgpool