=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for qmail-1.03nb20 ( cat warn-auto.sh; echo CC=\'`head -1 conf-cc`\'; echo LD=\'`head -1 conf-ld`\' ) > auto-ccld.sh cat auto-ccld.sh make-load.sh > make-load chmod 755 make-load cat auto-ccld.sh find-systype.sh > find-systype chmod 755 find-systype ./find-systype > systype ( cat warn-auto.sh; ./make-load "`cat systype`" ) > load chmod 755 load cat auto-ccld.sh make-compile.sh > make-compile chmod 755 make-compile ( cat warn-auto.sh; ./make-compile "`cat systype`" ) > compile chmod 755 compile ( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null 2>&1 && cat fork.h2 || cat fork.h1 ) > fork.h rm -f tryvfork.o tryvfork ./compile qmail-local.c qmail-local.c:74:23: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] void tryunlinktmp() { unlink(fntmptph); } ^ qmail-local.c:91:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(dir) == -1) { if (error_temp(errno)) _exit(1); _exit(2); } ^ qmail-local.c:92:8: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] pid = getpid(); ^ qmail-local.c:94:2: warning: implicit declaration of function 'gethostname' is invalid in C99 [-Wimplicit-function-declaration] gethostname(host,sizeof(host)); ^ qmail-local.c:106:4: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] sleep(2); ^ qmail-local.c:111:2: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] alarm(86400); ^ qmail-local.c:127:6: warning: implicit declaration of function 'fsync' is invalid in C99 [-Wimplicit-function-declaration] if (fsync(fd) == -1) goto fail; ^ qmail-local.c:128:6: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (close(fd) == -1) goto fail; /* NFS dorks */ ^ qmail-local.c:130:6: warning: implicit declaration of function 'link' is invalid in C99 [-Wimplicit-function-declaration] if (link(fntmptph,fnnewtph) == -1) goto fail; ^ qmail-local.c:246:6: warning: implicit declaration of function 'execv' is invalid in C99 [-Wimplicit-function-declaration] execv(*args,args); ^ qmail-local.c:322:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ qmail-local.c:447:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-local.c:447:1: note: change return type to 'int' void main(argc,argv) ^~~~ int 12 warnings generated. ./compile qmail.c qmail.c:29:7: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pim) == -1) return -1; ^ qmail.c:30:26: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pie) == -1) { close(pim[0]); close(pim[1]); return -1; } ^ qmail.c:42:11: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) _exit(61); ^ qmail.c:43:7: warning: implicit declaration of function 'execv' is invalid in C99 [-Wimplicit-function-declaration] execv(*binqqargs,binqqargs); ^ 4 warnings generated. ./compile quote.c ./compile now.c now.c:7:15: warning: incompatible pointer types passing 'long *' to parameter of type 'time_t *' (aka 'long long *') [-Wincompatible-pointer-types] return time((long *) 0); ^~~~~~~~~~ /usr/include/time.h:97:21: note: passing argument to parameter here time_t time(time_t *) __RENAME(__time50); ^ 1 warning generated. ./compile gfrom.c ./compile myctime.c ./compile slurpclose.c slurpclose.c:13:44: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (!stralloc_readyplus(sa,bufsize)) { close(fd); return -1; } ^ 1 warning generated. cat auto-ccld.sh make-makelib.sh > make-makelib chmod 755 make-makelib ( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > makelib chmod 755 makelib ./compile case_diffb.c ./compile case_diffs.c ./compile case_lowerb.c ./compile case_lowers.c 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) { ^ == 1 warning generated. ./compile case_starts.c ./makelib case.a case_diffb.o case_diffs.o case_lowerb.o case_lowers.o case_starts.o ./compile getln.c ./compile getln2.c ./makelib getln.a getln.o getln2.o ./compile subgetopt.c ./compile sgetopt.c ./makelib getopt.a subgetopt.o sgetopt.o ./compile sig_alarm.c ( ( ./compile trysgprm.c && ./load trysgprm ) >/dev/null 2>&1 && echo \#define HASSIGPROCMASK 1 || exit 0 ) > hassgprm.h rm -f trysgprm.o trysgprm ./compile sig_block.c ( ( ./compile trysgact.c && ./load trysgact ) >/dev/null 2>&1 && echo \#define HASSIGACTION 1 || exit 0 ) > hassgact.h rm -f trysgact.o trysgact ./compile sig_catch.c ./compile sig_pause.c ./compile sig_pipe.c ./compile sig_child.c ./compile sig_hup.c ./compile sig_term.c ./compile sig_bug.c ./compile sig_misc.c ./makelib sig.a sig_alarm.o sig_block.o sig_catch.o sig_pause.o sig_pipe.o sig_child.o sig_hup.o sig_term.o sig_bug.o sig_misc.o ./compile open_append.c ./compile open_excl.c ./compile open_read.c ./compile open_trunc.c ./compile open_write.c ./makelib open.a open_append.o open_excl.o open_read.o open_trunc.o open_write.o ./compile seek_cur.c ./compile seek_end.c ./compile seek_set.c ./compile seek_trunc.c ./makelib seek.a seek_cur.o seek_end.o seek_set.o seek_trunc.o ( ( ./compile tryflock.c && ./load tryflock ) >/dev/null 2>&1 && echo \#define HASFLOCK 1 || exit 0 ) > hasflock.h rm -f tryflock.o tryflock ./compile lock_ex.c ./compile lock_exnb.c ./compile lock_un.c ./makelib lock.a lock_ex.o lock_exnb.o lock_un.o ./compile fd_copy.c fd_copy.c:10:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(to); ^ 1 warning generated. ./compile fd_move.c fd_move.c:9:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(from); ^ 1 warning generated. ./makelib fd.a fd_copy.o fd_move.o ( ( ./compile trywaitp.c && ./load trywaitp ) >/dev/null 2>&1 && echo \#define HASWAITPID 1 || exit 0 ) > haswaitp.h rm -f trywaitp.o trywaitp ./compile wait_pid.c ./compile wait_nohang.c ./makelib wait.a wait_pid.o wait_nohang.o ./compile env.c ./compile envread.c 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) ^ == 1 warning generated. ./makelib env.a env.o envread.o ./compile stralloc_eady.c ./compile stralloc_pend.c ./compile stralloc_copy.c ./compile stralloc_opys.c ./compile stralloc_opyb.c ./compile stralloc_cat.c ./compile stralloc_cats.c ./compile stralloc_catb.c ./compile stralloc_arts.c ./makelib stralloc.a stralloc_eady.o stralloc_pend.o stralloc_copy.o stralloc_opys.o stralloc_opyb.o stralloc_cat.o stralloc_cats.o stralloc_catb.o stralloc_arts.o ./compile alloc.c 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 int)' 1 warning generated. ./compile alloc_re.c ./makelib alloc.a alloc.o alloc_re.o ./compile strerr_sys.c ./compile strerr_die.c ./makelib strerr.a strerr_sys.o strerr_die.o ./compile substdio.c ./compile substdi.c ./compile substdo.c substdo.c:20:17: warning: if statement has empty body [-Wempty-body] if (w == 0) ; /* luser's fault */ ^ substdo.c:20:17: note: put the semicolon on a separate line to silence this warning 1 warning generated. ./compile subfderr.c ./compile subfdout.c ./compile subfdouts.c ./compile subfdin.c ./compile subfdins.c ./compile substdio_copy.c ./makelib substdio.a substdio.o substdi.o substdo.o subfderr.o subfdout.o subfdouts.o subfdin.o subfdins.o substdio_copy.o ./compile error.c ./compile error_str.c ./compile error_temp.c ./makelib error.a error.o error_str.o error_temp.o ./compile str_len.c ./compile str_diff.c ./compile str_diffn.c ./compile str_cpy.c ./compile str_chr.c ./compile str_rchr.c ./compile str_start.c ./compile byte_chr.c ./compile byte_rchr.c ./compile byte_diff.c ./compile byte_copy.c ./compile byte_cr.c ./compile byte_zero.c ./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o str_chr.o str_rchr.o str_start.o byte_chr.o byte_rchr.o byte_diff.o byte_copy.o byte_cr.o byte_zero.o ./compile fmt_str.c 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; } ^ == 1 warning generated. ./compile fmt_strn.c ./compile fmt_uint.c ./compile fmt_uint0.c ./compile fmt_ulong.c ./compile scan_ulong.c ./compile scan_8long.c ./makelib fs.a fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o fmt_ulong.o scan_ulong.o scan_8long.o ./compile datetime.c ./compile datetime_un.c ./makelib datetime.a datetime.o datetime_un.o ./compile auto-str.c 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. ./load auto-str substdio.a error.a str.a ./auto-str auto_qmail `head -1 conf-qmail` > auto_qmail.c ./compile auto_qmail.c ./compile auto-int8.c 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. ./load auto-int8 substdio.a error.a str.a fs.a ./auto-int8 auto_patrn `head -1 conf-patrn` > auto_patrn.c ./compile auto_patrn.c ( ( ./compile trylsock.c && ./load trylsock -lsocket -lnsl ) >/dev/null 2>&1 && echo -lsocket -lnsl || exit 0 ) > socket.lib rm -f trylsock.o trylsock ./load qmail-local qmail.o quote.o now.o gfrom.o myctime.o slurpclose.o case.a getln.a getopt.a sig.a open.a seek.a lock.a fd.a wait.a env.a stralloc.a alloc.a strerr.a substdio.a error.a str.a fs.a datetime.a auto_qmail.o auto_patrn.o `cat socket.lib` ( ( ./compile tryulong32.c && ./load tryulong32 && ./tryulong32 ) >/dev/null 2>&1 && cat uint32.h2 || cat uint32.h1 ) > uint32.h rm -f tryulong32.o tryulong32 ./compile qmail-lspawn.c qmail-lspawn.c:95:7: warning: implicit declaration of function 'open_read' is invalid in C99 [-Wimplicit-function-declaration] fd = open_read("users/cdb"); ^ qmail-lspawn.c:117:36: warning: implicit declaration of function 'byte_chr' is invalid in C99 [-Wimplicit-function-declaration] if (!flagwild || (i == 1) || (byte_chr(wildchars.s,wildchars.len,lower.s[i - 1]) < wildchars.len)) ^ qmail-lspawn.c:129:10: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ qmail-lspawn.c:141:6: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pi) == -1) _exit(QLX_SYS); ^ qmail-lspawn.c:154:6: warning: implicit declaration of function 'execv' is invalid in C99 [-Wimplicit-function-declaration] execv(*args,args); ^ qmail-lspawn.c:187:8: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) _exit(QLX_USAGE); ^ qmail-lspawn.c:227:9: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] if (!getuid()) _exit(QLX_ROOT); ^ 7 warnings generated. ( ./compile trysysel.c >/dev/null 2>&1 && cat select.h2 || cat select.h1 ) > select.h rm -f trysysel.o trysysel ./compile chkspawn.c chkspawn.c:11:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ chkspawn.c:11:1: note: change return type to 'int' void main() ^~~~ int 1 warning generated. ./compile auto-int.c 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 1 warning generated. ./load auto-int substdio.a error.a str.a fs.a ./auto-int auto_spawn `head -1 conf-spawn` > auto_spawn.c ./compile auto_spawn.c ./load chkspawn substdio.a error.a str.a fs.a auto_spawn.o ./chkspawn ./compile spawn.c spawn.c:47:8: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(d[i].fdout); d[i].fdout = -1; ^ spawn.c:58:6: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] w = write(fd,buf,n); ^ spawn.c:119:6: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pi) == -1) ^ spawn.c:143:6: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] r = read(0,cmdbuf,sizeof(cmdbuf)); ^ spawn.c:180:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ spawn.c:180:1: note: change return type to 'int' void main(argc,argv) ^~~~ int spawn.c:190:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) _exit(111); ^ spawn.c:248:47: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] while (!stralloc_readyplus(&d[i].output,r)) sleep(10); /*XXX*/ ^ 7 warnings generated. ./compile chkshsgr.c 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); ^ 3 warnings generated. ./load chkshsgr ./chkshsgr || ( cat warn-shsgr; exit 1 ) ( ( ./compile tryshsgr.c && ./load tryshsgr && ./tryshsgr ) >/dev/null 2>&1 && echo \#define HASSHORTSETGROUPS 1 || exit 0 ) > hasshsgr.h rm -f tryshsgr.o tryshsgr ./compile prot.c prot.c:13:7: warning: implicit declaration of function 'setgroups' is invalid in C99 [-Wimplicit-function-declaration] if (setgroups(1,&gid) == -1) return -1; ^ prot.c:15:10: warning: implicit declaration of function 'setgid' is invalid in C99 [-Wimplicit-function-declaration] return setgid(gid); /* _should_ be redundant, but on some systems it isn't */ ^ prot.c:20:10: warning: implicit declaration of function 'setuid' is invalid in C99 [-Wimplicit-function-declaration] return setuid(uid); ^ 3 warnings generated. ./compile coe.c ./compile cdb_hash.c ./compile cdb_unpack.c ./compile cdb_seek.c cdb_seek.c:17:11: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] r = read(fd,buf,len); ^ 1 warning generated. ./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o ./compile auto-uid.c auto-uid.c:19:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ auto-uid.c:19:1: note: change return type to 'int' void main(argc,argv) ^~~~ int 1 warning generated. ./load auto-uid substdio.a error.a str.a fs.a ./compile auto-gid.c auto-gid.c:19:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ auto-gid.c:19:1: note: change return type to 'int' void main(argc,argv) ^~~~ int 1 warning generated. ./load auto-gid substdio.a error.a str.a fs.a ( ./auto-uid auto_uida `head -1 conf-users` &&./auto-uid auto_uidd `head -2 conf-users | tail -1` &&./auto-uid auto_uidl `head -3 conf-users | tail -1` &&./auto-uid auto_uido `head -4 conf-users | tail -1` &&./auto-uid auto_uidp `head -5 conf-users | tail -1` &&./auto-uid auto_uidq `head -6 conf-users | tail -1` &&./auto-uid auto_uidr `head -7 conf-users | tail -1` &&./auto-uid auto_uids `head -8 conf-users | tail -1` &&./auto-gid auto_gidq `head -1 conf-groups` &&./auto-gid auto_gidn `head -2 conf-groups | tail -1` ) > auto_uids.c.tmp && mv auto_uids.c.tmp auto_uids.c ./compile auto_uids.c ./load qmail-lspawn spawn.o prot.o slurpclose.o coe.o sig.a wait.a case.a cdb.a fd.a open.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_uids.o auto_spawn.o ./compile qmail-getpw.c qmail-getpw.c:48:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ qmail-getpw.c:58:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-getpw.c:58:1: note: change return type to 'int' void main(argc,argv) ^~~~ int 2 warnings generated. ./auto-str auto_break "`head -1 conf-break`" > auto_break.c ./compile auto_break.c ./auto-str auto_usera `head -1 conf-users` > auto_usera.c ./compile auto_usera.c ./load qmail-getpw case.a substdio.a error.a str.a fs.a auto_break.o auto_usera.o ./compile qmail-remote.c qmail-remote.c:150: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:151: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:152: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:154: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:156: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:157: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:158: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:159: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:161: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:329:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-remote.c:329:1: note: change return type to 'int' void main(argc,argv) ^~~~ int qmail-remote.c:344:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) temp_chdir(); ^ qmail-remote.c:353: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:353:21: note: place parentheses around the assignment to silence this warning if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) ^ ( ) qmail-remote.c:353:21: note: use '==' to turn this assignment into an equality comparison if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) ^ == qmail-remote.c:384:21: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] random = now() + (getpid() << 16); ^ qmail-remote.c:423:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(smtpfd); ^ 14 warnings generated. ./compile control.c 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; } ^ 1 warning generated. ./compile constmap.c ./compile timeoutread.c ./compile timeoutwrite.c ./compile timeoutconn.c timeoutconn.c:49:48: 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(s,(struct sockaddr *) &sin,&dummy) == -1) { ^~~~~~ /usr/include/sys/socket.h:645:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ 1 warning generated. ./compile tcpto.c tcpto.c:24:18: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (fd == -1) { close(fdlock); return 0; } ^ tcpto.c:60:35: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] if (now() - when < ((60 + (getpid() & 31)) << 6)) ^ 2 warnings generated. ./compile dns.c ./compile ip.c ./compile ipalloc.c ( ./compile trysalen.c >/dev/null 2>&1 && echo \#define HASSALEN 1 || exit 0 ) > hassalen.h rm -f trysalen.o ./compile ipme.c ipme.c:58:38: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (!stralloc_ready(&buf,len)) { close(s); return 0; } ^ 1 warning generated. ./compile ndelay.c ./compile ndelay_off.c ./makelib ndelay.a ndelay.o ndelay_off.o ( ( ./compile tryrsolv.c && ./load tryrsolv dns.o ipalloc.o ip.o stralloc.a alloc.a error.a fs.a str.a -lresolv `cat socket.lib` ) >/dev/null 2>&1 && echo -lresolv || exit 0 ) > dns.lib rm -f tryrsolv.o tryrsolv ./load qmail-remote control.o constmap.o timeoutread.o timeoutwrite.o timeoutconn.o tcpto.o now.o dns.o ip.o ipalloc.o ipme.o quote.o ndelay.a case.a sig.a open.a lock.a seek.a getln.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o `cat dns.lib` `cat socket.lib` ./compile qmail-rspawn.c qmail-rspawn.c:98:4: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(*args,args); ^ 1 warning generated. ./compile tcpto_clean.c tcpto_clean.c:19:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ 1 warning generated. ./load qmail-rspawn spawn.o tcpto_clean.o now.o coe.o sig.a open.a seek.a lock.a wait.a fd.a stralloc.a alloc.a substdio.a error.a str.a auto_qmail.o auto_uids.o auto_spawn.o ( ./compile trydrent.c >/dev/null 2>&1 && cat direntry.h2 || cat direntry.h1 ) > direntry.h rm -f trydrent.o ./compile qmail-clean.c qmail-clean.c:34:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (d = readdir(dir)) ~~^~~~~~~~~~~~~~ qmail-clean.c:34:11: note: place parentheses around the assignment to silence this warning while (d = readdir(dir)) ^ ( ) qmail-clean.c:34:11: note: use '==' to turn this assignment into an equality comparison while (d = readdir(dir)) ^ == qmail-clean.c:43:4: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink(line.s); ^ qmail-clean.c:52:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qmail-clean.c:52:1: note: change return type to 'int' void main() ^~~~ int qmail-clean.c:59:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) _exit(111); ^ 4 warnings generated. ./compile fmtqfn.c ./auto-int auto_split `head -1 conf-split` > auto_split.c ./compile auto_split.c ./load qmail-clean fmtqfn.o now.o getln.a sig.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_split.o ./compile qmail-send.c In file included from qmail-send.c:29: ./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)' qmail-send.c:151:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-send.c:151:13: note: place parentheses around the assignment to silence this warning if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { ^ ( ) qmail-send.c:151:13: note: use '==' to turn this assignment into an equality comparison if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { ^ == qmail-send.c:213:33: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (fstat(fdinfo,&st) == -1) { close(fdinfo); return 0; } ^ qmail-send.c:446:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (x = readsubdir_next(&rs,&id)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-send.c:446:11: note: place parentheses around the assignment to silence this warning while (x = readsubdir_next(&rs,&id)) ^ ( ) qmail-send.c:446:11: note: use '==' to turn this assignment into an equality comparison while (x = readsubdir_next(&rs,&id)) ^ == qmail-send.c:463:10: warning: implicit declaration of function 'utime' is invalid in C99 [-Wimplicit-function-declaration] if (utime(fn.s,ut) == -1) ^ qmail-send.c:544:8: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] if (unlink(fn.s) == -1) ^ qmail-send.c:589:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-send.c:589:18: note: place parentheses around the assignment to silence this warning if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) ^ ( ) qmail-send.c:589:18: note: use '==' to turn this assignment into an equality comparison if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) ^ == qmail-send.c:631:4: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] sleep(10); ^ qmail-send.c:1399:6: warning: implicit declaration of function 'fsync' is invalid in C99 [-Wimplicit-function-declaration] if (fsync(fdinfo) == -1) ^ qmail-send.c:1502:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) ^ qmail-send.c:1515:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qmail-send.c:1515:1: note: change return type to 'int' void main() ^~~~ int 11 warnings generated. ./compile qsutil.c 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); } ^ 2 warnings generated. ./compile newfield.c 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; ^ 1 warning generated. ./compile prioq.c ( ( ./compile trymkffo.c && ./load trymkffo ) >/dev/null 2>&1 && echo \#define HASMKFIFO 1 || exit 0 ) > hasmkffo.h rm -f trymkffo.o trymkffo ./compile fifo.c ( ( ./compile trynpbg1.c && ./load trynpbg1 fifo.o open.a && ./trynpbg1 ) >/dev/null 2>&1 && echo \#define HASNAMEDPIPEBUG1 1 || exit 0 ) > hasnpbg1.h rm -f trynpbg1.o trynpbg1 ./compile trigger.c trigger.c:14:4: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ 1 warning generated. ./compile readsubdir.c ./compile date822fmt.c ./load qmail-send qsutil.o control.o constmap.o newfield.o prioq.o trigger.o fmtqfn.o quote.o now.o readsubdir.o qmail.o date822fmt.o datetime.a case.a ndelay.a getln.a wait.a seek.a fd.a sig.a open.a lock.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_split.o env.a ./compile qmail-start.c qmail-start.c:22:21: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] void close23456() { close(2); close(3); close(4); close(5); close(6); } ^ qmail-start.c:30:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-start.c:30:1: note: change return type to 'int' void main(argc,argv) ^~~~ int qmail-start.c:34:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir("/") == -1) die(); ^ qmail-start.c:35:3: warning: implicit declaration of function 'umask' is invalid in C99 [-Wimplicit-function-declaration] umask(077); ^ qmail-start.c:50:9: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pi0) == -1) die(); ^ qmail-start.c:60:9: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(argv[1],argv + 1); ^ 6 warnings generated. ./load qmail-start prot.o fd.a auto_uids.o ./compile splogger.c splogger.c:48:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ splogger.c:48:1: note: change return type to 'int' void main(argc,argv) ^~~~ int 1 warning generated. ( ( ./compile trysyslog.c && ./load trysyslog -lgen ) >/dev/null 2>&1 && echo -lgen || exit 0 ) > syslog.lib rm -f trysyslog.o trysyslog ./load splogger substdio.a error.a str.a fs.a `cat syslog.lib` `cat socket.lib` ./compile qmail-queue.c 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: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:202:6: warning: implicit declaration of function 'fsync' is invalid in C99 [-Wimplicit-function-declaration] if (fsync(messfd) == -1) die_write(); ^ 8 warnings generated. ./compile triggerpull.c triggerpull.c:13:4: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] write(fd,"",1); /* if it fails, bummer */ ^ triggerpull.c:14:4: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ 2 warnings generated. ./load qmail-queue triggerpull.o fmtqfn.o now.o date822fmt.o datetime.a seek.a ndelay.a open.a sig.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_split.o auto_uids.o ./compile qmail-inject.c qmail-inject.c:116:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ qmail-inject.c:132:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ qmail-inject.c:485: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:647:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) die_chdir(); ^ qmail-inject.c:685:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qmail-inject.c:685:1: note: change return type to 'int' void main(argc,argv) ^~~~ int 5 warnings generated. ./compile headerbody.c ./compile hfield.c 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) ^ == 2 warnings generated. ./compile token822.c ./load qmail-inject headerbody.o hfield.o newfield.o quote.o now.o control.o date822fmt.o constmap.o qmail.o case.a fd.a wait.a open.a getln.a sig.a getopt.a datetime.a token822.o env.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o ./compile predate.c predate.c:23:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ predate.c:23:1: note: change return type to 'int' void main(argc,argv) ^~~~ int predate.c:38:3: warning: implicit declaration of function 'sig_pipeignore' is invalid in C99 [-Wimplicit-function-declaration] sig_pipeignore(); ^ predate.c:43:7: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pi) == -1) ^ predate.c:50:7: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(pi[1]); ^ predate.c:53:7: warning: implicit declaration of function 'sig_pipedefault' is invalid in C99 [-Wimplicit-function-declaration] sig_pipedefault(); ^ predate.c:54:7: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(argv[1],argv + 1); ^ 6 warnings generated. ./load predate datetime.a strerr.a sig.a fd.a wait.a substdio.a error.a str.a fs.a 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 chmod 755 datemail 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 chmod 755 mailsubj 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 chmod 755 qmail-upq ./compile qmail-showctl.c qmail-showctl.c:139:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qmail-showctl.c:139:1: note: change return type to 'int' void main() ^~~~ int qmail-showctl.c:190:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) { ^ qmail-showctl.c:265:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (d = readdir(dir)) { ~~^~~~~~~~~~~~~~ qmail-showctl.c:265:12: note: place parentheses around the assignment to silence this warning while (d = readdir(dir)) { ^ ( ) qmail-showctl.c:265:12: note: use '==' to turn this assignment into an equality comparison while (d = readdir(dir)) { ^ == 3 warnings generated. ./load qmail-showctl auto_uids.o control.o open.a getln.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_break.o auto_patrn.o auto_spawn.o auto_split.o ./compile qmail-newu.c qmail-newu.c:71:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qmail-newu.c:71:1: note: change return type to 'int' void main() ^~~~ int qmail-newu.c:76:3: warning: implicit declaration of function 'umask' is invalid in C99 [-Wimplicit-function-declaration] umask(033); ^ qmail-newu.c:77:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) die_chdir(); ^ qmail-newu.c:87:7: warning: implicit declaration of function 'cdbmss_start' is invalid in C99 [-Wimplicit-function-declaration] if (cdbmss_start(&cdbmss,fdtemp) == -1) die_writet(); ^ qmail-newu.c:96:9: warning: implicit declaration of function 'byte_chr' is invalid in C99 [-Wimplicit-function-declaration] if (byte_chr(line.s,line.len,'\0') < line.len) die_format(); ^ qmail-newu.c:126:9: warning: implicit declaration of function 'cdbmss_add' is invalid in C99 [-Wimplicit-function-declaration] if (cdbmss_add(&cdbmss,key.s,key.len,data.s,data.len) == -1) die_writet(); ^ qmail-newu.c:131:7: warning: implicit declaration of function 'cdbmss_finish' is invalid in C99 [-Wimplicit-function-declaration] if (cdbmss_finish(&cdbmss) == -1) die_writet(); ^ qmail-newu.c:132:7: warning: implicit declaration of function 'fsync' is invalid in C99 [-Wimplicit-function-declaration] if (fsync(fdtemp) == -1) die_writet(); ^ qmail-newu.c:133:7: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (close(fdtemp) == -1) die_writet(); /* NFS stupidity */ ^ qmail-newu.c:134:7: warning: implicit declaration of function 'rename' is invalid in C99 [-Wimplicit-function-declaration] if (rename("users/cdb.tmp","users/cdb") == -1) die_rename(); ^ 10 warnings generated. ./compile cdbmss.c ./compile cdbmake_pack.c ./compile cdbmake_hash.c ./compile cdbmake_add.c ./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o cdbmake_add.o ./load qmail-newu cdbmss.o getln.a open.a seek.a cdbmake.a case.a stralloc.a alloc.a substdio.a error.a str.a auto_qmail.o ./compile qmail-pw2u.c qmail-pw2u.c:23:3: warning: implicitly declaring library function '_exit' with type 'void (int) __attribute__((noreturn))' _exit(111); ^ qmail-pw2u.c:23:3: note: include the header or explicitly provide a declaration for '_exit' 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: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); ^ 5 warnings generated. ./load qmail-pw2u constmap.o control.o open.a getln.a case.a getopt.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_usera.o auto_break.o auto_qmail.o ./compile qmail-qread.c qmail-qread.c:108:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qmail-qread.c:108:1: note: change return type to 'int' void main() ^~~~ int qmail-qread.c:117:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) die_chdir(); ^ qmail-qread.c:121:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (x = readsubdir_next(&rs,&id)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-qread.c:121:11: note: place parentheses around the assignment to silence this warning while (x = readsubdir_next(&rs,&id)) ^ ( ) qmail-qread.c:121:11: note: use '==' to turn this assignment into an equality comparison while (x = readsubdir_next(&rs,&id)) ^ == qmail-qread.c:138:33: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (fstat(fd,&st) == -1) { close(fd); err(id); continue; } ^ 4 warnings generated. ./load qmail-qread fmtqfn.o readsubdir.o date822fmt.o datetime.a open.a getln.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_split.o 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 chmod 755 qmail-qstat ./compile qmail-tcpto.c 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); ^ 7 warnings generated. ./load qmail-tcpto ip.o now.o open.a lock.a substdio.a error.a str.a fs.a auto_qmail.o ./compile qmail-tcpok.c 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) ^ 2 warnings generated. ./load qmail-tcpok open.a lock.a strerr.a substdio.a error.a str.a auto_qmail.o ./compile qmail-pop3d.c 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(); ^ 5 warnings generated. ./compile commands.c ./compile maildir.c maildir.c:21:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(maildir) == -1) ^ maildir.c:39:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (d = readdir(dir)) ~~^~~~~~~~~~~~~~ maildir.c:39:11: note: place parentheses around the assignment to silence this warning while (d = readdir(dir)) ^ ( ) maildir.c:39:11: note: use '==' to turn this assignment into an equality comparison while (d = readdir(dir)) ^ == maildir.c:47:8: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink(tmpname->s); ^ maildir.c:68:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (d = readdir(dir)) ~~^~~~~~~~~~~~~~ maildir.c:68:11: note: place parentheses around the assignment to silence this warning while (d = readdir(dir)) ^ ( ) maildir.c:68:11: note: use '==' to turn this assignment into an equality comparison while (d = readdir(dir)) ^ == 4 warnings generated. ./load qmail-pop3d commands.o case.a timeoutread.o timeoutwrite.o maildir.o prioq.o now.o env.a strerr.a sig.a open.a getln.a stralloc.a alloc.a substdio.a error.a str.a fs.a `cat socket.lib` ./compile qmail-popup.c 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 6 warnings generated. ./load qmail-popup commands.o timeoutread.o timeoutwrite.o now.o case.a fd.a sig.a wait.a stralloc.a alloc.a substdio.a error.a str.a fs.a `cat socket.lib` ./compile qmail-qmqpc.c 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(); ^ 3 warnings generated. ./load qmail-qmqpc slurpclose.o timeoutread.o timeoutwrite.o timeoutconn.o ip.o control.o auto_qmail.o sig.a ndelay.a open.a getln.a substdio.a stralloc.a alloc.a error.a str.a fs.a `cat socket.lib` ./compile qmail-qmqpd.c 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. ./compile received.c 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++) { ^ == 1 warning generated. ./load qmail-qmqpd received.o now.o date822fmt.o qmail.o auto_qmail.o env.a substdio.a sig.a error.a wait.a fd.a str.a datetime.a fs.a ./compile qmail-qmtpd.c qmail-qmtpd.c:15:19: warning: implicitly declaring library function '_exit' with type 'void (int) __attribute__((noreturn))' 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; } ^ 5 warnings generated. ./compile rcpthosts.c rcpthosts.c:42:3: warning: implicit declaration of function 'case_lowerb' is invalid in C99 [-Wimplicit-function-declaration] case_lowerb(buf,len); ^ 1 warning generated. ./load qmail-qmtpd rcpthosts.o control.o constmap.o received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a open.a getln.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o ./compile qmail-smtpd.c qmail-smtpd.c:167: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:167: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:167: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:411:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qmail-smtpd.c:411:1: note: change return type to 'int' void main() ^~~~ int qmail-smtpd.c:414:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) die_control(); ^ 3 warnings generated. ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o `cat socket.lib` ./compile sendmail.c sendmail.c:35:3: warning: implicit declaration of function 'execv' is invalid in C99 [-Wimplicit-function-declaration] execv(*smtpdarg,smtpdarg); ^ sendmail.c:83:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ sendmail.c:83:1: note: change return type to 'int' void main(argc,argv) ^~~~ int sendmail.c:92:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) { ^ 3 warnings generated. ./load sendmail env.a getopt.a alloc.a substdio.a error.a str.a auto_qmail.o ./compile tcp-env.c tcp-env.c:33:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ tcp-env.c:33:1: note: change return type to 'int' void main(argc,argv) ^~~~ int tcp-env.c:67: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 (getsockname(0,(struct sockaddr *) &salocal,&dummy) == -1) die(); ^~~~~~ /usr/include/sys/socket.h:646:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ tcp-env.c:92: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 (getpeername(0,(struct sockaddr *) &saremote,&dummy) == -1) die(); ^~~~~~ /usr/include/sys/socket.h:645:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ tcp-env.c:127:2: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(*argv,argv); ^ 4 warnings generated. ./compile remoteinfo.c remoteinfo.c:51:61: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (bind(s,(struct sockaddr *) &sin,sizeof(sin)) == -1) { close(s); return 0; } ^ 1 warning generated. ./load tcp-env dns.o remoteinfo.o timeoutread.o timeoutwrite.o timeoutconn.o ip.o ipalloc.o case.a ndelay.a sig.a env.a getopt.a stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile qmail-newmrh.c qmail-newmrh.c:32:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qmail-newmrh.c:32:1: note: change return type to 'int' void main() ^~~~ int qmail-newmrh.c:34:3: warning: implicit declaration of function 'umask' is invalid in C99 [-Wimplicit-function-declaration] umask(033); ^ qmail-newmrh.c:35:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) ^ qmail-newmrh.c:46:7: warning: implicit declaration of function 'cdbmss_start' is invalid in C99 [-Wimplicit-function-declaration] if (cdbmss_start(&cdbmss,fdtemp) == -1) die_write(); ^ qmail-newmrh.c:50:5: warning: implicit declaration of function 'case_lowerb' is invalid in C99 [-Wimplicit-function-declaration] case_lowerb(line.s,line.len); ^ qmail-newmrh.c:56:6: warning: implicit declaration of function 'cdbmss_add' is invalid in C99 [-Wimplicit-function-declaration] if (cdbmss_add(&cdbmss,line.s,line.len,"",0) == -1) ^ qmail-newmrh.c:63:7: warning: implicit declaration of function 'cdbmss_finish' is invalid in C99 [-Wimplicit-function-declaration] if (cdbmss_finish(&cdbmss) == -1) die_write(); ^ qmail-newmrh.c:64:7: warning: implicit declaration of function 'fsync' is invalid in C99 [-Wimplicit-function-declaration] if (fsync(fdtemp) == -1) die_write(); ^ qmail-newmrh.c:65:7: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (close(fdtemp) == -1) die_write(); /* NFS stupidity */ ^ qmail-newmrh.c:66:7: warning: implicit declaration of function 'rename' is invalid in C99 [-Wimplicit-function-declaration] if (rename("control/morercpthosts.tmp","control/morercpthosts.cdb") == -1) ^ 10 warnings generated. ./load qmail-newmrh cdbmss.o getln.a open.a cdbmake.a seek.a case.a stralloc.a alloc.a strerr.a substdio.a error.a str.a auto_qmail.o 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 chmod 755 config 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 chmod 755 config-fast ./compile dnscname.c 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 1 warning generated. ./compile dnsdoe.c ./load dnscname dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile dnsptr.c 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 1 warning generated. ./load dnsptr dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile dnsip.c 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 1 warning generated. ./load dnsip dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile dnsmxip.c 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 dnsmxip.c:29:14: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] r = now() + getpid(); ^ 2 warnings generated. ./load dnsmxip dns.o dnsdoe.o ip.o ipalloc.o now.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile dnsfq.c 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 1 warning generated. ./load dnsfq dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile hostname.c 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)); ^ 2 warnings generated. ./load hostname substdio.a error.a str.a `cat dns.lib` `cat socket.lib` ./compile ipmeprint.c 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 1 warning generated. ./load ipmeprint ipme.o ip.o ipalloc.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat socket.lib` ./compile qreceipt.c 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 2 warnings generated. ./load qreceipt headerbody.o hfield.o quote.o token822.o qmail.o getln.a fd.a wait.a sig.a env.a stralloc.a alloc.a substdio.a error.a str.a auto_qmail.o ./compile qsmhook.c qsmhook.c:38:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ qsmhook.c:38:1: note: change return type to 'int' void main(argc,argv) ^~~~ int qsmhook.c:81:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (arg = argv;x = *arg;++arg) ~~^~~~~~ qsmhook.c:81:20: note: place parentheses around the assignment to silence this warning for (arg = argv;x = *arg;++arg) ^ ( ) qsmhook.c:81:20: note: use '==' to turn this assignment into an equality comparison for (arg = argv;x = *arg;++arg) ^ == qsmhook.c:109:6: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pi) == -1) die_temp(); ^ qsmhook.c:116:6: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(pi[1]); ^ qsmhook.c:119:6: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(*argv,argv); ^ 5 warnings generated. ./load qsmhook sig.a case.a fd.a wait.a getopt.a env.a stralloc.a alloc.a substdio.a error.a str.a ./compile qbiff.c qbiff.c:53:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ qbiff.c:53:1: note: change return type to 'int' void main() ^~~~ int qbiff.c:61:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir("/dev") == -1) _exit(0); ^ qbiff.c:105:36: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (fstat(fdtty,&st) == -1) { close(fdtty); continue; } ^ qbiff.c:107:23: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] if (st.st_uid != getuid()) { close(fdtty); continue; } ^ 4 warnings generated. ./load qbiff headerbody.o hfield.o getln.a env.a open.a stralloc.a alloc.a substdio.a error.a str.a ./compile forward.c 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 1 warning generated. ./load forward qmail.o strerr.a alloc.a fd.a wait.a sig.a env.a substdio.a error.a str.a fs.a auto_qmail.o ./compile preline.c preline.c:29:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ preline.c:29:1: note: change return type to 'int' void main(argc,argv) ^~~~ int preline.c:58:7: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pi) == -1) ^ preline.c:66:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(pi[1]); ^ preline.c:70:5: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(*argv,argv); ^ 4 warnings generated. ./load preline strerr.a fd.a wait.a sig.a env.a getopt.a substdio.a error.a str.a ./compile condredirect.c condredirect.c:31:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ condredirect.c:31:1: note: change return type to 'int' void main(argc,argv) ^~~~ int condredirect.c:48:5: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(argv[2],argv + 2); ^ 2 warnings generated. ./load condredirect qmail.o strerr.a fd.a sig.a wait.a seek.a env.a substdio.a error.a str.a fs.a auto_qmail.o ./compile bouncesaying.c bouncesaying.c:10:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ bouncesaying.c:10:1: note: change return type to 'int' void main(argc,argv) ^~~~ int bouncesaying.c:25:7: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(argv[2],argv + 2); ^ 2 warnings generated. ./load bouncesaying strerr.a error.a substdio.a str.a wait.a ./compile except.c except.c:9:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ except.c:9:1: note: change return type to 'int' void main(argc,argv) ^~~~ int except.c:23:5: warning: implicit declaration of function 'execvp' is invalid in C99 [-Wimplicit-function-declaration] execvp(argv[1],argv + 1); ^ 2 warnings generated. ./load except strerr.a error.a substdio.a str.a wait.a ./compile maildirmake.c 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) ^ 4 warnings generated. ./load maildirmake strerr.a substdio.a error.a str.a ./compile maildir2mbox.c 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); ^ 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: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) ^ 6 warnings generated. ./load maildir2mbox maildir.o prioq.o now.o myctime.o gfrom.o lock.a getln.a env.a open.a strerr.a stralloc.a alloc.a substdio.a error.a str.a fs.a datetime.a ./compile maildirwatch.c maildirwatch.c:61:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ 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); ^ 3 warnings generated. ./load maildirwatch hfield.o headerbody.o maildir.o prioq.o now.o getln.a env.a open.a strerr.a stralloc.a alloc.a substdio.a error.a str.a 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 chmod 755 qail 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 chmod 755 elq 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 chmod 755 pinq ./compile idedit.c idedit.c:47:5: warning: implicit declaration of function 'execv' is invalid in C99 [-Wimplicit-function-declaration] execv(*args,args); ^ idedit.c:51:7: warning: implicit declaration of function 'wait_pid' is invalid in C99 [-Wimplicit-function-declaration] if (wait_pid(&wstat,pid) != pid) ^ idedit.c:123:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ idedit.c:123:1: note: change return type to 'int' void main(argc,argv) ^~~~ int 3 warnings generated. ./load idedit strerr.a substdio.a error.a str.a fs.a wait.a open.a seek.a ./compile install-big.c 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); ^ 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: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); ^ 5 warnings generated. ./compile install.c install.c:20:7: warning: implicit declaration of function 'mkdir' is invalid in C99 [-Wimplicit-function-declaration] if (mkdir(home,0700) == -1) ^ install.c:23:7: warning: implicit declaration of function 'chown' is invalid in C99 [-Wimplicit-function-declaration] if (chown(home,uid,gid) == -1) ^ install.c:25:7: warning: implicit declaration of function 'chmod' is invalid in C99 [-Wimplicit-function-declaration] if (chmod(home,mode) == -1) ^ install.c:36:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(home) == -1) ^ install.c:56:7: warning: implicit declaration of function 'fifo_make' is invalid in C99 [-Wimplicit-function-declaration] if (fifo_make(fifo,0700) == -1) ^ install.c:81:7: warning: implicit declaration of function 'fchdir' is invalid in C99 [-Wimplicit-function-declaration] if (fchdir(fdsourcedir) == -1) ^ install.c:106:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fdin); ^ install.c:109:7: warning: implicit declaration of function 'fsync' is invalid in C99 [-Wimplicit-function-declaration] if (fsync(fdout) == -1) ^ install.c:155:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ install.c:155:1: note: change return type to 'int' void main() ^~~~ int install.c:161:3: warning: implicit declaration of function 'umask' is invalid in C99 [-Wimplicit-function-declaration] umask(077); ^ 10 warnings generated. ./auto-str auto_qmail `head -1 conf-destdir` > auto_destdir.c ./compile auto_destdir.c ./load install-big fifo.o install.o auto_destdir.o auto_split.o auto_uids.o strerr.a substdio.a open.a error.a str.a fs.a ./compile hier.c 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: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); ^ 5 warnings generated. ./load install fifo.o hier.o auto_destdir.o auto_split.o auto_uids.o strerr.a substdio.a open.a error.a str.a fs.a ./compile instcheck.c instcheck.c:59:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(home) == -1) ^ instcheck.c:104:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main() ^ instcheck.c:104:1: note: change return type to 'int' void main() ^~~~ int 2 warnings generated. ./load instcheck fifo.o hier.o auto_destdir.o auto_split.o auto_uids.o strerr.a substdio.a error.a str.a fs.a cat home.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > home chmod 755 home cat home+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > home+df chmod 755 home+df cat proc.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > proc chmod 755 proc cat proc+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > proc+df chmod 755 proc+df cat binm1.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm1 chmod 755 binm1 cat binm1+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm1+df chmod 755 binm1+df cat binm2.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm2 chmod 755 binm2 cat binm2+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm2+df chmod 755 binm2+df cat binm3.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm3 chmod 755 binm3 cat binm3+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm3+df chmod 755 binm3+df nroff -man qmail-local.8 > qmail-local.0 nroff -man qmail-lspawn.8 > qmail-lspawn.0 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 nroff -man qmail-getpw.8 > qmail-getpw.0 nroff -man qmail-remote.8 > qmail-remote.0 nroff: (qmail-remote.8, 33): unknown request - .EX nroff: (qmail-remote.8, 35): unknown request - .EE nroff: (qmail-remote.8, 39): unknown request - .EX nroff: (qmail-remote.8, 41): unknown request - .EE nroff: (qmail-remote.8, 150): unknown request - .EX nroff: (qmail-remote.8, 152): unknown request - .EE nroff: (qmail-remote.8, 162): unknown request - .EX nroff: (qmail-remote.8, 165): unknown request - .EE *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/mail/qmail/work/netqmail-1.06 *** Error code 1 Stop. bmake[1]: stopped in /usr/pkgsrc/mail/qmail *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/mail/qmail