=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for qmail-1.03nb17 ( 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 qmail-local.c:648:21: warning: '&&' within '||' [-Wlogical-op-parentheses] while ((k > i) && (cmds.s[k - 1] == ' ') || (cmds.s[k - 1] == '\t')) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ~~ qmail-local.c:648:21: note: place parentheses around the '&&' expression to silence this warning while ((k > i) && (cmds.s[k - 1] == ' ') || (cmds.s[k - 1] == '\t')) ^ ( ) 13 warnings generated. ./compile qmail.c qmail.c:18:7: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pim) == -1) return -1; ^ qmail.c:19: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:31:11: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) _exit(61); ^ qmail.c:32: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:46:8: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(d[i].fdout); d[i].fdout = -1; ^ spawn.c:57:6: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] w = write(fd,buf,n); ^ spawn.c:118:6: warning: implicit declaration of function 'pipe' is invalid in C99 [-Wimplicit-function-declaration] if (pipe(pi) == -1) ^ spawn.c:142:6: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] r = read(0,cmdbuf,sizeof(cmdbuf)); ^ spawn.c:179:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc,argv) ^ spawn.c:179:1: note: change return type to 'int' void main(argc,argv) ^~~~ int spawn.c:189:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(auto_qmail) == -1) _exit(111); ^ spawn.c:247: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:18: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:624: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:36:17: error: variable has incomplete type 'struct ifconf' struct ifconf ifc; ^ ipme.c:36:10: note: forward declaration of 'struct ifconf' struct ifconf ifc; ^ ipme.c:53:38: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (!stralloc_ready(&buf,len)) { close(s); return 0; } ^ ipme.c:57:17: error: invalid application of 'sizeof' to an incomplete type 'struct ifconf' if (ioctl(s,SIOCGIFCONF,&ifc) >= 0) /* > is for System V */ ^~~~~~~~~~~ /usr/include/sys/sockio.h:63:21: note: expanded from macro 'SIOCGIFCONF' #define SIOCGIFCONF _IOWR('i', 38, struct ifconf) /* get ifnet list */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:89:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:83:19: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << IOCPARM_SHIFT) | \ ^ ipme.c:36:10: note: forward declaration of 'struct ifconf' struct ifconf ifc; ^ ipme.c:58:31: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' if (ifc.ifc_len + sizeof(*ifr) + 64 < len) { /* what a stupid interface */ ^~~~~~ ipme.c:38:10: note: forward declaration of 'struct ifreq' struct ifreq *ifr; ^ ipme.c:69:21: error: incomplete definition of type 'struct ifreq' len = sizeof(ifr->ifr_name) + ifr->ifr_addr.sa_len; ~~~^ ipme.c:38:10: note: forward declaration of 'struct ifreq' struct ifreq *ifr; ^ ipme.c:69:38: error: incomplete definition of type 'struct ifreq' len = sizeof(ifr->ifr_name) + ifr->ifr_addr.sa_len; ~~~^ ipme.c:38:10: note: forward declaration of 'struct ifreq' struct ifreq *ifr; ^ ipme.c:70:21: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' if (len < sizeof(*ifr)) ^~~~~~ ipme.c:38:10: note: forward declaration of 'struct ifreq' struct ifreq *ifr; ^ ipme.c:71:19: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' len = sizeof(*ifr); ^~~~~~ ipme.c:38:10: note: forward declaration of 'struct ifreq' struct ifreq *ifr; ^ ipme.c:72:12: error: incomplete definition of type 'struct ifreq' if (ifr->ifr_addr.sa_family == AF_INET) { ~~~^ ipme.c:38:10: note: forward declaration of 'struct ifreq' struct ifreq *ifr; ^ ipme.c:73:40: error: incomplete definition of type 'struct ifreq' sin = (struct sockaddr_in *) &ifr->ifr_addr; ~~~^ ipme.c:38:10: note: forward declaration of 'struct ifreq' struct ifreq *ifr; ^ ipme.c:75:19: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' if (ioctl(s,SIOCGIFFLAGS,x) == 0) ^~~~~~~~~~~~ /usr/include/sys/sockio.h:58:22: note: expanded from macro 'SIOCGIFFLAGS' #define SIOCGIFFLAGS _IOWR('i', 17, struct ifreq) /* get ifnet flags */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:89:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:83:19: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << IOCPARM_SHIFT) | \ ^ ipme.c:38:10: note: forward declaration of 'struct ifreq' struct ifreq *ifr; ^ ipme.c:76:16: error: incomplete definition of type 'struct ifreq' if (ifr->ifr_flags & IFF_UP) ~~~^ ipme.c:38:10: note: forward declaration of 'struct ifreq' struct ifreq *ifr; ^ 1 warning and 11 errors generated. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/mail/qmail/work/qmail-1.03 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/mail/qmail *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/mail/qmail