=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for qmail-1.03nb37 --- hier_destdir.c --- --- auto-ccld.sh --- --- datemail --- --- mailsubj --- --- qmail-upq --- --- qmail-qstat --- --- config --- --- config-fast --- --- qail --- --- elq --- --- pinq --- --- home --- --- home+df --- --- proc --- --- proc+df --- --- binm1 --- --- hier_destdir.c --- cat hier.c | sed s}fake_uids\.h}auto_uids.h}g > hier_destdir.c --- auto-ccld.sh --- ( cat warn-auto.sh; echo CC=\'`head -1 conf-cc`\'; echo LD=\'`head -1 conf-ld`\' ) > auto-ccld.sh --- datemail --- cat warn-auto.sh datemail.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > datemail --- mailsubj --- cat warn-auto.sh mailsubj.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > mailsubj --- qmail-upq --- cat warn-auto.sh qmail-upq.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > qmail-upq --- qmail-qstat --- cat warn-auto.sh qmail-qstat.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > qmail-qstat --- config --- cat warn-auto.sh config.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > config --- qail --- cat warn-auto.sh qail.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > qail --- elq --- cat warn-auto.sh elq.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > elq --- pinq --- cat warn-auto.sh pinq.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > pinq --- home --- cat home.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > home --- home+df --- cat home+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > home+df --- proc --- cat proc.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > proc --- proc+df --- cat proc+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > proc+df --- binm1 --- cat binm1.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm1 --- proc --- chmod 755 proc --- config-fast --- cat warn-auto.sh config-fast.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > config-fast --- binm1+df --- --- home --- chmod 755 home --- binm1 --- chmod 755 binm1 --- proc+df --- chmod 755 proc+df --- binm2 --- --- binm1+df --- cat binm1+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm1+df --- binm2+df --- --- qmail-upq --- chmod 755 qmail-upq --- elq --- chmod 755 elq --- qmail-qstat --- chmod 755 qmail-qstat --- binm3 --- --- binm2 --- cat binm2.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm2 --- binm2+df --- cat binm2+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm2+df --- binm3+df --- --- config-fast --- chmod 755 config-fast --- pinq --- chmod 755 pinq --- binm3+df --- cat binm3+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm3+df --- binm3 --- cat binm3.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm3 --- update_tmprsadh --- --- dot-qmail.5 --- cat dot-qmail.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > dot-qmail.5 --- binm3 --- chmod 755 binm3 --- qmail-control.5 --- cat qmail-control.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-control.5 --- qail --- chmod 755 qail --- qmail-getpw.8 --- cat qmail-getpw.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-getpw.8 --- qmail-limits.7 --- --- qmail-newmrh.8 --- --- qmail-limits.7 --- cat qmail-limits.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-limits.7 --- qmail-newmrh.8 --- cat qmail-newmrh.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-newmrh.8 --- binm3+df --- chmod 755 binm3+df --- qmail-newu.8 --- cat qmail-newu.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-newu.8 --- config --- chmod 755 config --- qmail-pw2u.8 --- cat qmail-pw2u.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-pw2u.8 --- mailsubj --- chmod 755 mailsubj --- qmail-send.8 --- cat qmail-send.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-send.8 --- qmail-start.8 --- cat qmail-start.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-start.8 --- datemail --- chmod 755 datemail --- qmail-users.5 --- --- find-systype --- --- qmail-users.5 --- cat qmail-users.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-users.5 --- find-systype --- cat auto-ccld.sh find-systype.sh > find-systype --- binm1+df --- chmod 755 binm1+df --- binm2 --- chmod 755 binm2 --- find-systype --- chmod 755 find-systype --- make-compile --- --- make-load --- --- make-makelib --- cat auto-ccld.sh make-makelib.sh > make-makelib chmod 755 make-makelib --- systype --- ./find-systype > systype --- binm2+df --- chmod 755 binm2+df --- make-compile --- cat auto-ccld.sh make-compile.sh > make-compile --- update_tmprsadh --- chmod 755 update_tmprsadh --- make-load --- cat auto-ccld.sh make-load.sh > make-load --- make-compile --- chmod 755 make-compile --- make-load --- chmod 755 make-load --- home+df --- chmod 755 home+df --- compile --- --- load --- --- makelib --- --- compile --- ( cat warn-auto.sh; ./make-compile "`cat systype`" ) > compile --- load --- ( cat warn-auto.sh; ./make-load "`cat systype`" ) > load --- makelib --- ( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > makelib --- load --- chmod 755 load --- makelib --- chmod 755 makelib --- compile --- chmod 755 compile --- alloc.o --- --- alloc_re.o --- --- auto-int.o --- --- auto-int8.o --- --- auto-str.o --- --- base64.o --- --- byte_chr.o --- --- byte_copy.o --- --- byte_cr.o --- --- byte_diff.o --- --- byte_rchr.o --- --- byte_zero.o --- --- case_diffb.o --- --- case_diffs.o --- --- case_lowerb.o --- --- case_lowers.o --- --- alloc.o --- ./compile alloc.c --- alloc_re.o --- ./compile alloc_re.c --- auto-int.o --- ./compile auto-int.c --- auto-int8.o --- ./compile auto-int8.c --- auto-str.o --- ./compile auto-str.c --- base64.o --- ./compile base64.c --- byte_chr.o --- ./compile byte_chr.c --- byte_copy.o --- ./compile byte_copy.c --- byte_cr.o --- ./compile byte_cr.c --- byte_diff.o --- ./compile byte_diff.c --- byte_rchr.o --- ./compile byte_rchr.c --- byte_zero.o --- ./compile byte_zero.c --- case_diffb.o --- ./compile case_diffb.c --- case_diffs.o --- ./compile case_diffs.c --- case_lowerb.o --- ./compile case_lowerb.c --- case_lowers.o --- ./compile case_lowers.c --- auto-str.o --- auto-str.c:14:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ auto-str.c:14:1: note: change return type to 'int' void main(argc,argv) ^~~~ int auto-str.c:32:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (ch = *value++) { ~~~^~~~~~~~~~ auto-str.c:32:13: note: place parentheses around the assignment to silence this warning while (ch = *value++) { ^ ( ) auto-str.c:32:13: note: use '==' to turn this assignment into an equality comparison while (ch = *value++) { ^ == 2 warnings generated. --- case_starts.o --- ./compile case_starts.c --- auto-int8.o --- auto-int8.c:16:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ auto-int8.c:16:1: note: change return type to 'int' void main(argc,argv) ^~~~ int auto-int8.c:30:3: warning: implicit declaration of function 'scan_8long' is invalid in C99 [-Wimplicit-function-declaration] scan_8long(value,&num); ^ 2 warnings generated. --- chkshsgr.o --- ./compile chkshsgr.c --- alloc.o --- alloc.c:3:14: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] extern char *malloc(); ^ alloc.c:3:14: note: 'malloc' is a builtin with type 'void *(unsigned long)' --- auto-int.o --- auto-int.c:16:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ auto-int.c:16:1: note: change return type to 'int' void main(argc,argv) ^~~~ int --- coe.o --- ./compile coe.c --- commands.o --- ./compile commands.c --- alloc.o --- 1 warning generated. --- constmap.o --- --- auto-int.o --- 1 warning generated. --- constmap.o --- ./compile constmap.c --- control.o --- ./compile control.c --- date822fmt.o --- --- datetime.o --- ./compile datetime.c --- datetime_un.o --- ./compile datetime_un.c --- direntry.h --- --- date822fmt.o --- ./compile date822fmt.c --- dns.o --- ./compile dns.c --- dnscname.o --- ./compile dnscname.c --- dnsdoe.o --- ./compile dnsdoe.c --- dnsfq.o --- ./compile dnsfq.c --- direntry.h --- ( ./compile trydrent.c >/dev/null 2>&1 && cat direntry.h2 || cat direntry.h1 ) > direntry.h --- dnsip.o --- ./compile dnsip.c --- case_lowers.o --- case_lowers.c:7:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (x = *s) { ~~^~~~ case_lowers.c:7:12: note: place parentheses around the assignment to silence this warning while (x = *s) { ^ ( ) case_lowers.c:7:12: note: use '==' to turn this assignment into an equality comparison while (x = *s) { ^ == --- chkshsgr.o --- chkshsgr.c:2:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ chkshsgr.c:2:1: note: change return type to 'int' void main() ^~~~ int chkshsgr.c:7:6: warning: implicit declaration of function 'getgroups' is invalid in C99 [-Wimplicit-function-declaration] if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); ^ chkshsgr.c:7:31: warning: implicit declaration of function 'setgroups' is invalid in C99 [-Wimplicit-function-declaration] if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); ^ --- control.o --- control.c:65:41: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (getln(&ss,sa,&match,'\n') == -1) { close(fd); return -1; } ^ control.c:68:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ control.c:120:31: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (!match && !line.len) { close(fd); return 1; } ^ control.c:126:18: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (!match) { close(fd); return 1; } ^ control.c:128:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ --- case_lowers.o --- 1 warning generated. --- dnsmxip.o --- ./compile dnsmxip.c --- direntry.h --- rm -f trydrent.o --- dnsptr.o --- ./compile dnsptr.c --- dnscname.o --- dnscname.c:11:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ dnscname.c:11:1: note: change return type to 'int' void main(argc,argv) ^~~~ int --- env.o --- ./compile env.c --- envread.o --- --- error.o --- --- error_str.o --- --- error_temp.o --- --- error_str.o --- ./compile error_str.c --- error_temp.o --- ./compile error_temp.c --- dns.o --- dns.c:49:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (response.buf = (unsigned char *)alloc(PACKETSZ+1)) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dns.c:49:20: note: place parentheses around the assignment to silence this warning if (response.buf = (unsigned char *)alloc(PACKETSZ+1)) ^ ( ) dns.c:49:20: note: use '==' to turn this assignment into an equality comparison if (response.buf = (unsigned char *)alloc(PACKETSZ+1)) ^ == dns.c:51:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else return DNS_MEM; ^ --- fd_copy.o --- --- dns.o --- dns.c:60:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else return DNS_MEM; ^ --- chkshsgr.o --- 3 warnings generated. --- fd_move.o --- ./compile fd_move.c --- error.o --- ./compile error.c --- envread.o --- ./compile envread.c --- fmt_str.o --- --- fmt_strn.o --- ./compile fmt_strn.c --- fd_copy.o --- ./compile fd_copy.c --- dnsip.o --- dnsip.c:15:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ dnsip.c:15:1: note: change return type to 'int' void main(argc,argv) ^~~~ int --- fmt_str.o --- ./compile fmt_str.c --- dnsfq.o --- dnsfq.c:13:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ dnsfq.c:13:1: note: change return type to 'int' void main(argc,argv) ^~~~ int --- dnscname.o --- 1 warning generated. --- fmt_uint.o --- ./compile fmt_uint.c --- control.o --- 5 warnings generated. --- fmt_uint0.o --- ./compile fmt_uint0.c --- dnsmxip.o --- dnsmxip.c:17:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ dnsmxip.c:17:1: note: change return type to 'int' void main(argc,argv) ^~~~ int --- fd_move.o --- fd_move.c:9:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(from); ^ --- dnsfq.o --- 1 warning generated. --- fmt_ulong.o --- ./compile fmt_ulong.c --- dnsmxip.o --- dnsmxip.c:29:14: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] r = now() + getpid(); ^ --- fd_move.o --- 1 warning generated. --- dns.o --- 3 warnings generated. --- fmtqfn.o --- ./compile fmtqfn.c --- fork.h --- ( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null 2>&1 && cat fork.h2 || cat fork.h1 ) > fork.h --- dnsip.o --- 1 warning generated. --- forward.o --- ./compile forward.c --- getln.o --- ./compile getln.c --- getln2.o --- ./compile getln2.c --- dnsmxip.o --- 2 warnings generated. --- gfrom.o --- ./compile gfrom.c --- envread.o --- envread.c:12:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (i = 0;envi = environ[i];++i) ~~~~~^~~~~~~~~~~~ envread.c:12:19: note: place parentheses around the assignment to silence this warning for (i = 0;envi = environ[i];++i) ^ ( ) envread.c:12:19: note: use '==' to turn this assignment into an equality comparison for (i = 0;envi = environ[i];++i) ^ == --- hasflock.h --- --- dnsptr.o --- dnsptr.c:14:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ dnsptr.c:14:1: note: change return type to 'int' void main(argc,argv) ^~~~ int --- hasflock.h --- ( ( ./compile tryflock.c && ./load tryflock ) >/dev/null 2>&1 && echo \#define HASFLOCK 1 || exit 0 ) > hasflock.h --- envread.o --- 1 warning generated. --- hasmkffo.h --- ( ( ./compile trymkffo.c && ./load trymkffo ) >/dev/null 2>&1 && echo \#define HASMKFIFO 1 || exit 0 ) > hasmkffo.h --- hassalen.h --- ( ./compile trysalen.c >/dev/null 2>&1 && echo \#define HASSALEN 1 || exit 0 ) > hassalen.h --- fd_copy.o --- fd_copy.c:10:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(to); ^ --- fmt_str.o --- fmt_str.c:9:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s) { while (ch = t[len]) s[len++] = ch; } ~~~^~~~~~~~ fmt_str.c:9:22: note: place parentheses around the assignment to silence this warning if (s) { while (ch = t[len]) s[len++] = ch; } ^ ( ) fmt_str.c:9:22: note: use '==' to turn this assignment into an equality comparison if (s) { while (ch = t[len]) s[len++] = ch; } ^ == --- dnsptr.o --- 1 warning generated. --- hassgact.h --- ( ( ./compile trysgact.c && ./load trysgact ) >/dev/null 2>&1 && echo \#define HASSIGACTION 1 || exit 0 ) > hassgact.h --- fd_copy.o --- 1 warning generated. --- hassgprm.h --- ( ( ./compile trysgprm.c && ./load trysgprm ) >/dev/null 2>&1 && echo \#define HASSIGPROCMASK 1 || exit 0 ) > hassgprm.h --- hasutmpx.h --- ( ( ./compile tryutmpx.c && ./load tryutmpx ) >/dev/null 2>&1 && echo \#define HASUTMPX 1 || exit 0 ) > hasutmpx.h --- haswaitp.h --- ( ( ./compile trywaitp.c && ./load trywaitp ) >/dev/null 2>&1 && echo \#define HASWAITPID 1 || exit 0 ) > haswaitp.h --- headerbody.o --- ./compile headerbody.c --- fmt_str.o --- 1 warning generated. --- hfield.o --- ./compile hfield.c --- forward.o --- forward.c:29:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ forward.c:29:1: note: change return type to 'int' void main(argc,argv) ^~~~ int forward.c:46:7: warning: implicit declaration of function 'str_len' is invalid in C99 [-Wimplicit-function-declaration] if (str_len(sender)) { ^ --- hier_destdir.o --- --- hier.o --- --- hier_destdir.o --- ./compile hier_destdir.c --- hier.o --- ./compile hier.c --- hostname.o --- ./compile hostname.c --- install-big.o --- ./compile install-big.c --- install.o --- ./compile install.c --- hassalen.h --- rm -f trysalen.o --- instcheck.o --- ./compile instcheck.c --- forward.o --- 2 warnings generated. --- ip.o --- ./compile ip.c --- fork.h --- rm -f tryvfork.o tryvfork --- ipalloc.o --- ./compile ipalloc.c --- hostname.o --- hostname.c:8:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ hostname.c:8:1: note: change return type to 'int' void main() ^~~~ int hostname.c:11:2: warning: implicit declaration of function 'gethostname' is invalid in C99 [-Wimplicit-function-declaration] gethostname(host,sizeof(host)); ^ --- hassgact.h --- rm -f trysgact.o trysgact --- ipmeprint.o --- ./compile ipmeprint.c --- install.o --- install.c:21:7: warning: implicit declaration of function 'mkdir' is invalid in C99 [-Wimplicit-function-declaration] if (mkdir(home,0700) == -1) ^ --- hostname.o --- 2 warnings generated. --- hasflock.h --- rm -f tryflock.o tryflock --- maildir2mbox.o --- --- hasmkffo.h --- rm -f trymkffo.o trymkffo --- maildirmake.o --- --- hier.o --- hier.c:17:3: warning: implicit declaration of function 'd' is invalid in C99 [-Wimplicit-function-declaration] d(auto_qmail,base,uid,auto_gidq,mode); ^ hier.c:32:3: warning: implicit declaration of function 'h' is invalid in C99 [-Wimplicit-function-declaration] h(auto_qmail,auto_uido,auto_gidq,0755); ^ hier.c:34:3: warning: implicit declaration of function 'd' is invalid in C99 [-Wimplicit-function-declaration] d(auto_qmail,"control",auto_uido,auto_gidq,0755); ^ hier.c:63:3: warning: implicit declaration of function 'z' is invalid in C99 [-Wimplicit-function-declaration] z(auto_qmail,"queue/lock/tcpto",1024,auto_uidr,auto_gidq,0644); ^ hier.c:65:3: warning: implicit declaration of function 'p' is invalid in C99 [-Wimplicit-function-declaration] p(auto_qmail,"queue/lock/trigger",auto_uids,auto_gidq,0622); ^ hier.c:67:3: warning: implicit declaration of function 'c' is invalid in C99 [-Wimplicit-function-declaration] c(auto_qmail,"boot","home",auto_uido,auto_gidq,0755); ^ --- hier_destdir.o --- hier_destdir.c:17:3: warning: implicit declaration of function 'd' is invalid in C99 [-Wimplicit-function-declaration] d(auto_qmail,base,uid,auto_gidq,mode); ^ --- maildirmake.o --- ./compile maildirmake.c --- install.o --- install.c:26:7: warning: implicit declaration of function 'chmod' is invalid in C99 [-Wimplicit-function-declaration] --- hier_destdir.o --- hier_destdir.c:32:3: warning: implicit declaration of function 'h' is invalid in C99 [-Wimplicit-function-declaration] h(auto_qmail,auto_uido,auto_gidq,0755); ^ hier_destdir.c:34:3: warning: implicit declaration of function 'd' is invalid in C99 [-Wimplicit-function-declaration] d(auto_qmail,"control",auto_uido,auto_gidq,0755); ^ hier_destdir.c:63:3: warning: implicit declaration of function 'z' is invalid in C99 [-Wimplicit-function-declaration] z(auto_qmail,"queue/lock/tcpto",1024,auto_uidr,auto_gidq,0644); ^ hier_destdir.c:65:3: warning: implicit declaration of function 'p' is invalid in C99 [-Wimplicit-function-declaration] p(auto_qmail,"queue/lock/trigger",auto_uids,auto_gidq,0622); ^ hier_destdir.c:67:3: warning: implicit declaration of function 'c' is invalid in C99 [-Wimplicit-function-declaration] c(auto_qmail,"boot","home",auto_uido,auto_gidq,0755); ^ --- maildirwatch.o --- --- maildir2mbox.o --- ./compile maildir2mbox.c --- install.o --- if (chmod(home,mode) == -1) ^ --- instcheck.o --- instcheck.c:59:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(home) == -1) ^ --- install.o --- install.c:37:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(home) == -1) ^ --- instcheck.o --- instcheck.c:71:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(home) == -1) ^ --- install.o --- install.c:39:7: warning: implicit declaration of function 'mkdir' is invalid in C99 [-Wimplicit-function-declaration] if (mkdir(subdir,0700) == -1) ^ --- instcheck.o --- instcheck.c:84:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(home) == -1) ^ --- install.o --- install.c:44:7: warning: implicit declaration of function 'chmod' is invalid in C99 [-Wimplicit-function-declaration] if (chmod(subdir,mode) == -1) ^ --- instcheck.o --- instcheck.c:99:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(home) == -1) ^ --- install.o --- install.c:55:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(home) == -1) ^ --- instcheck.o --- instcheck.c:104:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ --- install.o --- install.c:57:7: warning: implicit declaration of function 'fifo_make' is invalid in C99 [-Wimplicit-function-declaration] if (fifo_make(fifo,0700) == -1) ^ --- instcheck.o --- instcheck.c:104:1: note: change return type to 'int' void main() ^~~~ --- install.o --- install.c:62:7: warning: implicit declaration of function 'chmod' is invalid in C99 [-Wimplicit-function-declaration] --- instcheck.o --- int --- install.o --- if (chmod(fifo,mode) == -1) --- myctime.o --- ./compile myctime.c --- hier.o --- 6 warnings generated. --- ndelay.o --- --- maildirwatch.o --- ./compile maildirwatch.c --- hfield.o --- hfield.c:44:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (i = 0;ch = t[i];++i) ~~~^~~~~~ hfield.c:44:16: note: place parentheses around the assignment to silence this warning for (i = 0;ch = t[i];++i) ^ ( ) hfield.c:44:16: note: use '==' to turn this assignment into an equality comparison for (i = 0;ch = t[i];++i) ^ == hfield.c:70:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (i = 1;t = hname[i];++i) ~~^~~~~~~~~~ hfield.c:70:15: note: place parentheses around the assignment to silence this warning for (i = 1;t = hname[i];++i) ^ ( ) hfield.c:70:15: note: use '==' to turn this assignment into an equality comparison for (i = 1;t = hname[i];++i) ^ == --- ipmeprint.o --- ipmeprint.c:9:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ ipmeprint.c:9:1: note: change return type to 'int' void main() ^~~~ int --- instcheck.o --- 5 warnings generated. --- install.o --- ^ install.c:82:7: warning: implicit declaration of function 'fchdir' is invalid in C99 [-Wimplicit-function-declaration] if (fchdir(fdsourcedir) == -1) ^ install.c:90:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(home) == -1) ^ install.c:107:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fdin); ^ install.c:110:7: warning: implicit declaration of function 'fsync' is invalid in C99 [-Wimplicit-function-declaration] if (fsync(fdout) == -1) ^ install.c:117:7: warning: implicit declaration of function 'chmod' is invalid in C99 [-Wimplicit-function-declaration] if (chmod(file,mode) == -1) ^ install.c:131:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(home) == -1) ^ --- hassgprm.h --- rm -f trysgprm.o trysgprm --- install.o --- install.c:145:7: warning: implicit declaration of function 'fsync' is invalid in C99 [-Wimplicit-function-declaration] if (fsync(fdout) == -1) ^ install.c:147:7: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (close(fdout) == -1) /* NFS silliness */ ^ install.c:152:7: warning: implicit declaration of function 'chmod' is invalid in C99 [-Wimplicit-function-declaration] if (chmod(file,mode) == -1) ^ install.c:156:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ --- ndelay_off.o --- --- install.o --- install.c:156:1: note: change return type to 'int' void main() ^~~~ int install.c:162:3: warning: implicit declaration of function 'umask' is invalid in C99 [-Wimplicit-function-declaration] umask(077); ^ --- ndelay_off.o --- ./compile ndelay_off.c --- newfield.o --- ./compile newfield.c --- ndelay.o --- ./compile ndelay.c --- install-big.o --- install-big.c:17:3: warning: implicit declaration of function 'd' is invalid in C99 [-Wimplicit-function-declaration] d(auto_qmail,base,uid,auto_gidq,mode); ^ --- hier_destdir.o --- 6 warnings generated. --- now.o --- --- install-big.o --- install-big.c:32:3: warning: implicit declaration of function 'h' is invalid in C99 [-Wimplicit-function-declaration] h(auto_qmail,auto_uido,auto_gidq,0755); ^ install-big.c:34:3: warning: implicit declaration of function 'd' is invalid in C99 [-Wimplicit-function-declaration] d(auto_qmail,"control",auto_uido,auto_gidq,0755); ^ install-big.c:63:3: warning: implicit declaration of function 'z' is invalid in C99 [-Wimplicit-function-declaration] z(auto_qmail,"queue/lock/tcpto",1024,auto_uidr,auto_gidq,0644); ^ install-big.c:65:3: warning: implicit declaration of function 'p' is invalid in C99 [-Wimplicit-function-declaration] p(auto_qmail,"queue/lock/trigger",auto_uids,auto_gidq,0622); ^ install-big.c:67:3: warning: implicit declaration of function 'c' is invalid in C99 [-Wimplicit-function-declaration] c(auto_qmail,"boot","home",auto_uido,auto_gidq,0755); ^ --- ipmeprint.o --- 1 warning generated. --- haswaitp.h --- rm -f trywaitp.o trywaitp --- open_append.o --- --- open_excl.o --- --- open_append.o --- ./compile open_append.c --- maildirmake.o --- maildirmake.c:6:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ maildirmake.c:6:1: note: change return type to 'int' void main(argc,argv) ^~~~ int maildirmake.c:10:3: warning: implicit declaration of function 'umask' is invalid in C99 [-Wimplicit-function-declaration] umask(077); ^ maildirmake.c:13:7: warning: implicit declaration of function 'mkdir' is invalid in C99 [-Wimplicit-function-declaration] if (mkdir(argv[1],0700) == -1) ^ maildirmake.c:15:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(argv[1]) == -1) ^ --- open_excl.o --- ./compile open_excl.c --- open_read.o --- --- maildirmake.o --- 4 warnings generated. --- open_read.o --- ./compile open_read.c --- open_trunc.o --- ./compile open_trunc.c --- install.o --- 19 warnings generated. --- hfield.o --- 2 warnings generated. --- open_write.o --- --- prioq.o --- --- open_write.o --- ./compile open_write.c --- prioq.o --- ./compile prioq.c --- qmail-getpw.o --- --- now.o --- ./compile now.c --- hasutmpx.h --- rm -f tryutmpx.o tryutmpx --- qmail-inject.o --- ./compile qmail-inject.c --- install-big.o --- 6 warnings generated. --- qmail-pop3d.o --- ./compile qmail-pop3d.c --- qmail-popup.o --- ./compile qmail-popup.c --- qmail-getpw.o --- ./compile qmail-getpw.c --- qmail-pw2u.o --- ./compile qmail-pw2u.c --- newfield.o --- newfield.c:45:17: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] i = fmt_uint(s,getpid()); len += i; if (s) s += i; ^ --- qmail-qmqpc.o --- ./compile qmail-qmqpc.c --- qmail-qmqpd.o --- ./compile qmail-qmqpd.c --- qmail-qmtpd.o --- --- qmail-queue.o --- ./compile qmail-queue.c --- qmail-qmtpd.o --- ./compile qmail-qmtpd.c --- maildir2mbox.o --- maildir2mbox.c:36:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ maildir2mbox.c:36:1: note: change return type to 'int' void main() ^~~~ int maildir2mbox.c:47:2: warning: implicit declaration of function 'umask' is invalid in C99 [-Wimplicit-function-declaration] umask(077); ^ --- qmail-remote.o --- ./compile qmail-remote.c --- maildir2mbox.o --- maildir2mbox.c:142:4: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ maildir2mbox.c:147:6: warning: implicit declaration of function 'fsync' is invalid in C99 [-Wimplicit-function-declaration] if (fsync(fdnewmbox) == -1) ^ maildir2mbox.c:149:6: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (close(fdnewmbox) == -1) /* NFS dorks */ ^ maildir2mbox.c:151:6: warning: implicit declaration of function 'rename' is invalid in C99 [-Wimplicit-function-declaration] if (rename(mboxtmp,mbox) == -1) ^ maildir2mbox.c:157:8: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] if (unlink(filenames.s + pe.id) == -1) ^ --- newfield.o --- 1 warning generated. --- qmail-getpw.o --- qmail-getpw.c:48:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ --- qmail-smtpd.o --- ./compile qmail-smtpd.c --- qmail-popup.o --- qmail-popup.c:92:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(3); ^ qmail-popup.c:93:7: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pi) == -1) die_pipe(); ^ qmail-popup.c:95:18: warning: implicit declaration of function 'fork' is invalid in C99 [-Wimplicit-function-declaration] switch(child = fork()) { ^ qmail-popup.c:101:7: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(*childargs,childargs); ^ qmail-popup.c:125:19: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] s += fmt_uint(s,getpid()); ^ qmail-popup.c:168:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-popup.c:168:1: note: change return type to 'int' void main(argc,argv) ^~~~ int --- maildirwatch.o --- maildirwatch.c:61:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] --- qmail-getpw.o --- qmail-getpw.c:58:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ --- maildirwatch.o --- void main() ^ --- qmail-getpw.o --- qmail-getpw.c:58:1: note: change return type to 'int' void main(argc,argv) ^~~~ int --- maildirwatch.o --- maildirwatch.c:61:1: note: change return type to 'int' void main() ^~~~ int maildirwatch.c:119:6: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ maildirwatch.c:123:4: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] sleep(30); ^ --- qmail-tcpok.o --- --- qmail-inject.o --- qmail-inject.c:133:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ qmail-inject.c:149:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ qmail-inject.c:502:76: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] if (!stralloc_catb(&hackedruser,strnum,fmt_ulong(strnum,(unsigned long) getpid()))) die_nomem(); ^ qmail-inject.c:664:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) die_chdir(); ^ qmail-inject.c:702:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-inject.c:702:1: note: change return type to 'int' void main(argc,argv) ^~~~ int --- qmail-pop3d.o --- qmail-pop3d.c:185:11: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] if (unlink(m[i].fn) == -1) err_nounlink(); ^ qmail-pop3d.c:193:2: warning: implicit declaration of function 'rename' is invalid in C99 [-Wimplicit-function-declaration] rename(m[i].fn,line.s); /* if it fails, bummer */ ^ qmail-pop3d.c:273:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ qmail-pop3d.c:290:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-pop3d.c:290:1: note: change return type to 'int' void main(argc,argv) ^~~~ int qmail-pop3d.c:298:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(argv[1]) == -1) die_nomaildir(); ^ --- qmail-getpw.o --- 2 warnings generated. --- qmail-tcpto.o --- --- qreceipt.o --- --- maildirwatch.o --- 3 warnings generated. --- qmail-popup.o --- 6 warnings generated. --- qreceipt.o --- ./compile qreceipt.c --- qmail-tcpto.o --- ./compile qmail-tcpto.c --- qmail-tcpok.o --- ./compile qmail-tcpok.c --- qsutil.o --- ./compile qsutil.c --- qmail-pw2u.o --- qmail-pw2u.c:23:3: warning: implicitly declaring library function '_exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] _exit(111); ^ qmail-pw2u.c:23:3: note: include the header or explicitly provide a declaration for '_exit' --- quote.o --- ./compile quote.c --- qmail-pw2u.o --- qmail-pw2u.c:101:7: warning: implicit declaration of function 'byte_chr' is invalid in C99 [-Wimplicit-function-declaration] if (byte_chr(line.s,line.len,'\0') < line.len) return; ^ qmail-pw2u.c:202:36: warning: implicit declaration of function 'byte_chr' is invalid in C99 [-Wimplicit-function-declaration] x = line.s; xlen = line.len; i = byte_chr(x,xlen,':'); if (i == xlen) return; ^ --- maildir2mbox.o --- 7 warnings generated. --- received.o --- --- remoteinfo.o --- --- received.o --- ./compile received.c --- remoteinfo.o --- ./compile remoteinfo.c --- qmail-pop3d.o --- 5 warnings generated. --- scan_8long.o --- ./compile scan_8long.c --- qmail-qmqpd.o --- qmail-qmqpd.c:103:10: warning: implicit declaration of function 'byte_chr' is invalid in C99 [-Wimplicit-function-declaration] return byte_chr(buf,len,'\0') == len; ^ qmail-qmqpd.c:108:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() ^ qmail-qmqpd.c:117:3: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] alarm(3600); ^ qmail-qmqpd.c:123:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) resources(); ^ qmail-qmqpd.c:168:63: warning: implicit declaration of function 'str_len' is invalid in C99 [-Wimplicit-function-declaration] substdio_put(&ssout,strnum,fmt_ulong(strnum,(unsigned long) str_len(result))); ^ 5 warnings generated. --- qmail-qmqpc.o --- qmail-qmqpc.c:115:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(qmqpfd); ^ qmail-qmqpc.c:138:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() ^ qmail-qmqpc.c:145:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) die_home(); ^ --- scan_ulong.o --- ./compile scan_ulong.c --- seek_cur.o --- ./compile seek_cur.c --- qmail-inject.o --- 5 warnings generated. --- seek_end.o --- ./compile seek_end.c --- qmail-pw2u.o --- qmail-pw2u.c:231:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-pw2u.c:231:1: note: change return type to 'int' void main(argc,argv) ^~~~ int qmail-pw2u.c:253:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) die_chdir(); ^ qmail-pw2u.c:293:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ --- seek_set.o --- ./compile seek_set.c --- qmail-qmtpd.o --- qmail-qmtpd.c:15:19: warning: implicitly declaring library function '_exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] void badproto() { _exit(100); } ^ qmail-qmtpd.c:15:19: note: include the header or explicitly provide a declaration for '_exit' qmail-qmtpd.c:77:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() ^ qmail-qmtpd.c:93:3: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] alarm(3600); ^ qmail-qmtpd.c:95:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) resources(); ^ qmail-qmtpd.c:104:12: warning: implicit declaration of function 'scan_ulong' is invalid in C99 [-Wimplicit-function-declaration] if (x) { scan_ulong(x,&u); databytes = u; } ^ --- qmail-queue.o --- qmail-queue.c:48:8: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] if (unlink(intdfn) == -1) return; ^ qmail-queue.c:53:8: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] if (unlink(messfn) == -1) return; ^ --- qmail-remote.o --- qmail-remote.c:120:26: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (ssl_err_str) { out(ssl_err_str); out(" "); } ^~~~~~~~~~~ --- qmail-queue.o --- qmail-queue.c:154:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qmail-queue.c:154:1: note: change return type to 'int' void main() ^~~~ int qmail-queue.c:161:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) die(61); ^ qmail-queue.c:164:10: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] mypid = getpid(); ^ qmail-queue.c:165:8: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] uid = getuid(); ^ qmail-queue.c:176:2: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] alarm(DEATH); ^ qmail-queue.c:186:6: warning: implicit declaration of function 'link' is invalid in C99 [-Wimplicit-function-declaration] if (link(pidfn,messfn) == -1) die(64); ^ qmail-queue.c:187:6: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] if (unlink(pidfn) == -1) die(63); ^ qmail-queue.c:202:6: warning: implicit declaration of function 'fsync' is invalid in C99 [-Wimplicit-function-declaration] if (fsync(messfd) == -1) die_write(); ^ --- qmail-remote.o --- qmail-remote.c:183:7: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] get(&ch); code = ch - '0'; ^~~ qmail-remote.c:184:7: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] get(&ch); code = code * 10 + (ch - '0'); ^~~ qmail-remote.c:185:7: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] get(&ch); code = code * 10 + (ch - '0'); ^~~ qmail-remote.c:187:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] get(&ch); ^~~ qmail-remote.c:189:28: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (ch != '\n') get(&ch); ^~~ qmail-remote.c:190:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] get(&ch); ^~~ qmail-remote.c:191:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] get(&ch); ^~~ qmail-remote.c:192:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] get(&ch); ^~~ qmail-remote.c:194:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] while (ch != '\n') get(&ch); ^~~ qmail-remote.c:276:24: error: incomplete definition of type 'struct ssl_st' int state = ssl ? ssl->state : SSL_ST_BEFORE; ~~~^ /usr/include/openssl/ossl_typ.h:144:16: note: forward declaration of 'struct ssl_st' typedef struct ssl_st SSL; ^ qmail-remote.c:276:34: error: use of undeclared identifier 'SSL_ST_BEFORE'; did you mean 'TLS_ST_BEFORE'? int state = ssl ? ssl->state : SSL_ST_BEFORE; ^~~~~~~~~~~~~ TLS_ST_BEFORE /usr/include/openssl/ssl.h:871:5: note: 'TLS_ST_BEFORE' declared here TLS_ST_BEFORE, ^ qmail-remote.c:277:15: error: use of undeclared identifier 'SSL_ST_OK'; did you mean 'TLS_ST_OK'? if (state & SSL_ST_OK || (!smtps && state & SSL_ST_BEFORE)) ^~~~~~~~~ TLS_ST_OK /usr/include/openssl/ssl.h:872:5: note: 'TLS_ST_OK' declared here TLS_ST_OK, ^ qmail-remote.c:277:47: error: use of undeclared identifier 'SSL_ST_BEFORE'; did you mean 'TLS_ST_BEFORE'? if (state & SSL_ST_OK || (!smtps && state & SSL_ST_BEFORE)) ^~~~~~~~~~~~~ TLS_ST_BEFORE /usr/include/openssl/ssl.h:871:5: note: 'TLS_ST_BEFORE' declared here TLS_ST_BEFORE, ^ qmail-remote.c:346:7: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] out(s1); if (s2) { out(": "); out(s2); } TLS_QUIT; ^~ qmail-remote.c:346:37: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] out(s1); if (s2) { out(": "); out(s2); } TLS_QUIT; ^~ qmail-remote.c:400:43: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] out("ZNo TLS achieved while "); out(servercert); ^~~~~~~~~~ qmail-remote.c:460:11: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] out(servercert); out(" exists"); TLS_QUIT; ^~~~~~~~~~ qmail-remote.c:494:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (match_partner(gn->d.ia5->data, gn->d.ia5->length)) break; ^~~~~~~~~~~~~~~ qmail-remote.c:350:31: note: passing argument to parameter 's' here int match_partner(const char *s, int len) ^ qmail-remote.c:505:60: error: incomplete definition of type 'struct X509_name_entry_st' const ASN1_STRING *s = X509_NAME_get_entry(subj, i)->value; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/x509.h:71:16: note: forward declaration of 'struct X509_name_entry_st' typedef struct X509_name_entry_st X509_NAME_ENTRY; ^ qmail-remote.c:506:47: warning: assigning to 'char *' from 'unsigned char *const' converts between pointers to integer types with different sign [-Wpointer-sign] if (s) { peer.len = s->length; peer.s = s->data; } ^ ~~~~~~~ qmail-remote.c:548:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (containsutf8(sender.s, sender.len)) { utf8message = 1; return; } ^~~~~~~~ qmail-remote.c:550:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (containsutf8(reciplist.sa[i].s, reciplist.sa[i].len)) { ^~~~~~~~~~~~~~~~~ qmail-remote.c:771:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-remote.c:771:1: note: change return type to 'int' void main(argc,argv) ^~~~ int qmail-remote.c:786:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) temp_chdir(); ^ qmail-remote.c:795:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-remote.c:795:21: note: place parentheses around the assignment to silence this warning if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) ^ ( ) qmail-remote.c:795:21: note: use '==' to turn this assignment into an equality comparison if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) ^ == qmail-remote.c:809:28: warning: passing 'char *' to parameter of type 'const __uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] switch (idn2_lookup_u8(host.s, (uint8_t**)&ascii, IDN2_NFC_INPUT)) { ^~~~~~ /data/scratch/mail/qmail/work/.buildlink/include/idn2.h:179:37: note: passing argument to parameter 'src' here idn2_lookup_u8 (const uint8_t * src, uint8_t ** lookupname, int flags); ^ qmail-remote.c:834:21: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] random = now() + (getpid() << 16); ^ qmail-remote.c:876:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(smtpfd); ^ 24 warnings and 5 errors generated. *** [qmail-remote.o] Error code 1 make: stopped in /data/scratch/mail/qmail/work/netqmail-1.06 --- qreceipt.o --- qreceipt.c:97:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else die_qqtemp(); ^ qreceipt.c:122:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qreceipt.c:122:1: note: change return type to 'int' void main(argc,argv) ^~~~ int --- qmail-qmqpc.o --- 3 warnings generated. --- qmail-tcpto.o --- qmail-tcpto.c:35:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qmail-tcpto.c:35:1: note: change return type to 'int' void main() ^~~~ int qmail-tcpto.c:46:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) die_chdir(); ^ qmail-tcpto.c:49:11: warning: implicit declaration of function 'open_write' is invalid in C99 [-Wimplicit-function-declaration] fdlock = open_write("tcpto"); ^ qmail-tcpto.c:51:7: warning: implicit declaration of function 'open_read' is invalid in C99 [-Wimplicit-function-declaration] fd = open_read("tcpto"); ^ qmail-tcpto.c:54:6: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] r = read(fd,tcpto_buf,sizeof(tcpto_buf)); ^ qmail-tcpto.c:55:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ qmail-tcpto.c:68:6: warning: implicit declaration of function 'byte_copy' is invalid in C99 [-Wimplicit-function-declaration] byte_copy(&ip,4,record); ^ --- qmail-tcpok.o --- qmail-tcpok.c:14:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qmail-tcpok.c:14:1: note: change return type to 'int' void main() ^~~~ int qmail-tcpok.c:19:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) ^ --- remoteinfo.o --- remoteinfo.c:52:51: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (timeoutconn(s,ipr,ipl,113,timeout) == -1) { close(s); return 0; } ^ remoteinfo.c:62:48: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (substdio_putflush(&ss,line,len) == -1) { close(s); return 0; } ^ remoteinfo.c:68:41: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (substdio_get(&ss,&ch,1) != 1) { close(s); return 0; } ^ remoteinfo.c:75:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(s); ^ --- qmail-tcpok.o --- 2 warnings generated. --- received.o --- received.c:29:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (ch = *s++) { ~~~^~~~~~ received.c:29:13: note: place parentheses around the assignment to silence this warning while (ch = *s++) { ^ ( ) received.c:29:13: note: use '==' to turn this assignment into an equality comparison while (ch = *s++) { ^ == --- qmail-tcpto.o --- 7 warnings generated. --- qmail-pw2u.o --- 6 warnings generated. --- qreceipt.o --- 2 warnings generated. --- received.o --- 1 warning generated. --- qmail-queue.o --- 10 warnings generated. --- remoteinfo.o --- 4 warnings generated. --- qsutil.o --- In file included from qsutil.c:4: ./qsutil.h:5:13: warning: incompatible redeclaration of library function 'log2' [-Wincompatible-library-redeclaration] extern void log2(); ^ ./qsutil.h:5:13: note: 'log2' is a builtin with type 'double (double)' qsutil.c:22:61: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] void nomem() { log1("alert: out of memory, sleeping...\n"); sleep(10); } ^ qsutil.c:25:60: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] { log3("alert: unable to opendir ",dir,", sleeping...\n"); sleep(10); } ^ 3 warnings generated. --- qmail-qmtpd.o --- 5 warnings generated. --- qmail-smtpd.o --- qmail-smtpd.c:219:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (i = 0;ch = arg[i];++i) { /* copy arg to addr, stripping quotes */ ~~~^~~~~~~~ qmail-smtpd.c:219:17: note: place parentheses around the assignment to silence this warning for (i = 0;ch = arg[i];++i) { /* copy arg to addr, stripping quotes */ ^ ( ) qmail-smtpd.c:219:17: note: use '==' to turn this assignment into an equality comparison for (i = 0;ch = arg[i];++i) { /* copy arg to addr, stripping quotes */ ^ == qmail-smtpd.c:291:16: warning: implicit declaration of function 'fork' is invalid in C99 [-Wimplicit-function-declaration] switch(pid = fork()) { ^ qmail-smtpd.c:296:7: warning: implicit declaration of function 'execv' is invalid in C99 [-Wimplicit-function-declaration] execv(*rcptcheck,rcptcheck); ^ qmail-smtpd.c:352:39: warning: expression result unused [-Wunused-value] if (!stralloc_copys(&mfparms,"")) die_nomem; ^~~~~~~~~ qmail-smtpd.c:361:46: warning: expression result unused [-Wunused-value] if (!stralloc_copys(&mfparms,"")) die_nomem; ^~~~~~~~~ qmail-smtpd.c:364:47: warning: expression result unused [-Wunused-value] if (!stralloc_catb(&mfparms,arg,1)) die_nomem; ^~~~~~~~~ qmail-smtpd.c:624:7: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pi) == -1) return err_pipe(); ^ qmail-smtpd.c:625:18: warning: implicit declaration of function 'fork' is invalid in C99 [-Wimplicit-function-declaration] switch(child = fork()) { ^ qmail-smtpd.c:629:7: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(pi[1]); ^ qmail-smtpd.c:630:10: warning: implicit declaration of function 'fd_copy' is invalid in C99 [-Wimplicit-function-declaration] if(fd_copy(3,pi[0]) == -1) return err_pipe(); ^ qmail-smtpd.c:632:9: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(*childargs, childargs); ^ qmail-smtpd.c:635:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(pi[0]); ^ qmail-smtpd.c:653:31: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] if (wait_exitcode(wstat)) { sleep(AUTHSLEEP); return 1; } /* no */ ^ qmail-smtpd.c:662:13: warning: implicit declaration of function 'b64decode' is invalid in C99 [-Wimplicit-function-declaration] if (r = b64decode(arg,str_len(arg),&user) == 1) return err_input(); ^ qmail-smtpd.c:662:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = b64decode(arg,str_len(arg),&user) == 1) return err_input(); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-smtpd.c:662:11: note: place parentheses around the assignment to silence this warning if (r = b64decode(arg,str_len(arg),&user) == 1) return err_input(); ^ ( ) qmail-smtpd.c:662:11: note: use '==' to turn this assignment into an equality comparison if (r = b64decode(arg,str_len(arg),&user) == 1) return err_input(); ^ == qmail-smtpd.c:667:13: warning: implicit declaration of function 'b64decode' is invalid in C99 [-Wimplicit-function-declaration] if (r = b64decode(authin.s,authin.len,&user) == 1) return err_input(); ^ qmail-smtpd.c:667:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = b64decode(authin.s,authin.len,&user) == 1) return err_input(); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-smtpd.c:667:11: note: place parentheses around the assignment to silence this warning if (r = b64decode(authin.s,authin.len,&user) == 1) return err_input(); ^ ( ) qmail-smtpd.c:667:11: note: use '==' to turn this assignment into an equality comparison if (r = b64decode(authin.s,authin.len,&user) == 1) return err_input(); ^ == qmail-smtpd.c:674:11: warning: implicit declaration of function 'b64decode' is invalid in C99 [-Wimplicit-function-declaration] if (r = b64decode(authin.s,authin.len,&pass) == 1) return err_input(); ^ qmail-smtpd.c:674:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = b64decode(authin.s,authin.len,&pass) == 1) return err_input(); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-smtpd.c:674:9: note: place parentheses around the assignment to silence this warning if (r = b64decode(authin.s,authin.len,&pass) == 1) return err_input(); ^ ( ) qmail-smtpd.c:674:9: note: use '==' to turn this assignment into an equality comparison if (r = b64decode(authin.s,authin.len,&pass) == 1) return err_input(); ^ == qmail-smtpd.c:686:13: warning: implicit declaration of function 'b64decode' is invalid in C99 [-Wimplicit-function-declaration] if (r = b64decode(arg,str_len(arg),&resp) == 1) return err_input(); ^ qmail-smtpd.c:686:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = b64decode(arg,str_len(arg),&resp) == 1) return err_input(); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-smtpd.c:686:11: note: place parentheses around the assignment to silence this warning if (r = b64decode(arg,str_len(arg),&resp) == 1) return err_input(); ^ ( ) qmail-smtpd.c:686:11: note: use '==' to turn this assignment into an equality comparison if (r = b64decode(arg,str_len(arg),&resp) == 1) return err_input(); ^ == qmail-smtpd.c:691:13: warning: implicit declaration of function 'b64decode' is invalid in C99 [-Wimplicit-function-declaration] if (r = b64decode(authin.s,authin.len,&resp) == 1) return err_input(); ^ qmail-smtpd.c:691:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = b64decode(authin.s,authin.len,&resp) == 1) return err_input(); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-smtpd.c:691:11: note: place parentheses around the assignment to silence this warning if (r = b64decode(authin.s,authin.len,&resp) == 1) return err_input(); ^ ( ) qmail-smtpd.c:691:11: note: use '==' to turn this assignment into an equality comparison if (r = b64decode(authin.s,authin.len,&resp) == 1) return err_input(); ^ == qmail-smtpd.c:712:19: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] s += fmt_uint(s,getpid()); ^ qmail-smtpd.c:721:7: warning: implicit declaration of function 'b64encode' is invalid in C99 [-Wimplicit-function-declaration] if (b64encode(&chal,&slop) < 0) die_nomem(); ^ qmail-smtpd.c:730:11: warning: implicit declaration of function 'b64decode' is invalid in C99 [-Wimplicit-function-declaration] if (r = b64decode(authin.s,authin.len,&resp) == 1) return err_input(); ^ qmail-smtpd.c:730:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (r = b64decode(authin.s,authin.len,&resp) == 1) return err_input(); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-smtpd.c:730:9: note: place parentheses around the assignment to silence this warning if (r = b64decode(authin.s,authin.len,&resp) == 1) return err_input(); ^ ( ) qmail-smtpd.c:730:9: note: use '==' to turn this assignment into an equality comparison if (r = b64decode(authin.s,authin.len,&resp) == 1) return err_input(); ^ == qmail-smtpd.c:794:43: warning: too many arguments in call to 'err_authfail' err_authfail(user.s,authcmds[i].text); ~~~~~~~~~~~~ ^ qmail-smtpd.c:808:23: warning: too few arguments in call to 'err_unimpl' if (ssl) err_unimpl(); ~~~~~~~~~~ ^ qmail-smtpd.c:824:10: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] return RSA_generate_key(keylen, RSA_F4, NULL, NULL); ^ /usr/include/openssl/rsa.h:193:1: note: 'RSA_generate_key' has been explicitly marked deprecated here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ /usr/include/openssl/opensslconf.h:139:34: note: expanded from macro 'DEPRECATEDIN_0_9_8' # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ qmail-smtpd.c:846:10: warning: 'DH_generate_parameters' is deprecated [-Wdeprecated-declarations] return DH_generate_parameters(keylen, DH_GENERATOR_2, NULL, NULL); ^ /usr/include/openssl/dh.h:135:1: note: 'DH_generate_parameters' has been explicitly marked deprecated here DEPRECATEDIN_0_9_8(DH *DH_generate_parameters(int prime_len, int generator, ^ /usr/include/openssl/opensslconf.h:139:34: note: expanded from macro 'DEPRECATEDIN_0_9_8' # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ qmail-smtpd.c:857:40: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (ssl_verify_err) { out(": "); out(ssl_verify_err); } ^~~~~~~~~~~~~~ qmail-smtpd.c:861:24: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] out("454 TLS "); out(s1); ^~ qmail-smtpd.c:862:28: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (s2) { out(": "); out(s2); } ^~ qmail-smtpd.c:920:58: error: incomplete definition of type 'struct X509_name_entry_st' const ASN1_STRING *s = X509_NAME_get_entry(subj, n)->value; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/x509.h:71:16: note: forward declaration of 'struct X509_name_entry_st' typedef struct X509_name_entry_st X509_NAME_ENTRY; ^ qmail-smtpd.c:921:47: warning: assigning to 'char *' from 'unsigned char *const' converts between pointers to integer types with different sign [-Wpointer-sign] if (s) { email.len = s->length; email.s = s->data; } ^ ~~~~~~~ qmail-smtpd.c:1053:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-smtpd.c:1053:1: note: change return type to 'int' void main(argc,argv) ^~~~ int qmail-smtpd.c:1059:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) die_control(); ^ 37 warnings and 1 error generated. *** [qmail-smtpd.o] Error code 1 make: stopped in /data/scratch/mail/qmail/work/netqmail-1.06 2 errors make: stopped in /data/scratch/mail/qmail/work/netqmail-1.06 *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/mail/qmail *** Error code 1 Stop. make: stopped in /data/pkgsrc/mail/qmail