=> Bootstrap dependency digest>=20010302: found digest-20190127 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for 9base-20100604nb2 9base build options: CFLAGS = -O2 -c -I. -DPREFIX="/opt/pkg/9base" LDFLAGS = -L/opt/pkg/lib -static CC = cc CC sec/sha1block.c CC sec/sha1.c CC sec/sha1pickle.c CC sec/md5block.c CC sec/md5.c CC sec/md5pickle.c CC fmt/dofmt.c CC fmt/fltfmt.c CC fmt/fmt.c CC fmt/fmtfd.c CC fmt/fmtfdflush.c CC fmt/fmtlocale.c CC fmtlock2.c CC fmt/fmtnull.c CC fmt/fmtprint.c CC fmt/fmtquote.c CC fmt/fmtrune.c CC fmt/fmtstr.c CC fmt/fmtvprint.c CC fmt/fprint.c CC fmt/nan64.c CC fmt/print.c CC fmt/runefmtstr.c CC fmt/runeseprint.c CC fmt/runesmprint.c CC fmt/runesnprint.c CC fmt/runesprint.c CC fmt/runevseprint.c CC fmt/runevsmprint.c CC fmt/runevsnprint.c CC fmt/seprint.c CC fmt/smprint.c CC fmt/snprint.c CC fmt/sprint.c CC fmt/strtod.c CC fmt/vfprint.c CC fmt/vseprint.c CC fmt/vsmprint.c CC fmt/vsnprint.c CC fmt/charstod.c CC fmt/pow10.c CC utf/rune.c CC utf/runestrcat.c CC utf/runestrchr.c utf/runestrchr.c:31:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(c1 = *s++) ~~~^~~~~~ utf/runestrchr.c:31:11: note: place parentheses around the assignment to silence this warning while(c1 = *s++) ^ ( ) utf/runestrchr.c:31:11: note: use '==' to turn this assignment into an equality comparison while(c1 = *s++) ^ == 1 warning generated. CC utf/runestrcmp.c CC utf/runestrcpy.c utf/runestrcpy.c:25:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*s1++ = *s2++) ~~~~~~^~~~~~~ utf/runestrcpy.c:25:14: note: place parentheses around the assignment to silence this warning while(*s1++ = *s2++) ^ ( ) utf/runestrcpy.c:25:14: note: use '==' to turn this assignment into an equality comparison while(*s1++ = *s2++) ^ == 1 warning generated. CC utf/runestrdup.c CC utf/runestrlen.c CC utf/runestrecpy.c utf/runestrecpy.c:25:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*s1++ = *s2++){ ~~~~~~^~~~~~~ utf/runestrecpy.c:25:14: note: place parentheses around the assignment to silence this warning while(*s1++ = *s2++){ ^ ( ) utf/runestrecpy.c:25:14: note: use '==' to turn this assignment into an equality comparison while(*s1++ = *s2++){ ^ == 1 warning generated. CC utf/runestrncat.c utf/runestrncat.c:26:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*s1++ = *s2++) ~~~~~~^~~~~~~ utf/runestrncat.c:26:14: note: place parentheses around the assignment to silence this warning while(*s1++ = *s2++) ^ ( ) utf/runestrncat.c:26:14: note: use '==' to turn this assignment into an equality comparison while(*s1++ = *s2++) ^ == 1 warning generated. CC utf/runestrncmp.c CC utf/runestrncpy.c CC utf/runestrrchr.c utf/runestrrchr.c:27:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(s = runestrchr(s, c)) ~~^~~~~~~~~~~~~~~~~~ utf/runestrrchr.c:27:10: note: place parentheses around the assignment to silence this warning while(s = runestrchr(s, c)) ^ ( ) utf/runestrrchr.c:27:10: note: use '==' to turn this assignment into an equality comparison while(s = runestrchr(s, c)) ^ == 1 warning generated. CC utf/runestrstr.c CC utf/runetype.c CC utf/utfecpy.c CC utf/utflen.c CC utf/utfnlen.c CC utf/utfrrune.c CC utf/utfrune.c CC utf/utfutf.c utf/utfutf.c:37:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(p=s1; p=utfrune(p, f); p+=n1) ~^~~~~~~~~~~~~~ utf/utfutf.c:37:13: note: place parentheses around the assignment to silence this warning for(p=s1; p=utfrune(p, f); p+=n1) ^ ( ) utf/utfutf.c:37:13: note: use '==' to turn this assignment into an equality comparison for(p=s1; p=utfrune(p, f); p+=n1) ^ == 1 warning generated. CC bio/bbuffered.c CC bio/bfildes.c CC bio/bflush.c CC bio/bgetc.c CC bio/bgetrune.c CC bio/bgetd.c CC bio/binit.c CC bio/boffset.c CC bio/bprint.c CC bio/bputc.c CC bio/bputrune.c CC bio/brdline.c CC bio/brdstr.c CC bio/bread.c CC bio/bseek.c CC bio/bvprint.c CC bio/bwrite.c CC regex/regcomp.c CC regex/regerror.c CC regex/regexec.c CC regex/regsub.c CC regex/regaux.c CC regex/rregexec.c CC regex/rregsub.c CC _exits.c CC _p9dialparse.c CC _p9dir.c CC announce.c CC argv0.c CC atexit.c CC atoi.c CC atol.c CC atoll.c CC atnotify.c CC await.c await.c:95:10: warning: implicit declaration of function 'wait3' is invalid in C99 [-Wimplicit-function-declaration] pid = wait3(&status, opt, &ru); ^ await.c:97:10: warning: implicit declaration of function 'wait4' is invalid in C99 [-Wimplicit-function-declaration] pid = wait4(pid4, &status, opt, &ru); ^ 2 warnings generated. CC cistrcmp.c CC cistrncmp.c CC cistrstr.c cistrstr.c:16:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(; c = *s; s++){ ~~^~~~ cistrstr.c:16:10: note: place parentheses around the assignment to silence this warning for(; c = *s; s++){ ^ ( ) cistrstr.c:16:10: note: use '==' to turn this assignment into an equality comparison for(; c = *s; s++){ ^ == 1 warning generated. CC cleanname.c CC create.c CC ctime.c CC dial.c CC dirfstat.c CC dirfwstat.c CC dirmodefmt.c CC dirread.c dirread.c:26:9: warning: implicit declaration of function 'getdirentries' is invalid in C99 [-Wimplicit-function-declaration] return getdirentries(fd, (void*)buf, n, &off); ^ 1 warning generated. CC dirstat.c CC dirwstat.c CC dup.c CC encodefmt.c CC errstr.c CC exec.c CC execl.c CC exitcode.c CC fcallfmt.c CC get9root.c CC getcallerpc-386.c CC getenv.c CC getfields.c CC getnetconn.c CC getns.c CC getuser.c CC getwd.c CC jmp.c CC lrand.c CC lnrand.c CC main.c CC malloc.c CC malloctag.c CC mallocz.c CC nan.c CC needsrcquote.c CC needstack.c CC netmkaddr.c CC notify.c CC nrand.c CC nulldir.c CC open.c CC opentemp.c CC pin.c CC pipe.c CC post9p.c CC postnote.c CC qlock.c CC quote.c CC rand.c CC read9pmsg.c CC readcons.c CC readn.c CC rfork.c rfork.c:53:8: warning: implicit declaration of function 'wait4' is invalid in C99 [-Wimplicit-function-declaration] if(wait4(pid, &status, 0, 0) < 0){ ^ 1 warning generated. CC searchpath.c CC seek.c CC sendfd.c CC sleep.c CC strdup.c CC strecpy.c CC sysfatal.c CC syslog.c CC sysname.c CC time.c CC tm2sec.c CC tokenize.c CC truerand.c CC u16.c CC u32.c CC u64.c CC unsharp.c CC wait.c CC waitpid.c CC write.c CC zoneinfo.c zoneinfo.c:121:2: warning: switch condition has boolean value [-Wswitch-bool] switch (zonefile==nil) { ^ ~~~~~~~~~~~~~ 1 warning generated. AR lib9 built lib9 CC yacc.c yacc.c:510:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(c = *q) { ~~^~~~ yacc.c:510:10: note: place parentheses around the assignment to silence this warning while(c = *q) { ^ ( ) yacc.c:510:10: note: use '==' to turn this assignment into an equality comparison while(c = *q) { ^ == yacc.c:2127:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(c = Bgetrune(finput)) { ~~^~~~~~~~~~~~~~~~~~ yacc.c:2127:11: note: place parentheses around the assignment to silence this warning while(c = Bgetrune(finput)) { ^ ( ) yacc.c:2127:11: note: use '==' to turn this assignment into an equality comparison while(c = Bgetrune(finput)) { ^ == 2 warnings generated. LD yacc built yacc CC ascii.c LD ascii built ascii YACC awkgram.y conflicts: 42 shift/reduce, 83 reduce/reduce CC re.c re.c:94:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *s++) { ~~^~~~~~ re.c:94:11: note: place parentheses around the assignment to silence this warning while (c = *s++) { ^ ( ) re.c:94:11: note: use '==' to turn this assignment into an equality comparison while (c = *s++) { ^ == 1 warning generated. CC lex.c CC main.c CC parse.c CC proctab.c CC tran.c CC lib.c CC run.c run.c:733:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] tempfree(z); ^ run.c:36:46: note: expanded from macro 'tempfree' #define tempfree(x) if (istemp(x)) tfree(x); else ^ run.c:1314:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] tempfree(x); ^ run.c:36:46: note: expanded from macro 'tempfree' #define tempfree(x) if (istemp(x)) tfree(x); else ^ 2 warnings generated. CC y.tab.c /opt/work/sysutils/9base/work/9base-6/awk/awkgram.y:1374:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] yyp = &yys[-1]; ^ ~~ /opt/work/sysutils/9base/work/9base-6/awk/awkgram.y:1352:2: note: array 'yys' declared here struct ^ 1 warning generated. LD awk built awk CC basename.c LD basename built basename YACC bc.y CC y.tab.c /opt/work/sysutils/9base/work/9base-6/bc/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] yyp = &yys[-1]; ^ ~~ /opt/work/sysutils/9base/work/9base-6/bc/bc.y:1305:2: note: array 'yys' declared here struct ^ 1 warning generated. LD bc built bc CC cal.c cal.c:168:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(n=0; s=dict[n].word; n++) ~^~~~~~~~~~~~~ cal.c:168:12: note: place parentheses around the assignment to silence this warning for(n=0; s=dict[n].word; n++) ^ ( ) cal.c:168:12: note: use '==' to turn this assignment into an equality comparison for(n=0; s=dict[n].word; n++) ^ == cal.c:173:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(c = *s++) { ~~^~~~~~ cal.c:173:10: note: place parentheses around the assignment to silence this warning while(c = *s++) { ^ ( ) cal.c:173:10: note: use '==' to turn this assignment into an equality comparison while(c = *s++) { ^ == 2 warnings generated. LD cal built cal CC cat.c LD cat built cat CC cleanname.c LD cleanname built cleanname CC cmp.c LD cmp built cmp CC date.c LD date built date CC dc.c LD dc built dc CC du.c LD du built du CC dd.c dd.c:206:9: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] ibuf = sbrk(ibs); ^ dd.c:206:7: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] ibuf = sbrk(ibs); ^ ~~~~~~~~~ dd.c:210:8: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] obuf = sbrk(obs); ^ ~~~~~~~~~ 3 warnings generated. LD dd built dd CC diffdir.c CC diffio.c diffio.c:149:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for (j = 0; h = readhash(bp, buf); p[j].value = h) ~~^~~~~~~~~~~~~~~~~~~ diffio.c:149:16: note: place parentheses around the assignment to silence this warning for (j = 0; h = readhash(bp, buf); p[j].value = h) ^ ( ) diffio.c:149:16: note: use '==' to turn this assignment into an equality comparison for (j = 0; h = readhash(bp, buf); p[j].value = h) ^ == 1 warning generated. CC diffreg.c CC main.c LD diff ld: warning: directory not found for option '-L/opt/work/sysutils/9base/work/.buildlink/9base/lib' built diff CC echo.c LD echo built echo CC ed.c ed.c:152:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p2++ = *p1++) ~~~~~~^~~~~~~ ed.c:152:15: note: place parentheses around the assignment to silence this warning while(*p2++ = *p1++) ^ ( ) ed.c:152:15: note: use '==' to turn this assignment into an equality comparison while(*p2++ = *p1++) ^ == ed.c:159:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p2++ = *p1++) ~~~~~~^~~~~~~ ed.c:159:15: note: place parentheses around the assignment to silence this warning while(*p2++ = *p1++) ^ ( ) ed.c:159:15: note: use '==' to turn this assignment into an equality comparison while(*p2++ = *p1++) ^ == ed.c:591:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p2++ = *p1++) ~~~~~~^~~~~~~ ed.c:591:15: note: place parentheses around the assignment to silence this warning while(*p2++ = *p1++) ^ ( ) ed.c:591:15: note: use '==' to turn this assignment into an equality comparison while(*p2++ = *p1++) ^ == ed.c:612:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p1++ = *p2++) ~~~~~~^~~~~~~ ed.c:612:15: note: place parentheses around the assignment to silence this warning while(*p1++ = *p2++) ^ ( ) ed.c:612:15: note: use '==' to turn this assignment into an equality comparison while(*p1++ = *p2++) ^ == ed.c:714:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(lastc = peekc) { ~~~~~~^~~~~~~ ed.c:714:11: note: place parentheses around the assignment to silence this warning if(lastc = peekc) { ^ ( ) ed.c:714:11: note: use '==' to turn this assignment into an equality comparison if(lastc = peekc) { ^ == ed.c:1018:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*lp++ = *bp++) { ~~~~~~^~~~~~~ ed.c:1018:14: note: place parentheses around the assignment to silence this warning while(*lp++ = *bp++) { ^ ( ) ed.c:1018:14: note: use '==' to turn this assignment into an equality comparison while(*lp++ = *bp++) { ^ == ed.c:1040:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*bp = *lp++) { ~~~~^~~~~~~ ed.c:1040:12: note: place parentheses around the assignment to silence this warning while(*bp = *lp++) { ^ ( ) ed.c:1040:12: note: use '==' to turn this assignment into an equality comparison while(*bp = *lp++) { ^ == ed.c:1193:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*gp = *lp++) ~~~~^~~~~~~ ed.c:1193:13: note: place parentheses around the assignment to silence this warning while(*gp = *lp++) ^ ( ) ed.c:1193:13: note: use '==' to turn this assignment into an equality comparison while(*gp = *lp++) ^ == ed.c:1199:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*lp++ = *gp++) ~~~~~~^~~~~~~ ed.c:1199:14: note: place parentheses around the assignment to silence this warning while(*lp++ = *gp++) ^ ( ) ed.c:1199:14: note: use '==' to turn this assignment into an equality comparison while(*lp++ = *gp++) ^ == ed.c:1305:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p1++ = *p2++) ~~~~~~^~~~~~~ ed.c:1305:14: note: place parentheses around the assignment to silence this warning while(*p1++ = *p2++) ^ ( ) ed.c:1305:14: note: use '==' to turn this assignment into an equality comparison while(*p1++ = *p2++) ^ == ed.c:1322:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(c = *rp++) { ~~^~~~~~~ ed.c:1322:10: note: place parentheses around the assignment to silence this warning while(c = *rp++) { ^ ( ) ed.c:1322:10: note: use '==' to turn this assignment into an equality comparison while(c = *rp++) { ^ == ed.c:1341:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*sp++ = *lp++) ~~~~~~^~~~~~~ ed.c:1341:14: note: place parentheses around the assignment to silence this warning while(*sp++ = *lp++) ^ ( ) ed.c:1341:14: note: use '==' to turn this assignment into an equality comparison while(*sp++ = *lp++) ^ == ed.c:1346:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*lp++ = *sp++) ~~~~~~^~~~~~~ ed.c:1346:14: note: place parentheses around the assignment to silence this warning while(*lp++ = *sp++) ^ ( ) ed.c:1346:14: note: use '==' to turn this assignment into an equality comparison while(*lp++ = *sp++) ^ == 13 warnings generated. LD ed built ed CC factor.c LD factor built factor CC fortune.c LD fortune built fortune CC fmt.c LD fmt built fmt CC freq.c LD freq built freq CC getflags.c LD getflags built getflags YACC grep.y CC y.tab.c /opt/work/sysutils/9base/work/9base-6/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] yyp = &yys[-1]; ^ ~~ /opt/work/sysutils/9base/work/9base-6/grep/grep.y:398:2: note: array 'yys' declared here struct ^ 1 warning generated. CC main.c CC comp.c comp.c:21:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(tt=&state0; t = *tt;) { ~~^~~~~ comp.c:21:20: note: place parentheses around the assignment to silence this warning for(tt=&state0; t = *tt;) { ^ ( ) comp.c:21:20: note: use '==' to turn this assignment into an equality comparison for(tt=&state0; t = *tt;) { ^ == comp.c:99:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(r1 = r->u.cases[c]) ~~~^~~~~~~~~~~~~~~ comp.c:99:9: note: place parentheses around the assignment to silence this warning if(r1 = r->u.cases[c]) ^ ( ) comp.c:99:9: note: use '==' to turn this assignment into an equality comparison if(r1 = r->u.cases[c]) ^ == comp.c:101:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(r = r->next) ~~^~~~~~~~~ comp.c:101:8: note: place parentheses around the assignment to silence this warning if(r = r->next) ^ ( ) comp.c:101:8: note: use '==' to turn this assignment into an equality comparison if(r = r->next) ^ == 3 warnings generated. CC sub.c sub.c:13:8: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] v = sbrk(n); ^ sub.c:13:6: warning: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion] v = sbrk(n); ^ ~~~~~~~ sub.c:17:7: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration] s = sbrk(Nhunk); ^ sub.c:17:5: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] s = sbrk(Nhunk); ^ ~~~~~~~~~~~ sub.c:174:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(n = a->next) ~~^~~~~~~~~ sub.c:174:10: note: place parentheses around the assignment to silence this warning while(n = a->next) ^ ( ) sub.c:174:10: note: use '==' to turn this assignment into an equality comparison while(n = a->next) ^ == 5 warnings generated. LD grep built grep YACC hoc.y conflicts: 19 shift/reduce CC y.tab.c /opt/work/sysutils/9base/work/9base-6/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] yyp = &yys[-1]; ^ ~~ /opt/work/sysutils/9base/work/9base-6/hoc/hoc.y:670:2: note: array 'yys' declared here struct ^ 1 warning generated. CC init.c CC code.c CC math.c CC symbol.c LD hoc built hoc CC join.c LD join built join CC look.c look.c:305:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(b = *--it - *--is) ~~^~~~~~~~~~~~~~~ look.c:305:9: note: place parentheses around the assignment to silence this warning if(b = *--it - *--is) ^ ( ) look.c:305:9: note: use '==' to turn this assignment into an equality comparison if(b = *--it - *--is) ^ == look.c:321:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(a = *t++ - *s++) ~~^~~~~~~~~~~~~ look.c:321:9: note: place parentheses around the assignment to silence this warning if(a = *t++ - *s++) ^ ( ) look.c:321:9: note: use '==' to turn this assignment into an equality comparison if(a = *t++ - *s++) ^ == 2 warnings generated. LD look built look CC ls.c LD ls built ls CC arc.c CC archive.c CC bufblock.c CC env.c CC file.c CC graph.c CC job.c CC lex.c CC main.c CC match.c CC mk.c CC parse.c CC recipe.c recipe.c:112:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(lw = w; w = w->next; lw = w){ ~~^~~~~~~~~ recipe.c:112:16: note: place parentheses around the assignment to silence this warning for(lw = w; w = w->next; lw = w){ ^ ( ) recipe.c:112:16: note: use '==' to turn this assignment into an equality comparison for(lw = w; w = w->next; lw = w){ ^ == 1 warning generated. CC rc.c CC rule.c rule.c:17:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(sym = symlook(head, S_TARGET, 0)){ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ rule.c:17:9: note: place parentheses around the assignment to silence this warning if(sym = symlook(head, S_TARGET, 0)){ ^ ( ) rule.c:17:9: note: use '==' to turn this assignment into an equality comparison if(sym = symlook(head, S_TARGET, 0)){ ^ == 1 warning generated. CC run.c run.c:184:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(sym = symlook("NPROC", S_VAR, 0)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ run.c:184:9: note: place parentheses around the assignment to silence this warning if(sym = symlook("NPROC", S_VAR, 0)) { ^ ( ) run.c:184:9: note: use '==' to turn this assignment into an equality comparison if(sym = symlook("NPROC", S_VAR, 0)) { ^ == 1 warning generated. CC sh.c CC shell.c CC shprint.c CC symtab.c CC var.c CC varsub.c CC word.c word.c:81:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(v = w){ ~~^~~ word.c:81:10: note: place parentheses around the assignment to silence this warning while(v = w){ ^ ( ) word.c:81:10: note: use '==' to turn this assignment into an equality comparison while(v = w){ ^ == 1 warning generated. CC unix.c LD mk built mk CC mkdir.c LD mkdir built mkdir CC mtime.c LD mtime built mtime CC pbd.c LD pbd built pbd CC primes.c LD primes built primes YACC syn.y CC code.c CC exec.c CC getflags.c CC glob.c CC here.c CC io.c CC lex.c CC pcmd.c CC pfnc.c CC simple.c CC subr.c subr.c:12:63: warning: '/*' within block comment [-Wcomment] /* if(err){ pfmt(err, "malloc %d->%p\n", n, p); flush(err); } /**/ ^ subr.c:20:43: warning: '/*' within block comment [-Wcomment] /* pfmt(err, "free %p\n", p); flush(err); /**/ ^ 2 warnings generated. CC trap.c CC tree.c CC unixcrap.c CC var.c CC y.tab.c /opt/work/sysutils/9base/work/9base-6/rc/syn.y:303:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] yyp = &yys[-1]; ^ ~~ /opt/work/sysutils/9base/work/9base-6/rc/syn.y:281:2: note: array 'yys' declared here struct ^ 1 warning generated. CC plan9ish.c CC havefork.c LD rc ld: warning: directory not found for option '-L/opt/work/sysutils/9base/work/.buildlink/9base/lib' built rc CC read.c LD read built read CC sam.c CC address.c address.c:92:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] }while(ap = ap->next); /* assign = */ ~~~^~~~~~~~~~ address.c:92:12: note: place parentheses around the assignment to silence this warning }while(ap = ap->next); /* assign = */ ^ ( ) address.c:92:12: note: use '==' to turn this assignment into an equality comparison }while(ap = ap->next); /* assign = */ ^ == 1 warning generated. CC buff.c CC cmd.c cmd.c:480:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] }while(cp = ncp); ~~~^~~~~ cmd.c:480:14: note: place parentheses around the assignment to silence this warning }while(cp = ncp); ^ ( ) cmd.c:480:14: note: use '==' to turn this assignment into an equality comparison }while(cp = ncp); ^ == cmd.c:557:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(addr.next = simpleaddr()) ~~~~~~~~~~^~~~~~~~~~~~~~ cmd.c:557:15: note: place parentheses around the assignment to silence this warning if(addr.next = simpleaddr()) ^ ( ) cmd.c:557:15: note: use '==' to turn this assignment into an equality comparison if(addr.next = simpleaddr()) ^ == 2 warnings generated. CC disk.c CC error.c CC file.c CC io.c CC list.c CC mesg.c mesg.c:212:7: warning: case value not in enumerated type 'Tmesg' (aka 'enum Tmesg') [-Wswitch] case -1: ^ 1 warning generated. CC moveto.c moveto.c:116:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(c1 = *s++) ~~~^~~~~~ moveto.c:116:11: note: place parentheses around the assignment to silence this warning while(c1 = *s++) ^ ( ) moveto.c:116:11: note: use '==' to turn this assignment into an equality comparison while(c1 = *s++) ^ == 1 warning generated. CC multi.c CC rasp.c CC regexp.c regexp.c:275:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ regexp.c:497:18: warning: implicit conversion from 'int' to 'Rune' (aka 'unsigned short') changes value from 1114111 to 65535 [-Wconstant-conversion] classp[n+0] = Runemax; ~ ^~~~~~~ regexp.c:519:9: warning: result of comparison of constant 'Runemax' (1114111) with expression of type 'Rune' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare] if(*p == Runemax){ ~~ ^ ~~~~~~~ regexp.c:603:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(tlp = tl; inst = tlp->inst; tlp++){ /* assignment = */ ~~~~~^~~~~~~~~~~ regexp.c:603:22: note: place parentheses around the assignment to silence this warning for(tlp = tl; inst = tlp->inst; tlp++){ /* assignment = */ ^ ( ) regexp.c:603:22: note: use '==' to turn this assignment into an equality comparison for(tlp = tl; inst = tlp->inst; tlp++){ /* assignment = */ ^ == regexp.c:729:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(tlp = tl; inst = tlp->inst; tlp++){ /* assignment = */ ~~~~~^~~~~~~~~~~ regexp.c:729:22: note: place parentheses around the assignment to silence this warning for(tlp = tl; inst = tlp->inst; tlp++){ /* assignment = */ ^ ( ) regexp.c:729:22: note: use '==' to turn this assignment into an equality comparison for(tlp = tl; inst = tlp->inst; tlp++){ /* assignment = */ ^ == 5 warnings generated. CC shell.c shell.c:79:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(retcode=!setjmp(mainloop)){ /* assignment = */ ~~~~~~~^~~~~~~~~~~~~~~~~~ shell.c:79:15: note: place parentheses around the assignment to silence this warning if(retcode=!setjmp(mainloop)){ /* assignment = */ ^ ( ) shell.c:79:15: note: use '==' to turn this assignment into an equality comparison if(retcode=!setjmp(mainloop)){ /* assignment = */ ^ == 1 warning generated. CC string.c string.c:107:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(c = (a->s[i] - b->s[i])) /* assign = */ ~~^~~~~~~~~~~~~~~~~~~~~ string.c:107:8: note: place parentheses around the assignment to silence this warning if(c = (a->s[i] - b->s[i])) /* assign = */ ^ ( ) string.c:107:8: note: use '==' to turn this assignment into an equality comparison if(c = (a->s[i] - b->s[i])) /* assign = */ ^ == 1 warning generated. CC sys.c CC unix.c CC util.c CC xec.c xec.c:135:38: warning: ^ has lower precedence than ==; == will be evaluated first [-Wparentheses] if(execute(f, addr.r.p1, addr.r.p2) ^ cp->cmdc=='v'){ ^~~~~~~~~~~~~~~ xec.c:135:38: note: place parentheses around the '==' expression to silence this warning if(execute(f, addr.r.p1, addr.r.p2) ^ cp->cmdc=='v'){ ^ ( ) xec.c:135:38: note: place parentheses around the ^ expression to evaluate it first if(execute(f, addr.r.p1, addr.r.p2) ^ cp->cmdc=='v'){ ^ ( ) 1 warning generated. LD sam ld: warning: directory not found for option '-L/opt/work/sysutils/9base/work/.buildlink/9base/lib' built sam CC sha1sum.c LD sha1sum built sha1sum CC sed.c sed.c:360:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(lpt = search(lab)) { ~~~~^~~~~~~~~~~~~ sed.c:360:12: note: place parentheses around the assignment to silence this warning if(lpt = search(lab)) { ^ ( ) sed.c:360:12: note: use '==' to turn this assignment into an equality comparison if(lpt = search(lab)) { ^ == sed.c:429:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(pt = ltab[0].chain) { ~~~^~~~~~~~~~~~~~~ sed.c:429:12: note: place parentheses around the assignment to silence this warning if(pt = ltab[0].chain) { ^ ( ) sed.c:429:12: note: use '==' to turn this assignment into an equality comparison if(pt = ltab[0].chain) { ^ == sed.c:430:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(pt1 = pt->u.lb1) ~~~~^~~~~~~~~~~ sed.c:430:17: note: place parentheses around the assignment to silence this warning while(pt1 = pt->u.lb1) ^ ( ) sed.c:430:17: note: use '==' to turn this assignment into an equality comparison while(pt1 = pt->u.lb1) ^ == sed.c:444:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(lpt = search(lab)) { ~~~~^~~~~~~~~~~~~ sed.c:444:12: note: place parentheses around the assignment to silence this warning if(lpt = search(lab)) { ^ ( ) sed.c:444:12: note: use '==' to turn this assignment into an equality comparison if(lpt = search(lab)) { ^ == sed.c:449:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(pt1 = pt->u.lb1) ~~~~^~~~~~~~~~~ sed.c:449:17: note: place parentheses around the assignment to silence this warning while(pt1 = pt->u.lb1) ^ ( ) sed.c:449:17: note: use '==' to turn this assignment into an equality comparison while(pt1 = pt->u.lb1) ^ == sed.c:745:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ap->u.rp = compile()) ~~~~~~~~~^~~~~~~~~~~ sed.c:745:16: note: place parentheses around the assignment to silence this warning if (ap->u.rp = compile()) ^ ( ) sed.c:745:16: note: use '==' to turn this assignment into an equality comparison if (ap->u.rp = compile()) ^ == sed.c:849:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(trptr = rptr->u.lb1) { ~~~~~~^~~~~~~~~~~~~ sed.c:849:16: note: place parentheses around the assignment to silence this warning while(trptr = rptr->u.lb1) { ^ ( ) sed.c:849:16: note: use '==' to turn this assignment into an equality comparison while(trptr = rptr->u.lb1) { ^ == sed.c:910:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (spend = gline(linebuf)){ ~~~~~~^~~~~~~~~~~~~~~~ sed.c:910:15: note: place parentheses around the assignment to silence this warning while (spend = gline(linebuf)){ ^ ( ) sed.c:910:15: note: use '==' to turn this assignment into an equality comparison while (spend = gline(linebuf)){ ^ == sed.c:1048:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(c = *rp++) { ~~^~~~~~~ sed.c:1048:10: note: place parentheses around the assignment to silence this warning while(c = *rp++) { ^ ( ) sed.c:1048:10: note: use '==' to turn this assignment into an equality comparison while(c = *rp++) { ^ == sed.c:1070:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (*sp++ = *lp++) ~~~~~~^~~~~~~ sed.c:1070:15: note: place parentheses around the assignment to silence this warning while (*sp++ = *lp++) ^ ( ) sed.c:1070:15: note: use '==' to turn this assignment into an equality comparison while (*sp++ = *lp++) ^ == sed.c:1075:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (*lp++ = *sp++) ~~~~~~^~~~~~~ sed.c:1075:15: note: place parentheses around the assignment to silence this warning while (*lp++ = *sp++) ^ ( ) sed.c:1075:15: note: use '==' to turn this assignment into an equality comparison while (*lp++ = *sp++) ^ == sed.c:1155:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p2++ = *p1++) ~~~~~~^~~~~~~ sed.c:1155:16: note: place parentheses around the assignment to silence this warning while(*p2++ = *p1++) ^ ( ) sed.c:1155:16: note: use '==' to turn this assignment into an equality comparison while(*p2++ = *p1++) ^ == sed.c:1166:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p1++ = *p2++) ~~~~~~^~~~~~~ sed.c:1166:16: note: place parentheses around the assignment to silence this warning while(*p1++ = *p2++) ^ ( ) sed.c:1166:16: note: use '==' to turn this assignment into an equality comparison while(*p1++ = *p2++) ^ == sed.c:1174:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p1++ = *p2++) ~~~~~~^~~~~~~ sed.c:1174:16: note: place parentheses around the assignment to silence this warning while(*p1++ = *p2++) ^ ( ) sed.c:1174:16: note: use '==' to turn this assignment into an equality comparison while(*p1++ = *p2++) ^ == sed.c:1182:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p1++ = *p2++); ~~~~~~^~~~~~~ sed.c:1182:16: note: place parentheses around the assignment to silence this warning while(*p1++ = *p2++); ^ ( ) sed.c:1182:16: note: use '==' to turn this assignment into an equality comparison while(*p1++ = *p2++); ^ == sed.c:1189:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p1++ = *p2++) ~~~~~~^~~~~~~ sed.c:1189:16: note: place parentheses around the assignment to silence this warning while(*p1++ = *p2++) ^ ( ) sed.c:1189:16: note: use '==' to turn this assignment into an equality comparison while(*p1++ = *p2++) ^ == sed.c:1276:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ sed.c:1295:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p2++ = *p1++); ~~~~~~^~~~~~~ sed.c:1295:16: note: place parentheses around the assignment to silence this warning while(*p2++ = *p1++); ^ ( ) sed.c:1295:16: note: use '==' to turn this assignment into an equality comparison while(*p2++ = *p1++); ^ == sed.c:1298:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p2++ = *p1++); ~~~~~~^~~~~~~ sed.c:1298:16: note: place parentheses around the assignment to silence this warning while(*p2++ = *p1++); ^ ( ) sed.c:1298:16: note: use '==' to turn this assignment into an equality comparison while(*p2++ = *p1++); ^ == sed.c:1302:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(*p2++ = *p1++); ~~~~~~^~~~~~~ sed.c:1302:16: note: place parentheses around the assignment to silence this warning while(*p2++ = *p1++); ^ ( ) sed.c:1302:16: note: use '==' to turn this assignment into an equality comparison while(*p2++ = *p1++); ^ == 20 warnings generated. LD sed built sed CC seq.c LD seq built seq CC sleep.c LD sleep built sleep CC sort.c sort.c:715:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(c = *s++) ~~^~~~~~ sort.c:715:12: note: place parentheses around the assignment to silence this warning while(c = *s++) ^ ( ) sort.c:715:12: note: use '==' to turn this assignment into an equality comparison while(c = *s++) ^ == sort.c:1697:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(cp1=clist+1; n=cp1[0]; cp1+=2) { ~^~~~~~~ sort.c:1697:20: note: place parentheses around the assignment to silence this warning for(cp1=clist+1; n=cp1[0]; cp1+=2) { ^ ( ) sort.c:1697:20: note: use '==' to turn this assignment into an equality comparison for(cp1=clist+1; n=cp1[0]; cp1+=2) { ^ == 2 warnings generated. LD sort built sort CC split.c split.c:169:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(t=fline; *t++ = tolower((uchar)*s++); ) ~~~~~^~~~~~~~~~~~~~~~~~~~~~ split.c:169:20: note: place parentheses around the assignment to silence this warning for(t=fline; *t++ = tolower((uchar)*s++); ) ^ ( ) split.c:169:20: note: use '==' to turn this assignment into an equality comparison for(t=fline; *t++ = tolower((uchar)*s++); ) ^ == 1 warning generated. LD split built split CC strings.c LD strings built strings CC tail.c LD tail built tail CC tee.c LD tee built tee CC test.c test.c:177:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if(nxtintarg(&int1)) ^ 1 warning generated. LD test built test CC touch.c LD touch built touch CC tr.c LD tr built tr CC n1.c In file included from n1.c:9: ./tdef.h:99:1: warning: '/*' within block comment [-Wcomment] /* Some make use of the fact that most ascii characters between ^ ./tdef.h:100:1: warning: '/*' within block comment [-Wcomment] /* 0 and 040 don't have any graphic or other function. ^ ./tdef.h:101:1: warning: '/*' within block comment [-Wcomment] /* The few that do have a purpose (e.g., \n, \b, \t, ... ^ ./tdef.h:102:1: warning: '/*' within block comment [-Wcomment] /* are avoided by the ad hoc choices here. ^ ./tdef.h:103:1: warning: '/*' within block comment [-Wcomment] /* See ifilt[] in n1.c for others -- 1, 2, 3, 5, 6, 7, 010, 011, 012 ^ ./tdef.h:241:33: warning: '/*' within block comment [-Wcomment] /* #define MOTV (MOT|VMOT|NMOT) /* motion flags */ ^ ./tdef.h:242:28: warning: '/*' within block comment [-Wcomment] /* #define MAXMOT (~MOTV) /* maximum motion permitted */ ^ In file included from n1.c:11: ./ext.h:158:1: warning: '/*' within block comment [-Wcomment] /* in miscellaneous places. ^ ./ext.h:159:1: warning: '/*' within block comment [-Wcomment] /* values are set in specnames in t10.c ^ n1.c:124:5: error: unterminated function-like macro invocation ERROR "Too many macro packages: %s", argv[0] WARN; ^ ./tdef.h:72:15: note: expanded from macro 'ERROR' #define ERROR sprintf(errbuf, ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:46:9: note: macro 'sprintf' defined here #define sprintf(str, ...) \ ^ n1.c:1134:2: error: expected '}' } ^ n1.c:123:23: note: to match this '{' if (mflg++ >= NMF) { ^ n1.c:1134:2: error: expected '}' } ^ n1.c:81:23: note: to match this '{' switch (argv[0][1]) { ^ n1.c:1134:2: error: expected '}' } ^ n1.c:53:1: note: to match this '{' { ^ n1.c:100:9: error: use of undeclared label 'start' goto start; ^ 9 warnings and 5 errors generated. *** Error code 1 Stop. bmake[1]: stopped in /opt/work/sysutils/9base/work/9base-6/troff *** Error code 1 Stop. bmake: stopped in /opt/work/sysutils/9base/work/9base-6 *** Error code 1 Stop. bmake[1]: stopped in /opt/pkgsrc/sysutils/9base *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/sysutils/9base