=> 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 syslog-ng-snmp-3.38.1nb1 GEN modules/afsnmp/afsnmp-grammar.y CC modules/afsnmp/libafsnmp_la-afsnmpdest.lo CC modules/afsnmp/libafsnmp_la-afsnmp-plugin.lo CC modules/afsnmp/libafsnmp_la-afsnmp-parser.lo CC modules/afsnmp/libafsnmp_la-snmptrapd-header-parser.lo CC modules/afsnmp/libafsnmp_la-snmptrapd-parser.lo CC modules/afsnmp/libafsnmp_la-varbindlist-scanner.lo YACC modules/afsnmp/afsnmp-grammar.c In file included from ./lib/cfg-grammar-internal.h:40:0, from /source/lib/cfg-grammar.y:38, from ./lib/plugin-types.h:40, from modules/afsnmp/afsnmpdest.c:36: ./lib/str-utils.h: In function 'strsplit': ./lib/str-utils.h:129:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const gchar *delim_pos = NULL; ^~~~~ ./lib/str-utils.h:143:7: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gint len = delim_pos - remainder; ^~~~ In file included from ./lib/cfg-grammar-internal.h:40:0, from /source/lib/cfg-grammar.y:38, from ./lib/plugin-types.h:40, from modules/afsnmp/afsnmp-plugin.c:26: ./lib/str-utils.h: In function 'strsplit': ./lib/str-utils.h:129:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const gchar *delim_pos = NULL; ^~~~~ ./lib/str-utils.h:143:7: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gint len = delim_pos - remainder; ^~~~ modules/afsnmp/snmptrapd-header-parser.c: In function '_parse_v1_uptime': modules/afsnmp/snmptrapd-header-parser.c:123:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const gchar *uptime_start = *self->input; ^~~~~ modules/afsnmp/snmptrapd-header-parser.c: In function '_parse_v1_trap_type_and_subtype': modules/afsnmp/snmptrapd-header-parser.c:151:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const gchar *subtype_start = type_end + 1; ^~~~~ modules/afsnmp/snmptrapd-header-parser.c:158:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const gchar *subtype_end = strpbrk(subtype_start, ")\n"); ^~~~~ modules/afsnmp/snmptrapd-header-parser.c: In function '_parse_v1_enterprise_oid': modules/afsnmp/snmptrapd-header-parser.c:183:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gsize enterprise_string_length = input_left - *self->input_len; ^~~~~ modules/afsnmp/snmptrapd-header-parser.c: In function '_parse_transport_info': modules/afsnmp/snmptrapd-header-parser.c:204:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const gchar *transport_info_start = *self->input; ^~~~~ modules/afsnmp/snmptrapd-header-parser.c:217:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gsize transport_info_len = transport_info_end - transport_info_start; ^~~~~ modules/afsnmp/snmptrapd-header-parser.c: In function '_parse_hostname': modules/afsnmp/snmptrapd-header-parser.c:238:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gsize hostname_length = input_left - *self->input_len; ^~~~~ modules/afsnmp/snmptrapd-header-parser.c: In function '_try_parse_v1_info': modules/afsnmp/snmptrapd-header-parser.c:288:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] SnmpTrapdHeaderParserStep v1_info_parser_steps[] = ^~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors modules/afsnmp/afsnmpdest.c: In function 'snmpdest_dd_set_snmp_obj': modules/afsnmp/afsnmpdest.c:158:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gchar *s_objectid = "objectid"; ^~~~~ modules/afsnmp/afsnmpdest.c:178:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gint *pcode = g_new(gint, 1); ^~~~ modules/afsnmp/afsnmpdest.c: In function 'parse_oid_tokens': modules/afsnmp/afsnmpdest.c:351:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gchar **oid_tokens = g_strsplit(oid_str, ".", max_oid_number); ^~~~~ modules/afsnmp/afsnmpdest.c: In function 'snmpdest_worker_insert': modules/afsnmp/afsnmpdest.c:405:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] oid parsed_oids[MAX_OIDS]; ^~~ modules/afsnmp/afsnmpdest.c:420:7: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gint code = *((gint *)snmp_code->data); ^~~~ modules/afsnmp/afsnmpdest.c:423:7: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gchar type_code = snmp_dd_get_object_type_code(code); ^~~~~ modules/afsnmp/afsnmpdest.c:440:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gint success = snmp_send(self->ss, pdu); ^~~~ modules/afsnmp/afsnmpdest.c: In function 'snmpdest_dd_session_init': modules/afsnmp/afsnmpdest.c:481:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gchar *args[24]; ^~~~~ modules/afsnmp/afsnmpdest.c:535:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gint arg = snmp_parse_args(argc, args, &self->session, "C:", optProc); ^~~~ modules/afsnmp/afsnmpdest.c: In function 'snmpdest_dd_init': modules/afsnmp/afsnmpdest.c:632:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gchar err_msg[128]; ^~~~~ modules/afsnmp/afsnmpdest.c: In function 'snmpdest_worker_thread_init': modules/afsnmp/afsnmpdest.c:716:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gchar *tz = self->template_options.time_zone[LTZ_LOCAL]; ^~~~~ gmake: *** [Makefile:18743: modules/afsnmp/libafsnmp_la-afsnmp-plugin.lo] Error 1 gmake: *** Waiting for unfinished jobs.... cc1: some warnings being treated as errors gmake: *** [Makefile:18757: modules/afsnmp/libafsnmp_la-snmptrapd-header-parser.lo] Error 1 In file included from ./lib/scanner/kv-scanner/kv-scanner.h:27:0, from modules/afsnmp/varbindlist-scanner.h:26, from modules/afsnmp/snmptrapd-parser.c:25: ./lib/str-utils.h: In function 'strsplit': ./lib/str-utils.h:129:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const gchar *delim_pos = NULL; ^~~~~ ./lib/str-utils.h:143:7: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gint len = delim_pos - remainder; ^~~~ modules/afsnmp/snmptrapd-parser.c: In function 'snmptrapd_parser_process': modules/afsnmp/snmptrapd-parser.c:186:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] GString *generated_message = NULL; ^~~~~~~ modules/afsnmp/snmptrapd-parser.c:191:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] SnmpTrapdNVContext nv_context = ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors In file included from ./lib/scanner/kv-scanner/kv-scanner.h:27:0, from modules/afsnmp/varbindlist-scanner.h:26, from modules/afsnmp/varbindlist-scanner.c:23: ./lib/str-utils.h: In function 'strsplit': ./lib/str-utils.h:129:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const gchar *delim_pos = NULL; ^~~~~ ./lib/str-utils.h:143:7: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gint len = delim_pos - remainder; ^~~~ modules/afsnmp/varbindlist-scanner.c: In function '_extract_type': modules/afsnmp/varbindlist-scanner.c:56:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const gchar *type_end = strpbrk(type_start, ": \t"); ^~~~~ modules/afsnmp/varbindlist-scanner.c:65:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] gsize type_len = type_end - type_start; ^~~~~ cc1: some warnings being treated as errors gmake: *** [Makefile:18771: modules/afsnmp/libafsnmp_la-varbindlist-scanner.lo] Error 1 gmake: *** [Makefile:18764: modules/afsnmp/libafsnmp_la-snmptrapd-parser.lo] Error 1 cc1: some warnings being treated as errors gmake: *** [Makefile:18736: modules/afsnmp/libafsnmp_la-afsnmpdest.lo] Error 1 modules/afsnmp/afsnmp-grammar.h is unchanged *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/sysutils/syslog-ng-snmp *** Error code 1 Stop. make: stopped in /usr/pkgsrc/sysutils/syslog-ng-snmp