=> 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 smtpd-2.0nb3 --- smtpd.o --- --- address_check.o --- --- smtpfwdd.o --- --- smtpd.o --- clang -O2 -DBIND_8_COMPAT=1 -DMAIL_AGENT=\"/usr/sbin/sendmail\" -DSMTP_USER=\"uucp\" -DSMTP_GROUP=\"mail\" -DLOG_FACILITY=LOG_MAIL -DVANILLA_MESSAGES=0 -DSPOOLDIR=\"/var/spool/smtpd\" -DSPOOLSUBDIR=\".\" -DPOLL_TIME=30 -DSENDMAIL_RETRY=1 -DSENDMAIL_OITRUE=1 -DSTRIP_QUOTES=0 -DMAXCHILDREN=10 -DMAXARGS=100 -DREAD_TIMEOUT=600 -DNO_HOSTCHECKS=0 -DPARANOID_SMTP=0 -DPARANOID_DNS=0 -DNO_COMMANDLINE_OPTIONS=0 -DEHLO_KLUDGE=0 -DCHECK_ADDRESS=1 -DCHECK_FILE=\"/etc/smtpd_check_rules\" -DCHECK_ADDRESS_DENY_ON_FAILURE=0 -DCHECK_IDENT=10 -DNOTO_DELAY=50 -DDENY_DELAY=50 -DSET_LOCALE=0 -DLOCALIZATION=\"C\" -DJUNIPER_SUPPORT=0 -DNS_MATCH=1 -DUSE_REGEX=1 -c smtpd.c --- address_check.o --- clang -O2 -DBIND_8_COMPAT=1 -DMAIL_AGENT=\"/usr/sbin/sendmail\" -DSMTP_USER=\"uucp\" -DSMTP_GROUP=\"mail\" -DLOG_FACILITY=LOG_MAIL -DVANILLA_MESSAGES=0 -DSPOOLDIR=\"/var/spool/smtpd\" -DSPOOLSUBDIR=\".\" -DPOLL_TIME=30 -DSENDMAIL_RETRY=1 -DSENDMAIL_OITRUE=1 -DSTRIP_QUOTES=0 -DMAXCHILDREN=10 -DMAXARGS=100 -DREAD_TIMEOUT=600 -DNO_HOSTCHECKS=0 -DPARANOID_SMTP=0 -DPARANOID_DNS=0 -DNO_COMMANDLINE_OPTIONS=0 -DEHLO_KLUDGE=0 -DCHECK_ADDRESS=1 -DCHECK_FILE=\"/etc/smtpd_check_rules\" -DCHECK_ADDRESS_DENY_ON_FAILURE=0 -DCHECK_IDENT=10 -DNOTO_DELAY=50 -DDENY_DELAY=50 -DSET_LOCALE=0 -DLOCALIZATION=\"C\" -DJUNIPER_SUPPORT=0 -DNS_MATCH=1 -DUSE_REGEX=1 -c address_check.c --- smtpfwdd.o --- clang -O2 -DBIND_8_COMPAT=1 -DMAIL_AGENT=\"/usr/sbin/sendmail\" -DSMTP_USER=\"uucp\" -DSMTP_GROUP=\"mail\" -DLOG_FACILITY=LOG_MAIL -DVANILLA_MESSAGES=0 -DSPOOLDIR=\"/var/spool/smtpd\" -DSPOOLSUBDIR=\".\" -DPOLL_TIME=30 -DSENDMAIL_RETRY=1 -DSENDMAIL_OITRUE=1 -DSTRIP_QUOTES=0 -DMAXCHILDREN=10 -DMAXARGS=100 -DREAD_TIMEOUT=600 -DNO_HOSTCHECKS=0 -DPARANOID_SMTP=0 -DPARANOID_DNS=0 -DNO_COMMANDLINE_OPTIONS=0 -DEHLO_KLUDGE=0 -DCHECK_ADDRESS=1 -DCHECK_FILE=\"/etc/smtpd_check_rules\" -DCHECK_ADDRESS_DENY_ON_FAILURE=0 -DCHECK_IDENT=10 -DNOTO_DELAY=50 -DDENY_DELAY=50 -DSET_LOCALE=0 -DLOCALIZATION=\"C\" -DJUNIPER_SUPPORT=0 -DNS_MATCH=1 -DUSE_REGEX=1 -c smtpfwdd.c --- smtpd.o --- smtpd.c:388:12: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (buf); ^~~~~ smtpd.c:430:89: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] syslog(LOG_CRIT, "You can't write %d bytes from a buffer with only %d in it!", len, buf->offset); ~~ ^~~~~~~~~~~ %zu smtpd.c:518:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (mbuf->size + len + 1024)); ^~~~~~~~~~~~~~~~~~~~~~~~~ smtpd.c:554:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (mbuf->size + len + 1024)); ^~~~~~~~~~~~~~~~~~~~~~~~~ smtpd.c:590:32: warning: passing 'char [5]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ok = write_smtp_mbuf(outbuf, message, strlen(message)); ^~~~~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:592:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ok = write_smtp_mbuf(outbuf, msg, strlen(msg)); ^~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:595:34: warning: passing 'char [3]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] ok = write_smtp_mbuf(outbuf, CRLF, 2); ^~~~ ./smtpd.h:48:14: note: expanded from macro 'CRLF' #define CRLF "\r\n" ^~~~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:647:8: warning: 'tempnam' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations] cp=tempnam(spooldir, "smtpd"); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:302:1: note: 'tempnam' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead.") ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg' --- address_check.o --- address_check.c:301:46: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pi->peer_clean_ident = strdup( cleanitup(pi->peer_dirty_ident) ); ^~~~~~~~~~~~~~~~~~~~ --- smtpd.o --- #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ --- address_check.o --- ./smtpd.h:115:55: note: passing argument to parameter 's' here extern unsigned char * cleanitup(const unsigned char *s); ^ address_check.c:301:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] pi->peer_clean_ident = strdup( cleanitup(pi->peer_dirty_ident) ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ --- smtpd.o --- smtpd.c:1293:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] ilen = strlen(inbuf); ^~~~~ --- address_check.o --- address_check.c:635:22: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] else if ((string == NULL)) { ~~~~~~~^~~~~~~ --- smtpd.o --- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ --- address_check.o --- address_check.c:635:22: note: remove extraneous parentheses around the comparison to silence this warning else if ((string == NULL)) { ~ ^ ~ address_check.c:635:22: note: use '=' to turn this equality comparison into an assignment --- smtpd.o --- smtpd.c:1298:22: warning: passing 'unsigned char [5]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcasecmp(verb, "WIZ") == 0) { ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here --- address_check.o --- else if ((string == NULL)) { ^~ = --- smtpd.o --- int strcasecmp(const char *, const char *); ^ smtpd.c:1338:18: warning: passing 'unsigned char [5]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcasecmp(verb, "HELO") == 0) { ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ smtpd.c:1354:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(buf) > SMTP_MAXFQNAME) { ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ smtpd.c:1365:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] client_claimed_name = strdup(cleanitup(buf)); ^~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ smtpd.c:1370:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp(buf, client_claimed_name) != 0) { ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ smtpd.c:1392:25: warning: passing 'unsigned char [5]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] } else if (strcasecmp(verb, "MAIL") == 0) { ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ smtpd.c:1402:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(buf) > SMTP_MAX_MAILPATH + 7) { ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here --- address_check.o --- address_check.c:791:8: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cp = nameservers->string; ^ ~~~~~~~~~~~~~~~~~~~ --- smtpd.o --- size_t strlen(const char *__s); ^ --- address_check.o --- address_check.c:793:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] res_query(cp, /* the domain we care about */ ^~ --- smtpd.o --- smtpd.c:1414:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncasecmp(buf, "FROM:", 5) != 0) { ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ --- address_check.o --- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/resolv.h:335:33: note: passing argument to parameter here int res_query __P((const char *, int, int, u_char *, int)); ^ address_check.c:805:34: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] cp = (next == NULL)?strchr(cp, '.'):next; ^~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:76:26: note: passing argument to parameter '__s' here --- smtpd.o --- smtpd.c:1426:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] cp = strrchr(buf, '"'); /* REVISIT: find last " */ ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:87:27: note: passing argument to parameter '__s' here char *strrchr(const char *__s, int __c); ^ smtpd.c:1426:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- address_check.o --- char *strchr(const char *__s, int __c); ^ address_check.c:805:10: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cp = (next == NULL)?strchr(cp, '.'):next; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- smtpd.o --- cp = strrchr(buf, '"'); /* REVISIT: find last " */ ^ ~~~~~~~~~~~~~~~~~ smtpd.c:1429:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- address_check.o --- address_check.c:810:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] next = strchr(cp, '.'); ^~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:76:26: note: passing argument to parameter '__s' here char *strchr(const char *__s, int __c); ^ --- smtpd.o --- cp = strchr(cp+1, ' '); ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:76:26: note: passing argument to parameter '__s' here char *strchr(const char *__s, int __c); ^ smtpd.c:1429:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cp = strchr(cp+1, ' '); ^ ~~~~~~~~~~~~~~~~~ smtpd.c:1446:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] current_from_mailpath = strdup(smtp_cleanitup(buf)); ^~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ smtpd.c:1455:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp(buf, current_from_mailpath) != 0) { ^~~ --- address_check.o --- address_check.c:884:27: warning: passing 'u_char [1025]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] tmp_buf, /* Result */ ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/resolv.h:444:75: note: passing argument to parameter here --- smtpd.o --- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ smtpd.c:1479:33: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- address_check.o --- int dn_expand __P((const u_char *, const u_char *, const u_char *, char *, int)); ^ address_check.c:913:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strdup(cleanitup(tmp_buf))) == NULL) { ^~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here --- smtpd.o --- if (write_smtp_mbuf(outbuf, "FROM ", strlen("FROM ")) && ^~~~~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:1480:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- address_check.o --- char *strdup(const char *__s1); ^ --- smtpd.o --- write_smtp_mbuf(outbuf, current_from_mailpath, ^~~~~~~~~~~~~~~~~~~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:1482:26: warning: passing 'char [2]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] write_smtp_mbuf(outbuf, "\n", 1)) { ^~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:1487:25: warning: passing 'unsigned char [5]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] } else if (strcasecmp(verb, "RCPT") == 0) { ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ smtpd.c:1500:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strlen(buf) > SMTP_MAX_MAILPATH + 1) { ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ smtpd.c:1512:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((strlen(buf) < 3) || strncasecmp(buf, "TO:", 3) != 0) { ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ smtpd.c:1512:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((strlen(buf) < 3) || strncasecmp(buf, "TO:", 3) != 0) { ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:79:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ smtpd.c:1520:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] cp = strchr(buf, ' '); ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:76:26: note: passing argument to parameter '__s' here char *strchr(const char *__s, int __c); ^ smtpd.c:1520:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cp = strchr(buf, ' '); ^ ~~~~~~~~~~~~~~~~ smtpd.c:1535:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] victim = strdup(smtp_cleanitup(buf)); ^~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ smtpd.c:1540:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp(buf, victim) != 0) { ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here int strcmp(const char *__s1, const char *__s2); ^ smtpd.c:1567:49: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(0, (struct sockaddr *) &my_sa, &slen) ^~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:706:78: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ smtpd.c:1574: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 *) &peer_sa, &slen) ^~~~~ /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) ^ smtpd.c:1617:25: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] strdup(cleanitup(peerinfo.peer_dirty_ident)); ^~~~~~~~~~~~~~~~~~~~~~~~~ smtpd.c:815:32: note: passing argument to parameter 's' here cleanitup(const unsigned char *s) ^ smtpd.c:1617:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strdup(cleanitup(peerinfo.peer_dirty_ident)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ smtpd.c:1644:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write_smtp_mbuf(replybuf, c, strlen(c))) { ^ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:1645:32: warning: passing 'char [3]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] write_smtp_mbuf(replybuf, CRLF, 2); ^~~~ ./smtpd.h:48:14: note: expanded from macro 'CRLF' #define CRLF "\r\n" ^~~~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:1661:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write_smtp_mbuf(replybuf, c, strlen(c))) { ^ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:1662:32: warning: passing 'char [3]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] write_smtp_mbuf(replybuf, CRLF, 2); ^~~~ ./smtpd.h:48:14: note: expanded from macro 'CRLF' #define CRLF "\r\n" ^~~~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:1688:35: warning: passing 'char [6]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (write_smtp_mbuf(outbuf, "RCPT ", strlen("RCPT ")) && ^~~~~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:1689:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] write_smtp_mbuf(outbuf, victim, strlen(victim)) && ^~~~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:1690:28: warning: passing 'char [2]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] write_smtp_mbuf(outbuf, "\n", 1)) { ^~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ smtpd.c:1697:25: warning: passing 'unsigned char [5]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] } else if (strcasecmp(verb, "NOOP") == 0) { ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ smtpd.c:1700:25: warning: passing 'unsigned char [5]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] } else if (strcasecmp(verb, "VRFY") == 0) { ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ smtpd.c:1703:25: warning: passing 'unsigned char [5]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] } else if (strcasecmp(verb, "DEBU") == 0) { ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ smtpd.c:1709:25: warning: passing 'unsigned char [5]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] } else if (strcasecmp(verb, "RSET") == 0) { ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ smtpd.c:1712:25: warning: passing 'unsigned char [5]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] } else if (strcasecmp(verb, "QUIT") == 0) { ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ smtpd.c:1715:25: warning: passing 'unsigned char [5]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] } else if (strcasecmp(verb, "DATA") == 0) { ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ smtpd.c:1838:10: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (p=buf->data+linestart; *p != LF; p++) ^~~~~~~~~~~~~~~~~~~~ smtpd.c:1966:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void ^ smtpd.c:1966:1: note: change return type to 'int' void ^~~~ int smtpd.c:2329:56: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] fd = accept(listen_fd, (struct sockaddr *)&peer, &slen); ^~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:700:73: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ smtpd.c:2414:52: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(0, (struct sockaddr *) &my_sa, &slen) ^~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:706:78: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ smtpd.c:2425:52: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] peerinfo.my_clean_reverse_name = strdup(cleanitup(tmp_he->h_name)); ^~~~~~~~~~~~~~ smtpd.c:815:32: note: passing argument to parameter 's' here cleanitup(const unsigned char *s) ^ smtpd.c:2425:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] peerinfo.my_clean_reverse_name = strdup(cleanitup(tmp_he->h_name)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ smtpd.c:2438:54: 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 *) &peer_sa, &slen) ^~~~~ /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) ^ smtpd.c:2468:57: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] peerinfo.peer_clean_reverse_name = strdup(cleanitup(peerinfo.peer_dirty_reverse_name)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtpd.c:815:32: note: passing argument to parameter 's' here cleanitup(const unsigned char *s) ^ smtpd.c:2468:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] peerinfo.peer_clean_reverse_name = strdup(cleanitup(peerinfo.peer_dirty_reverse_name)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ smtpd.c:2506:57: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] peerinfo.peer_clean_forward_name = strdup(cleanitup(peerinfo.peer_dirty_forward_name)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtpd.c:815:32: note: passing argument to parameter 's' here cleanitup(const unsigned char *s) ^ smtpd.c:2506:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] peerinfo.peer_clean_forward_name = strdup(cleanitup(peerinfo.peer_dirty_forward_name)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ smtpd.c:2618:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] smtp_parse_cmd(line, output_buf, reply_buf, current_state); ^~~~ smtpd.c:1284:31: note: passing argument to parameter 'inbuf' here smtp_parse_cmd(unsigned char *inbuf, ^ smtpd.c:2652:37: warning: passing 'char [512]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!write_smtp_mbuf(output_buf, head, strlen(head))) { ^~~~ smtpd.c:506:18: note: passing argument to parameter 'data' here unsigned char *data, ^ --- smtpfwdd --- clang -O2 -DBIND_8_COMPAT=1 -DMAIL_AGENT=\"/usr/sbin/sendmail\" -DSMTP_USER=\"uucp\" -DSMTP_GROUP=\"mail\" -DLOG_FACILITY=LOG_MAIL -DVANILLA_MESSAGES=0 -DSPOOLDIR=\"/var/spool/smtpd\" -DSPOOLSUBDIR=\".\" -DPOLL_TIME=30 -DSENDMAIL_RETRY=1 -DSENDMAIL_OITRUE=1 -DSTRIP_QUOTES=0 -DMAXCHILDREN=10 -DMAXARGS=100 -DREAD_TIMEOUT=600 -DNO_HOSTCHECKS=0 -DPARANOID_SMTP=0 -DPARANOID_DNS=0 -DNO_COMMANDLINE_OPTIONS=0 -DEHLO_KLUDGE=0 -DCHECK_ADDRESS=1 -DCHECK_FILE=\"/etc/smtpd_check_rules\" -DCHECK_ADDRESS_DENY_ON_FAILURE=0 -DCHECK_IDENT=10 -DNOTO_DELAY=50 -DDENY_DELAY=50 -DSET_LOCALE=0 -DLOCALIZATION=\"C\" -DJUNIPER_SUPPORT=0 -DNS_MATCH=1 -DUSE_REGEX=1 -o smtpfwdd smtpfwdd.o --- address_check.o --- 10 warnings generated. --- smtpd.o --- 64 warnings generated. --- smtpd --- clang -O2 -DBIND_8_COMPAT=1 -DMAIL_AGENT=\"/usr/sbin/sendmail\" -DSMTP_USER=\"uucp\" -DSMTP_GROUP=\"mail\" -DLOG_FACILITY=LOG_MAIL -DVANILLA_MESSAGES=0 -DSPOOLDIR=\"/var/spool/smtpd\" -DSPOOLSUBDIR=\".\" -DPOLL_TIME=30 -DSENDMAIL_RETRY=1 -DSENDMAIL_OITRUE=1 -DSTRIP_QUOTES=0 -DMAXCHILDREN=10 -DMAXARGS=100 -DREAD_TIMEOUT=600 -DNO_HOSTCHECKS=0 -DPARANOID_SMTP=0 -DPARANOID_DNS=0 -DNO_COMMANDLINE_OPTIONS=0 -DEHLO_KLUDGE=0 -DCHECK_ADDRESS=1 -DCHECK_FILE=\"/etc/smtpd_check_rules\" -DCHECK_ADDRESS_DENY_ON_FAILURE=0 -DCHECK_IDENT=10 -DNOTO_DELAY=50 -DDENY_DELAY=50 -DSET_LOCALE=0 -DLOCALIZATION=\"C\" -DJUNIPER_SUPPORT=0 -DNS_MATCH=1 -DUSE_REGEX=1 -o smtpd smtpd.o address_check.o Undefined symbols for architecture arm64: "_res_9_dn_expand", referenced from: _skipName in address_check.o _skipToData in address_check.o _findNameServers in address_check.o "_res_9_query", referenced from: _findNameServers in address_check.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [smtpd] Error code 1 bmake: stopped in /opt/work/security/smtpd/work/smtpd-2.0 1 error bmake: stopped in /opt/work/security/smtpd/work/smtpd-2.0 *** Error code 2 Stop. bmake[1]: stopped in /opt/pkgsrc/security/smtpd *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/security/smtpd