=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for netramet-4.4.20nb1 cd src/snmplib; /usr/pkg/bin/bmake cc -O2 -march=i586 -I/usr/pkg/include -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/asn1.c cc -O2 -march=i586 -I/usr/pkg/include -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:336:39: warning: format specifies type 'int' but the argument has type 'Bit32' (aka 'unsigned long') [-Wformat] sprintf(buf, "Timeticks: (%d) %s", *(Bit32 *)(var->val.u_int), uptimeString(*(Bit32 *)(var->val.u_int), timebuf)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %lu ../../src/snmplib/mib.c:356:26: warning: format specifies type 'int' but the argument has type 'Int32' (aka 'long') [-Wformat] sprintf(buf, "%d", *var->val.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld ../../src/snmplib/mib.c:358:43: warning: format specifies type 'int' but the argument has type 'Int32' (aka 'long') [-Wformat] sprintf(buf, "%s(%d)", enum_string, *var->val.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld ../../src/snmplib/mib.c:378:26: warning: format specifies type 'int' but the argument has type 'Int32' (aka 'long') [-Wformat] sprintf(buf, "%d", *var->val.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld ../../src/snmplib/mib.c:380:43: warning: format specifies type 'int' but the argument has type 'Int32' (aka 'long') [-Wformat] sprintf(buf, "%s(%d)", enum_string, *var->val.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld ../../src/snmplib/mib.c:795:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static parse_subtree(struct tree *subtree, ~~~~~~ ^ ../../src/snmplib/mib.c:1020:27: warning: format specifies type 'unsigned int' but the argument has type 'oid' (aka 'unsigned long') [-Wformat] sprintf(buf, "%u.", *objid++); ~~ ^~~~~~~~ %lu 8 warnings generated. cc -O2 -march=i586 -I/usr/pkg/include -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/parse.c cc -O2 -march=i586 -I/usr/pkg/include -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/snmp.c cc -O2 -march=i586 -I/usr/pkg/include -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); ^~~~~~~~~~~ /usr/include/sys/socket.h:653:58: note: passing argument to parameter here struct sockaddr * __restrict, socklen_t * __restrict); ^ ../../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: format specifies type 'char *' but the argument has type 'int' [-Wformat] inet_ntoa(rp->pdu->address.sin_addr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 warnings generated. cc -O2 -march=i586 -I/usr/pkg/include -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/snmpagnt.c cc -O2 -march=i586 -I/usr/pkg/include -I../../src/snmplib -I../.. -DUNIX -DHAVE_CONFIG_H -c ../../src/snmplib/snmpauth.c cc -O2 -march=i586 -I/usr/pkg/include -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 /usr/bin/ar: creating libsnmp.a ranlib libsnmp.a cd src/apps; /usr/pkg/bin/bmake cc -O2 -march=i586 -I/usr/pkg/include -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: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:336:5: warning: format specifies type 'unsigned int' but the argument has type 'Int32' (aka 'long') [-Wformat] response->reqid, response->errstat, response->errindex); ^~~~~~~~~~~~~~~ ../../src/apps/snmptest.c:336:22: warning: format specifies type 'unsigned int' but the argument has type 'Int32' (aka 'long') [-Wformat] response->reqid, response->errstat, response->errindex); ^~~~~~~~~~~~~~~~~ ../../src/apps/snmptest.c:336:41: warning: format specifies type 'unsigned int' but the argument has type 'Int32' (aka 'long') [-Wformat] response->reqid, response->errstat, response->errindex); ^~~~~~~~~~~~~~~~~~ ../../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); ^~ /usr/include/stdlib.h:101: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); ^~ /usr/include/stdio.h:257:36: note: passing argument to parameter here int sscanf(const char * __restrict, const char * __restrict, ...) ^ ../../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); ^~~~~ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ ../../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); ^ 16 warnings generated. cc -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o snmptest snmptest.o -lm ../../src/snmplib/libsnmp.a cc -O2 -march=i586 -I/usr/pkg/include -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. cc -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o snmpwalk snmpwalk.o -lm ../../src/snmplib/libsnmp.a cc -O2 -march=i586 -I/usr/pkg/include -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. cc -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o snmpbulkwalk snmpbulkwalk.o -lm ../../src/snmplib/libsnmp.a cd src/bgp; /usr/pkg/bin/bmake cc -O2 -march=i586 -I/usr/pkg/include -I../../src/bgp/integrat -I../.. -DNETRAMET -DNF_OCX_BGP=1 -DUNIX -DHAVE_CONFIG_H -c ../../src/bgp/integrat/readbgp.c ../../src/bgp/integrat/readbgp.c:123:5: error: redefinition of 'sys_nerr' with a different type: 'int' vs 'const int' int sys_nerr; ^ /usr/include/errno.h:60:18: note: previous definition is here extern const int sys_nerr __RENAME(__sys_nerr14); ^ ../../src/bgp/integrat/readbgp.c:126:26: error: redefinition of 'sys_errlist' with a different type: 'const char *const []' vs 'const char *const *' extern const char *const sys_errlist[]; ^ /usr/include/errno.h:61:27: note: previous definition is here extern const char *const *sys_errlist __RENAME(__sys_errlist14); ^ In file included from ../../src/bgp/integrat/readbgp.c:129: ../../src/bgp/integrat/../types/types.h:399:12: error: redefinition of 'sys_nerr' with a different type: 'int' vs 'const int' extern int sys_nerr; ^ /usr/include/errno.h:60:18: note: previous definition is here extern const int sys_nerr __RENAME(__sys_nerr14); ^ In file included from ../../src/bgp/integrat/readbgp.c:129: ../../src/bgp/integrat/../types/types.h:402:26: error: redefinition of 'sys_errlist' with a different type: 'const char *const []' vs 'const char *const *' extern const char *const sys_errlist[]; ^ /usr/include/errno.h:61:27: note: previous definition is here extern const char *const *sys_errlist __RENAME(__sys_errlist14); ^ ../../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: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:120:21: note: expanded from macro 'min' #define min(a,b) (((a) < (b)) ? (a) : (b)) ^ ../../src/bgp/integrat/readbgp.c:240:13: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 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:120:21: note: expanded from macro 'min' #define min(a,b) (((a) < (b)) ? (a) : (b)) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../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: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: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 ); ^~~~ 6 warnings and 4 errors generated. *** Error code 1 Stop. bmake[1]: stopped in /usr/pkgsrc/work/security/netramet/work/NeTraMet44/src/bgp *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/security/netramet/work/NeTraMet44 *** Error code 1 Stop. bmake[1]: stopped in /usr/pkgsrc/security/netramet *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/security/netramet