=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for postgresql17-repmgr-5.4.1nb7 Building against PostgreSQL 17 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -O2 -I/usr/include -I/usr/pkg/include -I/usr/include/readline -fPIC -DPIC -fvisibility=hidden -std=gnu89 -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I./ -I/usr/pkg/include/postgresql/server -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include/readline -I/usr/pkg/include/libxml2 -I/usr/pkg/include -c -o repmgr.o repmgr.c gsed -E 's/REPMGR_VERSION_DATE.*""/REPMGR_VERSION_DATE "2024-11-19"/' repmgr_version.h.in >repmgr_version.h; \ gsed -i -E 's/PG_ACTUAL_VERSION_NUM/PG_ACTUAL_VERSION_NUM 170000/' repmgr_version.h flex -o'configfile-scan.c' configfile-scan.l gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -O2 -I/usr/include -I/usr/pkg/include -I/usr/include/readline -fPIC -DPIC -fvisibility=hidden -std=gnu89 -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I./ -I/usr/pkg/include/postgresql/server -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include/readline -I/usr/pkg/include/libxml2 -I/usr/pkg/include -c -o repmgrd.o repmgrd.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -O2 -I/usr/include -I/usr/pkg/include -I/usr/include/readline -fPIC -DPIC -fvisibility=hidden -std=gnu89 -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I./ -I/usr/pkg/include/postgresql/server -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include/readline -I/usr/pkg/include/libxml2 -I/usr/pkg/include -c -o repmgrd-physical.o repmgrd-physical.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -O2 -I/usr/include -I/usr/pkg/include -I/usr/include/readline -fPIC -DPIC -fvisibility=hidden -std=gnu89 -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I./ -I/usr/pkg/include/postgresql/server -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include/readline -I/usr/pkg/include/libxml2 -I/usr/pkg/include -c -o repmgr-client.o repmgr-client.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -O2 -I/usr/include -I/usr/pkg/include -I/usr/include/readline -fPIC -DPIC -fvisibility=hidden -std=gnu89 -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I./ -I/usr/pkg/include/postgresql/server -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include/readline -I/usr/pkg/include/libxml2 -I/usr/pkg/include -c -o repmgr-action-primary.o repmgr-action-primary.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -O2 -I/usr/include -I/usr/pkg/include -I/usr/include/readline -fPIC -DPIC -fvisibility=hidden -std=gnu89 -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I./ -I/usr/pkg/include/postgresql/server -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include/readline -I/usr/pkg/include/libxml2 -I/usr/pkg/include -c -o repmgr-action-standby.o repmgr-action-standby.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -O2 -I/usr/include -I/usr/pkg/include -I/usr/include/readline -fPIC -DPIC -fvisibility=hidden -std=gnu89 -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I./ -I/usr/pkg/include/postgresql/server -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include/readline -I/usr/pkg/include/libxml2 -I/usr/pkg/include -c -o repmgr-action-witness.o repmgr-action-witness.c gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -O2 -I/usr/include -I/usr/pkg/include -I/usr/include/readline -fPIC -DPIC -fvisibility=hidden -std=gnu89 -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I./ -I/usr/pkg/include/postgresql/server -I/usr/pkg/include/postgresql/internal -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include/readline -I/usr/pkg/include/libxml2 -I/usr/pkg/include -c -o repmgr-action-cluster.o repmgr-action-cluster.c In file included from /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/postgres_fe.h:25:0, from repmgr.h:65, from repmgr-action-witness.c:23: repmgr-action-witness.c: In function 'do_witness_register': repmgr-action-witness.c:175:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64 {aka long long unsigned int}' [-Wformat=] log_detail(_("database system identifiers on primary node and provided witness node match (%lu)"), ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgrd-physical.c: In function 'monitor_streaming_standby': repmgrd-physical.c:1774:10: warning: declaration of 'upstream_check_result' shadows a previous local [-Wshadow=compatible-local] bool upstream_check_result; ^~~~~~~~~~~~~~~~~~~~~ repmgrd-physical.c:1550:8: note: shadowed declaration is here bool upstream_check_result; ^~~~~~~~~~~~~~~~~~~~~ repmgrd-physical.c:1897:13: warning: declaration of 'degraded_monitoring_elapsed' shadows a previous local [-Wshadow=compatible-local] int degraded_monitoring_elapsed; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ repmgrd-physical.c:1773:10: note: shadowed declaration is here int degraded_monitoring_elapsed = calculate_elapsed(degraded_monitoring_start); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ repmgrd-physical.c:1956:13: warning: declaration of 'degraded_monitoring_elapsed' shadows a previous local [-Wshadow=compatible-local] int degraded_monitoring_elapsed = calculate_elapsed(degraded_monitoring_start); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ repmgrd-physical.c:1773:10: note: shadowed declaration is here int degraded_monitoring_elapsed = calculate_elapsed(degraded_monitoring_start); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/postgres_fe.h:25:0, from repmgr.h:65, from repmgrd-physical.c:22: repmgrd-physical.c: In function 'check_node_can_follow': repmgrd-physical.c:5202:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64 {aka long long unsigned int}' [-Wformat=] log_detail(_("this node's system identifier is %lu, follow target node's system identifier is %lu"), ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgrd-physical.c:5202:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint64 {aka long long unsigned int}' [-Wformat=] log_detail(_("this node's system identifier is %lu, follow target node's system identifier is %lu"), ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgrd-physical.c:5290:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64 {aka long long unsigned int}' [-Wformat=] log_detail(_("follow target server's timeline %lu forked off current database system timeline %lu before current recovery point %X/%X"), ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgrd-physical.c:5290:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint64 {aka long long unsigned int}' [-Wformat=] log_detail(_("follow target server's timeline %lu forked off current database system timeline %lu before current recovery point %X/%X"), ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgr-action-primary.c: In function 'do_primary_unregister': repmgr-action-primary.c:439:16: warning: declaration of 'primary_node_info' shadows a previous local [-Wshadow=compatible-local] t_node_info primary_node_info = T_NODE_INFO_INITIALIZER; ^~~~~~~~~~~~~~~~~ repmgr-action-primary.c:252:14: note: shadowed declaration is here t_node_info primary_node_info = T_NODE_INFO_INITIALIZER; ^~~~~~~~~~~~~~~~~ In file included from /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/postgres_fe.h:25:0, from repmgr.h:65, from repmgr-client.c:60: repmgr-client.c: In function 'main': repmgr-client.c:379:14: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=] _("value for \"--node-name\" must contain fewer than %lu characters"), ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgr-client.c: In function 'copy_remote_files': repmgr-client.c:3185:9: error: 'PG_TEMP_FILE_PREFIX' undeclared (first use in this function) PG_TEMP_FILE_PREFIX); ^~~~~~~~~~~~~~~~~~~ repmgr-client.c:3185:9: note: each undeclared identifier is reported only once for each function it appears in repmgr-action-standby.c: In function 'do_standby_clone': repmgr-action-standby.c:538:10: warning: declaration of 'r' shadows a previous local [-Wshadow=compatible-local] int r; ^ repmgr-action-standby.c:171:8: note: shadowed declaration is here int r = 0; ^ repmgr-action-standby.c:765:7: warning: declaration of 'r' shadows a previous local [-Wshadow=compatible-local] int r; ^ repmgr-action-standby.c:171:8: note: shadowed declaration is here int r = 0; ^ In file included from /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/postgres_fe.h:25:0, from repmgr.h:65, from repmgr-client.c:60: repmgr-client.c: In function 'check_node_can_attach': repmgr-client.c:4252:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64 {aka long long unsigned int}' [-Wformat=] log_detail(_("this node's system identifier is %lu, %s target node's system identifier is %lu"), ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgr-client.c:4252:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64 {aka long long unsigned int}' [-Wformat=] log_detail(_("this node's system identifier is %lu, %s target node's system identifier is %lu"), ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgr-client.c:4262:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64 {aka long long unsigned int}' [-Wformat=] log_detail(_("system identifier is %lu"), local_system_identifier); ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgr-action-standby.c: In function 'do_standby_switchover': repmgr-action-standby.c:3930:13: warning: declaration of 'replication_info' shadows a previous local [-Wshadow=compatible-local] ReplInfo replication_info; ^~~~~~~~~~~~~~~~ repmgr-action-standby.c:3679:11: note: shadowed declaration is here ReplInfo replication_info; ^~~~~~~~~~~~~~~~ repmgr-action-standby.c:4787:7: warning: declaration of 'i' shadows a previous local [-Wshadow=compatible-local] int i = 0; ^ repmgr-action-standby.c:3670:5: note: shadowed declaration is here i; ^ repmgr-action-standby.c:5102:10: warning: declaration of 'command_success' shadows a previous local [-Wshadow=compatible-local] bool command_success; ^~~~~~~~~~~~~~~ repmgr-action-standby.c:3671:8: note: shadowed declaration is here bool command_success = false; ^~~~~~~~~~~~~~~ repmgr-action-standby.c:5672:8: warning: declaration of 'i' shadows a previous local [-Wshadow=compatible-local] int i = 0; ^ repmgr-action-standby.c:3670:5: note: shadowed declaration is here i; ^ gmake: *** [: repmgr-client.o] Error 1 gmake: *** Waiting for unfinished jobs.... In file included from /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/postgres_fe.h:25:0, from repmgr.h:65, from repmgr-action-standby.c:26: repmgr-action-standby.c: In function 'check_source_server': repmgr-action-standby.c:5933:22: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64 {aka long long unsigned int}' [-Wformat=] log_detail(_("source node's system identifier is %lu, replication cluster member \"%s\"'s system identifier is %lu"), ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgr-action-standby.c:5933:22: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64 {aka long long unsigned int}' [-Wformat=] log_detail(_("source node's system identifier is %lu, replication cluster member \"%s\"'s system identifier is %lu"), ^ /pbulk/work/databases/repmgr/work/.buildlink/include/postgresql/internal/c.h:1188:22: note: in definition of macro '_' #define _(x) gettext(x) ^ repmgr-action-standby.c: In function 'check_upstream_config': repmgr-action-standby.c:6508:9: warning: declaration of 'i' shadows a previous local [-Wshadow=compatible-local] int i; ^ repmgr-action-standby.c:6224:8: note: shadowed declaration is here int i; ^ repmgr-action-standby.c: In function 'check_sibling_nodes': repmgr-action-standby.c:8474:22: warning: declaration of 'cell' shadows a previous local [-Wshadow=compatible-local] NodeInfoListCell *cell; ^~~~ repmgr-action-standby.c:8461:20: note: shadowed declaration is here NodeInfoListCell *cell; ^~~~ *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/databases/repmgr *** Error code 1 Stop. make: stopped in /usr/pkgsrc/databases/repmgr