=> Bootstrap dependency digest>=20010302: found digest-20190127 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for netramet-4.4.20nb1 cd src/snmplib; /opt/pkg/bin/bmake clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/asn1.c clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/mib.c ../../src/snmplib/mib.c:179:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static parse_subtree(struct tree *subtree, ~~~~~~ ^ ../../src/snmplib/mib.c:392:31: warning: format specifies type 'unsigned long' but the argument has type 'Int32' (aka 'int') [-Wformat] sprintf(buf, "Gauge: %lu", *var->val.integer); ~~~ ^~~~~~~~~~~~~~~~~ %d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ ../../src/snmplib/mib.c:404:24: warning: format specifies type 'unsigned long' but the argument has type 'Int32' (aka 'int') [-Wformat] sprintf(buf, "%lu", *var->val.integer); ~~~ ^~~~~~~~~~~~~~~~~ %d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ ../../src/snmplib/mib.c:449:29: warning: format specifies type 'unsigned long' but the argument has type 'Int32' (aka 'int') [-Wformat] sprintf(buf, "INT: %lu", *var->val.integer); ~~~ ^~~~~~~~~~~~~~~~~ %d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ ../../src/snmplib/mib.c:795:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static parse_subtree(struct tree *subtree, ~~~~~~ ^ 5 warnings generated. clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/parse.c clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/snmp.c clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/snmpapi.c ../../src/snmplib/snmpapi.c:453:19: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] if ((addr = inet_addr(session->peername)) != -1) { ^ ../../src/snmplib/snmpapi.c:553:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(slp->internal->sd); ^ ../../src/snmplib/snmpapi.c:1102:10: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] inet_ntoa(pdu->address.sin_addr)); ^ ../../src/snmplib/snmpapi.c:1102:10: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] inet_ntoa(pdu->address.sin_addr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/snmplib/snmpapi.c:1270:32: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] (struct sockaddr *)&from, &fromlength); ^~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:712:27: note: passing argument to parameter here socklen_t * __restrict) __DARWIN_ALIAS_C(recvfrom); ^ ../../src/snmplib/snmpapi.c:1290:9: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] inet_ntoa(from.sin_addr)); ^ ../../src/snmplib/snmpapi.c:1290:9: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] inet_ntoa(from.sin_addr)); ^~~~~~~~~~~~~~~~~~~~~~~~ ../../src/snmplib/snmpapi.c:1582:8: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] inet_ntoa(rp->pdu->address.sin_addr)); ^ ../../src/snmplib/snmpapi.c:1582:8: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] inet_ntoa(rp->pdu->address.sin_addr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 9 warnings generated. clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/snmpagnt.c clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/snmpauth.c clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/snmpclnt.c ar r libsnmp.a asn1.o mib.o parse.o snmp.o snmpapi.o snmpagnt.o snmpauth.o snmpclnt.o ar: creating archive libsnmp.a ranlib libsnmp.a cd src/apps; /opt/pkg/bin/bmake clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/apps/snmptest.c ../../src/apps/snmptest.c:131:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(msg); fflush(stdout); ^~~ ../../src/apps/snmptest.c:131:11: note: treat the string as an argument to avoid this printf(msg); fflush(stdout); ^ "%s", ../../src/apps/snmptest.c:152:4: warning: implicit declaration of function 'init_mib' is invalid in C99 [-Wimplicit-function-declaration] init_mib(); ^ ../../src/apps/snmptest.c:244:17: warning: implicit declaration of function 'input_variable' is invalid in C99 [-Wimplicit-function-declaration] while ((ret = input_variable(vp)) == -1) ^ ../../src/apps/snmptest.c:334:29: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] printf("from %s\n", inet_ntoa(response->address.sin_addr)); ^ ../../src/apps/snmptest.c:334:29: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] printf("from %s\n", inet_ntoa(response->address.sin_addr)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %d ../../src/apps/snmptest.c:340:8: warning: implicit declaration of function 'print_variable' is invalid in C99 [-Wimplicit-function-declaration] print_variable(vars->name, vars->name_length, vars); ^ ../../src/apps/snmptest.c:352:4: warning: implicit declaration of function 'print_objid' is invalid in C99 [-Wimplicit-function-declaration] print_objid(vars->name, vars->name_length); ^ ../../src/apps/snmptest.c:386:28: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] subidentifier = atoi(cp); ^~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:135:23: note: passing argument to parameter here int atoi(const char *); ^ ../../src/apps/snmptest.c:413:14: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] sscanf(cp, "%x", &subidentifier); ^~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:181:36: note: passing argument to parameter here int sscanf(const char * __restrict, const char * __restrict, ...) __scanflike(2, 3); ^ ../../src/apps/snmptest.c:428:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] input_variable(struct variable_list *vp) ^ ../../src/apps/snmptest.c:489:9: warning: implicit declaration of function 'read_objid' is invalid in C99 [-Wimplicit-function-declaration] if (!read_objid(buf, name, &vp->name_length)) ^ ../../src/apps/snmptest.c:539:13: warning: passing 'u_char [256]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(value, buf); ^~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:84:27: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~ ../../src/apps/snmptest.c:566:22: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] *(vp->val.u_int) = inet_addr(buf); ^ 13 warnings generated. clang -L/usr/lib -L/opt/pkg/lib -o snmptest snmptest.o -lresolv -lm ../../src/snmplib/libsnmp.a clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/apps/snmpwalk.c ../../src/apps/snmpwalk.c:136:4: warning: implicit declaration of function 'init_mib' is invalid in C99 [-Wimplicit-function-declaration] init_mib(); ^ ../../src/apps/snmpwalk.c:173:7: warning: implicit declaration of function 'read_objid' is invalid in C99 [-Wimplicit-function-declaration] if (read_objid(argv[arg], root, &rootlen)) { ^ ../../src/apps/snmpwalk.c:232:5: warning: implicit declaration of function 'print_variable' is invalid in C99 [-Wimplicit-function-declaration] print_variable(vars->name, vars->name_length, vars); ^ ../../src/apps/snmpwalk.c:268:8: warning: implicit declaration of function 'print_objid' is invalid in C99 [-Wimplicit-function-declaration] print_objid(vars->name, vars->name_length); ^ 4 warnings generated. clang -L/usr/lib -L/opt/pkg/lib -o snmpwalk snmpwalk.o -lresolv -lm ../../src/snmplib/libsnmp.a clang -O2 -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/apps/snmpbulkwalk.c ../../src/apps/snmpbulkwalk.c:137:4: warning: implicit declaration of function 'init_mib' is invalid in C99 [-Wimplicit-function-declaration] init_mib(); ^ ../../src/apps/snmpbulkwalk.c:177:7: warning: implicit declaration of function 'read_objid' is invalid in C99 [-Wimplicit-function-declaration] if (read_objid(argv[arg], root, &rootlen)) { ^ ../../src/apps/snmpbulkwalk.c:241:5: warning: implicit declaration of function 'print_variable' is invalid in C99 [-Wimplicit-function-declaration] print_variable(vars->name, vars->name_length, vars); ^ ../../src/apps/snmpbulkwalk.c:278:8: warning: implicit declaration of function 'print_objid' is invalid in C99 [-Wimplicit-function-declaration] print_objid(vars->name, vars->name_length); ^ 4 warnings generated. clang -L/usr/lib -L/opt/pkg/lib -o snmpbulkwalk snmpbulkwalk.o -lresolv -lm ../../src/snmplib/libsnmp.a cd src/bgp; /opt/pkg/bin/bmake clang -O2 -I../../src/bgp/integrat -I../.. -DNETRAMET -DNF_OCX_BGP=1 -DUNIX -DHAVE_CONFIG_H -c ../../src/bgp/integrat/readbgp.c In file included from ../../src/bgp/integrat/readbgp.c:129: ../../src/bgp/integrat/../types/types.h:399:12: error: redeclaration of 'sys_nerr' with a different type: 'int' vs 'const int' extern int sys_nerr; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:367:20: note: previous declaration is here extern __const int sys_nerr; /* perror(3) external variables */ ^ ../../src/bgp/integrat/readbgp.c:175:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static mask_from_length[ 33 ]; /* host byte order */ ~~~~~~ ^ ../../src/bgp/integrat/readbgp.c:232:42: warning: implicit declaration of function 'min' is invalid in C99 [-Wimplicit-function-declaration] all_subnets = (Subnet *) flat_alloc( MAX_USED_BGP_LINES * sizeof( Subnet ) ); ^ ../../src/bgp/integrat/readbgp.c:154:37: note: expanded from macro 'MAX_USED_BGP_LINES' #define MAX_USED_BGP_LINES min( (Bit32)100000, (Bit32)MAX_TREE_LEAVES ) ^ ../../src/bgp/integrat/readbgp.c:239:13: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] MAX_USED_BGP_LINES * sizeof( Subnet ), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/bgp/integrat/readbgp.c:154:37: note: expanded from macro 'MAX_USED_BGP_LINES' #define MAX_USED_BGP_LINES min( (Bit32)100000, (Bit32)MAX_TREE_LEAVES ) ^ ../../src/bgp/integrat/readbgp.c:706:126: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] fprintf( stderr, "internal error on line %d: nexthop IP address '%s' length %d was longer than expected %d\n", line, nexthop_width, NEXTHOP_IP_WIDTH ); ~~ ^~~~~~~~~~~~~ %d ../../src/bgp/integrat/readbgp.c:706:141: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] fprintf( stderr, "internal error on line %d: nexthop IP address '%s' length %d was longer than expected %d\n", line, nexthop_width, NEXTHOP_IP_WIDTH ); ~~ ^~~~~~~~~~~~~~~~ %lu ../../src/bgp/integrat/readbgp.c:166:37: note: expanded from macro 'NEXTHOP_IP_WIDTH' # define NEXTHOP_IP_WIDTH (sizeof("255.255.255.255")-1) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/bgp/integrat/readbgp.c:706:114: warning: more '%' conversions than data arguments [-Wformat] fprintf( stderr, "internal error on line %d: nexthop IP address '%s' length %d was longer than expected %d\n", line, nexthop_width, NEXTHOP_IP_WIDTH ); ~^ ../../src/bgp/integrat/readbgp.c:809:30: warning: implicit declaration of function 'min' is invalid in C99 [-Wimplicit-function-declaration] if( subnet_parm_count >= MAX_USED_BGP_LINES ) ^ ../../src/bgp/integrat/readbgp.c:154:37: note: expanded from macro 'MAX_USED_BGP_LINES' #define MAX_USED_BGP_LINES min( (Bit32)100000, (Bit32)MAX_TREE_LEAVES ) ^ ../../src/bgp/integrat/readbgp.c:814:13: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] sizeof(Subnet), line, inet_ntoa(buffer,addr), bits_in_mask(htonl(mask)), exit_as, src_as, as_path ); ^~~~~~~~~~~~~~ ../../src/bgp/integrat/readbgp.c:839:88: warning: format specifies type 'unsigned int' but the argument has type 'Bit32' (aka 'unsigned long') [-Wformat] errno, _sys_errlist[errno], as_path_width+1, line, inet_ntoa(buffer,addr), mask, as_path ); ^~~~ ../../src/bgp/integrat/readbgp.c:1161:9: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (GetSubnetNodeCount() - subnet_node_count_before) * sizeof(SubnetTree) + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/bgp/integrat/readbgp.c:1171:9: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (GetSubnetNodeCount() - subnet_node_count_before) * sizeof(SubnetTree) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 11 warnings and 1 error generated. *** Error code 1 Stop. bmake[1]: stopped in /opt/work/security/netramet/work/NeTraMet44/src/bgp *** Error code 1 Stop. bmake: stopped in /opt/work/security/netramet/work/NeTraMet44 *** Error code 1 Stop. bmake[1]: stopped in /opt/pkgsrc/security/netramet *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/security/netramet