=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> 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 smtpfeed-1.23 --- address.o --- --- dns.o --- --- lmtp.o --- --- log.o --- --- main.o --- --- mxrand.o --- --- proctitle.o --- --- smtp.o --- --- address.o --- gcc -DINET6 -O2 -c address.c --- dns.o --- gcc -DINET6 -O2 -c dns.c --- lmtp.o --- gcc -DINET6 -O2 -c lmtp.c --- log.o --- gcc -DINET6 -O2 -c log.c --- main.o --- gcc -DINET6 -O2 -c main.c --- mxrand.o --- gcc -DINET6 -O2 -c mxrand.c --- proctitle.o --- gcc -DINET6 -O2 -c proctitle.c --- smtp.o --- gcc -DINET6 -O2 -c smtp.c --- dns.o --- dns.c:52:2: error: unknown type name 'HEADER' HEADER qb1; ^ dns.c:141:35: error: use of undeclared identifier 'T_A' if (query_domain(cnf.pgateway, T_A) < 0) ^ dns.c:165:37: error: use of undeclared identifier 'T_A' if (query_domain(cnf.fallbackmx, T_A) < 0) ^ dns.c:206:26: error: use of undeclared identifier 'T_A' if (query_domain(p, T_A) < 0) ^ --- smtp.o --- smtp.c:697:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ --- dns.o --- dns.c:260:32: error: use of undeclared identifier 'T_MX' if (query_domain(dp->name, T_MX) < 0) ^ --- smtp.o --- smtp.c:956:26: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] strncat(pbuf, "v6", sizeof(pbuf)); ^~~~~~~~~~~~ smtp.c:956:26: note: change the argument to be the free space in the destination buffer minus the terminating null byte strncat(pbuf, "v6", sizeof(pbuf)); ^~~~~~~~~~~~ sizeof(pbuf) - strlen(pbuf) - 1 smtp.c:960:26: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] strncat(pbuf, "v4", sizeof(pbuf)); ^~~~~~~~~~~~ smtp.c:960:26: note: change the argument to be the free space in the destination buffer minus the terminating null byte strncat(pbuf, "v4", sizeof(pbuf)); ^~~~~~~~~~~~ sizeof(pbuf) - strlen(pbuf) - 1 smtp.c:965:6: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] sizeof(pbuf)); ^~~~~~~~~~~~ smtp.c:965:6: note: change the argument to be the free space in the destination buffer minus the terminating null byte sizeof(pbuf)); ^~~~~~~~~~~~ sizeof(pbuf) - strlen(pbuf) - 1 --- dns.o --- dns.c:272:33: error: use of undeclared identifier 'T_A' --- smtp.o --- smtp.c:968:6: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] sizeof(pbuf)); ^~~~~~~~~~~~ smtp.c:968:6: note: change the argument to be the free space in the destination buffer minus the terminating null byte sizeof(pbuf)); --- dns.o --- if (query_domain(dp->name, T_A) < 0) ^ --- smtp.o --- ^~~~~~~~~~~~ sizeof(pbuf) - strlen(pbuf) - 1 --- dns.o --- dns.c:289:32: error: use of undeclared identifier 'T_MX' if (query_domain(*map_arg, T_MX) < 0) ^ --- smtp.o --- smtp.c:975:6: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] sizeof(pbuf)); ^~~~~~~~~~~~ smtp.c:975:6: note: change the argument to be the free space in the destination buffer minus the terminating null byte sizeof(pbuf)); ^~~~~~~~~~~~ sizeof(pbuf) - strlen(pbuf) - 1 smtp.c:978:6: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] sizeof(pbuf)); ^~~~~~~~~~~~ smtp.c:978:6: note: change the argument to be the free space in the destination buffer minus the terminating null byte sizeof(pbuf)); ^~~~~~~~~~~~ sizeof(pbuf) - strlen(pbuf) - 1 smtp.c:986:6: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] sizeof(pbuf)); ^~~~~~~~~~~~ smtp.c:986:6: note: change the argument to be the free space in the destination buffer minus the terminating null byte sizeof(pbuf)); ^~~~~~~~~~~~ sizeof(pbuf) - strlen(pbuf) - 1 --- dns.o --- dns.c:315:9: error: use of undeclared identifier 'T_A' T_A) < 0) ^ --- smtp.o --- smtp.c:989:6: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] sizeof(pbuf)); ^~~~~~~~~~~~ smtp.c:989:6: note: change the argument to be the free space in the destination buffer minus the terminating null byte sizeof(pbuf)); ^~~~~~~~~~~~ sizeof(pbuf) - strlen(pbuf) - 1 --- util.o --- --- address.o --- address.c:573:34: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] dnsstatus(rcpt, rcpt->result, rcpt->response); ^~~~~~~~~~~~~~ address.c:584:34: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] dnsstatus(rcpt, rcpt->result, rcpt->response); ^~~~~~~~~~~~~~ address.c:591:34: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] dnsstatus(rcpt, rcpt->result, rcpt->response); ^~~~~~~~~~~~~~ address.c:598:34: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] --- dns.o --- dns.c:385:9: error: use of undeclared identifier 'T_MX' case T_MX: ^ dns.c:386:9: error: use of undeclared identifier 'T_A' case T_A: ^ --- smtp.o --- smtp.c:1039:33: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] strncat(hbuf, " (gateway)", sizeof(hbuf)); ^~~~~~~~~~~~ smtp.c:1039:33: note: change the argument to be the free space in the destination buffer minus the terminating null byte strncat(hbuf, " (gateway)", sizeof(hbuf)); ^~~~~~~~~~~~ sizeof(hbuf) - strlen(hbuf) - 1 --- address.o --- dnsstatus(rcpt, rcpt->result, rcpt->response); ^~~~~~~~~~~~~~ address.c:605:34: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] dnsstatus(rcpt, rcpt->result, rcpt->response); ^~~~~~~~~~~~~~ address.c:613:34: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] dnsstatus(rcpt, rcpt->result, rcpt->response); ^~~~~~~~~~~~~~ --- dns.o --- dns.c:400:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static query_chain_count = 0; ~~~~~~ ^ dns.c:413:9: error: use of undeclared identifier 'T_MX' case T_MX: ^ dns.c:416:9: error: use of undeclared identifier 'T_A' case T_A: ^ dns.c:440:33: error: use of undeclared identifier 'T_MX' if (cnf.tryANYfirst && type == T_MX && (qrp->rr_sent & RR_ANY) == 0) ^ dns.c:442:10: error: use of undeclared identifier 'T_ANY' type = T_ANY; ^ --- util.o --- gcc -DINET6 -O2 -c util.c --- dns.o --- dns.c:459:18: error: use of undeclared identifier 'QUERY' n = res_mkquery(QUERY, qrp->name, C_IN, type, NULL, 0, NULL, ^ dns.c:459:36: error: use of undeclared identifier 'C_IN' n = res_mkquery(QUERY, qrp->name, C_IN, type, NULL, 0, NULL, ^ dns.c:597:9: error: use of undeclared identifier 'HEADER' HEADER *qp, *hp; ^ dns.c:597:17: error: use of undeclared identifier 'qp' HEADER *qp, *hp; ^ dns.c:597:22: error: use of undeclared identifier 'hp' HEADER *qp, *hp; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. --- smtp.o --- smtp.c:1702:8: warning: 'rresvport' is deprecated [-Wdeprecated-declarations] sd = rresvport(&rp); /* XXX */ ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:708:1: note: 'rresvport' has been explicitly marked deprecated here __deprecated int rresvport(int *); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ smtp.c:2005:57: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(conn->socket, (struct sockaddr *)&cin, &len) < 0) ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:704:78: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ --- dns.o --- *** [dns.o] Error code 1 bmake: stopped in /opt/work/mail/smtpfeed/work/smtpfeed-1.23 --- main.o --- main.c:460:51: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(0, (struct sockaddr *)&peername, &peernamelen) == 0) ^~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:704:78: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ 1 warning generated. --- util.o --- util.c:96:9: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static firsttime=1; ~~~~~~ ^ util.c:323:4: warning: expression result unused [-Wunused-value] *p++; ^~~~ util.c:329:3: warning: expression result unused [-Wunused-value] *p++; ^~~~ util.c:331:4: warning: expression result unused [-Wunused-value] *p++; ^~~~ util.c:336:4: warning: expression result unused [-Wunused-value] *p++; ^~~~ util.c:584:28: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] strncat (tmpbuf, ":", sizeof(tmpbuf)); ^~~~~~~~~~~~~~ util.c:584:28: note: change the argument to be the free space in the destination buffer minus the terminating null byte strncat (tmpbuf, ":", sizeof(tmpbuf)); ^~~~~~~~~~~~~~ sizeof(tmpbuf) - strlen(tmpbuf) - 1 util.c:585:30: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] strncat (tmpbuf, *argp, sizeof(tmpbuf)); ^~~~~~~~~~~~~~ util.c:585:30: note: change the argument to be the free space in the destination buffer minus the terminating null byte strncat (tmpbuf, *argp, sizeof(tmpbuf)); ^~~~~~~~~~~~~~ sizeof(tmpbuf) - strlen(tmpbuf) - 1 --- address.o --- 6 warnings generated. --- util.o --- 7 warnings generated. --- smtp.o --- 12 warnings generated. 1 error bmake: stopped in /opt/work/mail/smtpfeed/work/smtpfeed-1.23 *** Error code 2 Stop. bmake[1]: stopped in /opt/pkgsrc/mail/smtpfeed *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/mail/smtpfeed