+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/DWB-20150517nb1/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/DWB-20150517nb1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for DWB-20150517nb1 CXX=c++ LEX=lex ./cfgr C++ compiler: /home/pbulk/build/textproc/DWB/work/.cwrapper/bin/c++ Lexer: /home/pbulk/build/textproc/DWB/work/.tools/bin/lex ---- Making all in directory doc/pub ---- ---- Making all in directory doc/pub.att ---- ---- Making all in directory index/deroff ---- cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o deroff deroff.c deroff.c:91:1: warning: return type defaults to 'int' [-Wimplicit-int] 91 | main(ac, av) | ^~~~ deroff.c: In function 'main': deroff.c:97:18: warning: type defaults to 'int' in declaration of 'optchar' [-Wimplicit-int] 97 | register optchar; | ^~~~~~~ deroff.c:102:27: warning: implicit declaration of function 'getflags' [-Wimplicit-function-declaration] 102 | while ((optchar = getflags(argc, argv, "wnpm:l:")) != EOF) switch(optchar) { | ^~~~~~~~ deroff.c:130:17: warning: implicit declaration of function 'fatal' [-Wimplicit-function-declaration] 130 | fatal("usage: deroff [-n] [ -w ] [ -mm [-li(-ml)|+li ]| ms] ] [ file ] ... \n", (char *) NULL); | ^~~~~ deroff.c:151:9: warning: implicit declaration of function 'work' [-Wimplicit-function-declaration] 151 | work(); | ^~~~ deroff.c: At top level: deroff.c:159:1: warning: return type defaults to 'int' [-Wimplicit-int] 159 | skeqn() | ^~~~~ deroff.c: In function 'skeqn': deroff.c:164:29: warning: implicit declaration of function 'eof'; did you mean 'feof'? [-Wimplicit-function-declaration] 164 | c = eof(); | ^~~ | feof deroff.c: At top level: deroff.c:195:1: warning: return type defaults to 'int' [-Wimplicit-int] 195 | eof() | ^~~ deroff.c:250:1: warning: return type defaults to 'int' [-Wimplicit-int] 250 | fatal(s,p) | ^~~~~ deroff.c:258:1: warning: return type defaults to 'int' [-Wimplicit-int] 258 | work() | ^~~~ deroff.c: In function 'work': deroff.c:266:25: warning: implicit declaration of function 'regline'; did you mean 'getline'? [-Wimplicit-function-declaration] 266 | regline(NO,TWO); | ^~~~~~~ | getline deroff.c: At top level: deroff.c:273:1: warning: return type defaults to 'int' [-Wimplicit-int] 273 | regline(macline,constant) | ^~~~~~~ deroff.c: In function 'regline': deroff.c:305:25: warning: implicit declaration of function 'putmac'; did you mean 'putc'? [-Wimplicit-function-declaration] 305 | putmac(line,constant); | ^~~~~~ | putc deroff.c: At top level: deroff.c:315:1: warning: return type defaults to 'int' [-Wimplicit-int] 315 | putmac(s,constant) | ^~~~~~ deroff.c: In function 'putmac': deroff.c:320:18: warning: type defaults to 'int' in declaration of 'found' [-Wimplicit-int] 320 | register found; | ^~~~~ deroff.c: In function 'comline': deroff.c:414:25: warning: implicit declaration of function 'stbl' [-Wimplicit-function-declaration] 414 | stbl(); | ^~~~ deroff.c:416:22: warning: implicit declaration of function 'tbl' [-Wimplicit-function-declaration] 416 | else tbl(); | ^~~ deroff.c: At top level: deroff.c:605:1: warning: return type defaults to 'int' [-Wimplicit-int] 605 | tbl() | ^~~ deroff.c:611:1: warning: return type defaults to 'int' [-Wimplicit-int] 611 | stbl() | ^~~~ ---- Making all in directory index/mptx ---- ---- Making all in directory index/ndx ---- cp ndx.sh ndx; chmod 755 ndx cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c case.c case.c:18:1: warning: return type defaults to 'int' [-Wimplicit-int] 18 | ulcase (string) | ^~~~~~ lex ndexer.l cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c -o ndexer.o lex.yy.c ndexer.l: In function 'yylex': ndexer.l:130:2: warning: implicit declaration of function 'copy_in' [-Wimplicit-function-declaration] 130 | <IX>([a-zA-Z0-9][a-zA-Z0-9&'/-]*)|([A-Z][.]) {copy_in (yytext); | ^~~~~~~ ndexer.l:136:49: warning: implicit declaration of function 'w_activate' [-Wimplicit-function-declaration] 136 | w_activate (w_ptr, 'L'); /*lit match*/ | ^~~~~~~~~~ ndexer.l:139:50: warning: implicit declaration of function 'ulcase' [-Wimplicit-function-declaration] 139 | if (ulcase (lc_token)) | ^~~~~~ ndexer.l:147:53: warning: implicit declaration of function 'rootword' [-Wimplicit-function-declaration] 147 | root_token[rootword(root_token)] = '\0'; | ^~~~~~~~ ndexer.l:148:42: warning: implicit declaration of function 'match_roots' [-Wimplicit-function-declaration] 148 | match_roots (wlist, root_token); | ^~~~~~~~~~~ ndexer.l:155:38: warning: implicit declaration of function 'subj_search'; did you mean 'bsearch'? [-Wimplicit-function-declaration] 155 | {subj_search (); | ^~~~~~~~~~~ | bsearch ndexer.l:156:38: warning: implicit declaration of function 'write_context' [-Wimplicit-function-declaration] 156 | write_context (); | ^~~~~~~~~~~~~ ndexer.l:157:38: warning: implicit declaration of function 'wri_subjmacro' [-Wimplicit-function-declaration] 157 | wri_subjmacro (); | ^~~~~~~~~~~~~ ndexer.l:158:38: warning: implicit declaration of function 'return_lists' [-Wimplicit-function-declaration] 158 | return_lists (); | ^~~~~~~~~~~~ ndexer.l:161:39: warning: implicit declaration of function 'init_vars' [-Wimplicit-function-declaration] 161 | {init_vars (); | ^~~~~~~~~ ndexer.l:170:2: warning: implicit declaration of function 'flush_context' [-Wimplicit-function-declaration] 170 | <IX>^[.']([SN]H?([ ][0-9]))[ \t]+ {flush_context (); | ^~~~~~~~~~~~~ ndexer.l:254:43: warning: implicit declaration of function 'init_subj' [-Wimplicit-function-declaration] 254 | init_subj (s_count);} | ^~~~~~~~~ ndexer.l:262:43: warning: implicit declaration of function 'build_subj' [-Wimplicit-function-declaration] 262 | build_subj (fsec);} | ^~~~~~~~~~ ndexer.l: At top level: ndexer.l:292:1: warning: return type defaults to 'int' [-Wimplicit-int] 292 | init_subj (subjno) | ^~~~~~~~~ ndexer.l:308:1: warning: return type defaults to 'int' [-Wimplicit-int] 308 | print_subj() /*For debugging, prints internal subj list*/ | ^~~~~~~~~~ ndexer.l:338:1: warning: return type defaults to 'int' [-Wimplicit-int] 338 | build_subj ( flag) | ^~~~~~~~~~ ndexer.l: In function 'subj_insert': ndexer.l:521:41: warning: implicit declaration of function 's_match'; did you mean 'rpmatch'? [-Wimplicit-function-declaration] 521 | while ((s != NULL) && (s_match(subject, s) == FALSE)) | ^~~~~~~ | rpmatch ndexer.l:528:17: warning: implicit declaration of function 'w_update' [-Wimplicit-function-declaration] 528 | w_update (slist); /*update all words in this subj*/ | ^~~~~~~~ ndexer.l: At top level: ndexer.l:538:1: warning: return type defaults to 'int' [-Wimplicit-int] 538 | s_match (subj1, subj2) | ^~~~~~~ ndexer.l:563:1: warning: return type defaults to 'int' [-Wimplicit-int] 563 | w_update (s) | ^~~~~~~~ ndexer.l:592:1: warning: return type defaults to 'int' [-Wimplicit-int] 592 | prnt_slist () | ^~~~~~~~~~ ndexer.l:604:1: warning: return type defaults to 'int' [-Wimplicit-int] 604 | printtree (tree, c) | ^~~~~~~~~ ndexer.l:623:1: warning: return type defaults to 'int' [-Wimplicit-int] 623 | w_activate (w_ptr, m_type) | ^~~~~~~~~~ ndexer.l: In function 'w_activate': ndexer.l:631:27: warning: implicit declaration of function 'already_act' [-Wimplicit-function-declaration] 631 | {if ((i = already_act (w_ptr)) != -1) | ^~~~~~~~~~~ ndexer.l: At top level: ndexer.l:663:1: warning: return type defaults to 'int' [-Wimplicit-int] 663 | match_roots (tree, root) | ^~~~~~~~~~~ ndexer.l: In function 'match_roots': ndexer.l:675:17: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration] 675 | if (min (r_ptr->rootp, len) < 4) | ^~~ ndexer.l: At top level: ndexer.l:729:1: warning: return type defaults to 'int' [-Wimplicit-int] 729 | subj_search() | ^~~~~~~~~~~ ndexer.l:798:1: warning: return type defaults to 'int' [-Wimplicit-int] 798 | copy_in (text) /*copies a string to the context buf*/ | ^~~~~~~ ndexer.l:833:1: warning: return type defaults to 'int' [-Wimplicit-int] 833 | flush_context () | ^~~~~~~~~~~~~ ndexer.l:846:1: warning: return type defaults to 'int' [-Wimplicit-int] 846 | write_context () | ^~~~~~~~~~~~~ ndexer.l:869:1: warning: return type defaults to 'int' [-Wimplicit-int] 869 | wri_subjmacro () /*write subj indexing macros to pagefile and*/ | ^~~~~~~~~~~~~ ndexer.l:888:1: warning: return type defaults to 'int' [-Wimplicit-int] 888 | return_lists () | ^~~~~~~~~~~~ ndexer.l:908:1: warning: return type defaults to 'int' [-Wimplicit-int] 908 | init_vars () | ^~~~~~~~~ ndexer.l:929:1: warning: return type defaults to 'int' [-Wimplicit-int] 929 | min (i, j) | ^~~ ndexer.l:942:1: warning: return type defaults to 'int' [-Wimplicit-int] 942 | ndx_text (pfname) | ^~~~~~~~ ndexer.l:956:1: warning: return type defaults to 'int' [-Wimplicit-int] 956 | yywrap () | ^~~~~~ ndexer.l:991:1: warning: return type defaults to 'int' [-Wimplicit-int] 991 | main (argc,argv) | ^~~~ ndexer.l: In function 'ndx_text': ndexer.l:949:9: warning: ignoring return value of 'tmpnam' declared with attribute 'warn_unused_result' [-Wunused-result] 949 | tmpnam (tmpbuf); | ^~~~~~~~~~~~~~~ rm -f lex.yy.c cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c rootwd.c In file included from rootwd.c:13: ehash.h:133:1: warning: return type defaults to 'int' [-Wimplicit-int] 133 | egetd() | ^~~~~ ehash.h: In function 'aahash': ehash.h:150:1: warning: type of 'ex' defaults to 'int' [-Wimplicit-int] 150 | aahash(s, ex, aatsize, aapr1, aapr2, tbl, data) | ^~~~~~ ehash.h:150:1: warning: type of 'aatsize' defaults to 'int' [-Wimplicit-int] ehash.h:150:1: warning: type of 'aapr1' defaults to 'int' [-Wimplicit-int] ehash.h:150:1: warning: type of 'aapr2' defaults to 'int' [-Wimplicit-int] ehash.h: In function 'able': ehash.h:189:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 189 | able(a0, a1, ptr) | ^~~~ ehash.h: In function 'ace': ehash.h:202:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 202 | ace(a0, a1, ptr) | ^~~ ehash.h: In function 'age': ehash.h:215:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 215 | age(a0, a1, ptr) | ^~~ ehash.h: In function 'ance': ehash.h:228:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 228 | ance(a0, a1, ptr) | ^~~~ ehash.h: In function 'ant': ehash.h:241:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 241 | ant(a0, a1, ptr) | ^~~ ehash.h: In function 'cal': ehash.h:254:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 254 | cal(a0, a1, ptr) | ^~~ ehash.h: In function 'cle': ehash.h:267:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 267 | cle(a0, a1, ptr) | ^~~ ehash.h: In function 'ee': ehash.h:280:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 280 | ee(a0, a1, ptr) | ^~ ehash.h: In function 'ence': ehash.h:293:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 293 | ence(a0, a1, ptr) | ^~~~ ehash.h: In function 'ess': ehash.h:306:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 306 | ess(a0, a1, ptr) | ^~~ ehash.h: In function 'est': ehash.h:319:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 319 | est(a0, a1, ptr) | ^~~ ehash.h: In function 'ful': ehash.h:332:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 332 | ful(a0, a1, ptr) | ^~~ ehash.h: In function 'ible': ehash.h:345:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 345 | ible(a0, a1, ptr) | ^~~~ ehash.h: In function 'ic': ehash.h:358:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 358 | ic(a0, a1, ptr) | ^~ ehash.h: In function 'ice': ehash.h:371:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 371 | ice(a0, a1, ptr) | ^~~ ehash.h: In function 'ion': ehash.h:384:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 384 | ion(a0, a1, ptr) | ^~~ ehash.h: In function 'ional': ehash.h:397:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 397 | ional(a0, a1, ptr) | ^~~~~ ehash.h: In function 'is': ehash.h:410:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 410 | is(a0, a1, ptr) | ^~ ehash.h: In function 'ish': ehash.h:423:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 423 | ish(a0, a1, ptr) | ^~~ ehash.h: In function 'ist': ehash.h:436:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 436 | ist(a0, a1, ptr) | ^~~ ehash.h: In function 'ite': ehash.h:449:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 449 | ite(a0, a1, ptr) | ^~~ ehash.h: In function 'ive': ehash.h:462:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 462 | ive(a0, a1, ptr) | ^~~ ehash.h: In function 'ize': ehash.h:475:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 475 | ize(a0, a1, ptr) | ^~~ ehash.h: In function 'lar': ehash.h:488:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 488 | lar(a0, a1, ptr) | ^~~ ehash.h: In function 'less': ehash.h:501:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 501 | less(a0, a1, ptr) | ^~~~ ehash.h: In function 'man': ehash.h:514:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 514 | man(a0, a1, ptr) | ^~~ ehash.h: In function 'ment': ehash.h:527:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 527 | ment(a0, a1, ptr) | ^~~~ ehash.h: In function 'ness': ehash.h:540:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 540 | ness(a0, a1, ptr) | ^~~~ ehash.h: In function 'ous': ehash.h:553:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 553 | ous(a0, a1, ptr) | ^~~ ehash.h: In function 'ship': ehash.h:566:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 566 | ship(a0, a1, ptr) | ^~~~ ehash.h: In function 'ss': ehash.h:579:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 579 | ss(a0, a1, ptr) | ^~ ehash.h: In function 'ure': ehash.h:592:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 592 | ure(a0, a1, ptr) | ^~~ ehash.h: In function 'us': ehash.h:605:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 605 | us(a0, a1, ptr) | ^~ ehash.h: In function 'ing': ehash.h:618:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 618 | ing(a0, a1, ptr) | ^~~ ehash.h: In function 'ed': ehash.h:631:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 631 | ed(a0, a1, ptr) | ^~ rootwd.c: At top level: rootwd.c:29:1: warning: return type defaults to 'int' [-Wimplicit-int] 29 | rootword (token) | ^~~~~~~~ rootwd.c: In function 'rootword': rootwd.c:41:13: warning: implicit declaration of function 'string'; did you mean 'stdin'? [-Wimplicit-function-declaration] 41 | if (string (token, TOKSIZE)) /*if token is a string*/ { | ^~~~~~ | stdin rootwd.c:48:41: warning: implicit declaration of function 'except' [-Wimplicit-function-declaration] 48 | return (except(ed, token, len, 2)); | ^~~~~~ rootwd.c: At top level: rootwd.c:166:1: warning: return type defaults to 'int' [-Wimplicit-int] 166 | except (endg, token, len, end) | ^~~~~~ rootwd.c: In function 'except': rootwd.c:176:9: warning: implicit declaration of function 'strn_rev' [-Wimplicit-function-declaration] 176 | strn_rev (token, rtok, (len - end)); /*reverse string minus ending*/ | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c space.c cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c str.c cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c strr.c strr.c:19:1: warning: return type defaults to 'int' [-Wimplicit-int] 19 | strn_rev (str, rstr, n) | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib case.o ndexer.o rootwd.o space.o str.o strr.o -o ndexer /bin/ld: ndexer.o: in function `ndx_text': lex.yy.c:(.text+0x1c7a): warning: the use of `tmpnam' is dangerous, better use `mkstemp' cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o ndxformat ndxformat.c ndxformat.c:11:1: warning: return type defaults to 'int' [-Wimplicit-int] 11 | main() | ^~~~ cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o pages pages.c pages.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int] 20 | main(argc, argv) | ^~~~ pages.c: In function 'main': pages.c:37:17: warning: implicit declaration of function 'procnosect' [-Wimplicit-function-declaration] 37 | procnosect(); | ^~~~~~~~~~ pages.c:40:17: warning: implicit declaration of function 'procsect' [-Wimplicit-function-declaration] 40 | procsect(); | ^~~~~~~~ pages.c: At top level: pages.c:47:1: warning: return type defaults to 'int' [-Wimplicit-int] 47 | procnosect() | ^~~~~~~~~~ pages.c:85:1: warning: return type defaults to 'int' [-Wimplicit-int] 85 | procsect() | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o sbjprep sbjprep.c sbjprep.c:16:1: warning: return type defaults to 'int' [-Wimplicit-int] 16 | main(argc, argv) | ^~~~ ---- Making all in directory index/ptx ---- cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o ptx ptx.c ptx.c:82:1: warning: return type defaults to 'int' [-Wimplicit-int] 82 | main(argc,argv) | ^~~~ ptx.c: In function 'main': ptx.c:125:41: warning: implicit declaration of function 'diag' [-Wimplicit-function-declaration] 125 | diag("Wrong width:",*optarg); | ^~~~ ptx.c:232:28: warning: implicit declaration of function 'storeh' [-Wimplicit-function-declaration] 232 | if(storeh(hash(strtbufp,bufp),strtbufp)) | ^~~~~~ ptx.c:232:35: warning: implicit declaration of function 'hash' [-Wimplicit-function-declaration] 232 | if(storeh(hash(strtbufp,bufp),strtbufp)) | ^~~~ ptx.c:261:17: warning: implicit declaration of function 'cmpline' [-Wimplicit-function-declaration] 261 | cmpline(pend); | ^~~~~~~ ptx.c:276:23: warning: implicit declaration of function 'wait' [-Wimplicit-function-declaration] 276 | while(wait(&status) != pid); | ^~~~ ptx.c:280:9: warning: implicit declaration of function 'getsort'; did you mean 'getopt'? [-Wimplicit-function-declaration] 280 | getsort(); | ^~~~~~~ | getopt ptx.c: At top level: ptx.c:290:1: warning: return type defaults to 'int' [-Wimplicit-int] 290 | diag(s,arg) | ^~~~ ptx.c: In function 'dwb_getline': ptx.c:302:18: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 302 | register c; | ^ ptx.c: At top level: ptx.c:335:1: warning: return type defaults to 'int' [-Wimplicit-int] 335 | cmpline(pend) | ^~~~~~~ ptx.c: In function 'cmpline': ptx.c:362:44: warning: implicit declaration of function 'cmpword' [-Wimplicit-function-declaration] 362 | if(cmpword(pstrt,pchar,cp)){ | ^~~~~~~ ptx.c:365:57: warning: implicit declaration of function 'putline'; did you mean 'getline'? [-Wimplicit-function-declaration] 365 | putline(pstrt,pend); | ^~~~~~~ | getline ptx.c: At top level: ptx.c:382:1: warning: return type defaults to 'int' [-Wimplicit-int] 382 | cmpword(cpp,pend,hpp) | ^~~~~~~ ptx.c:396:1: warning: return type defaults to 'int' [-Wimplicit-int] 396 | putline(strt, end) | ^~~~~~~ ptx.c:412:1: warning: return type defaults to 'int' [-Wimplicit-int] 412 | getsort() | ^~~~~~~ ptx.c: In function 'getsort': ptx.c:414:18: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 414 | register c; | ^ ptx.c:458:25: warning: implicit declaration of function 'putout' [-Wimplicit-function-declaration] 458 | putout(p1a,p1b); | ^~~~~~ ptx.c: In function 'rtrim': ptx.c:492:7: warning: type of 'd' defaults to 'int' [-Wimplicit-int] 492 | char *rtrim(a,c,d) | ^~~~~ ptx.c: In function 'ltrim': ptx.c:505:7: warning: type of 'd' defaults to 'int' [-Wimplicit-int] 505 | char *ltrim(c,b,d) | ^~~~~ ptx.c: At top level: ptx.c:518:1: warning: return type defaults to 'int' [-Wimplicit-int] 518 | putout(strt,end) | ^~~~~~ ptx.c:538:1: warning: return type defaults to 'int' [-Wimplicit-int] 538 | hash(strtp,endp) | ^~~~ ptx.c:565:1: warning: return type defaults to 'int' [-Wimplicit-int] 565 | storeh(num,strtp) | ^~~~~~ /bin/ld: /tmp/ccsyo4XM.o: in function `main': ptx.c:(.text.startup+0x51a): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' ---- Making all in directory index/subj ---- cp subj.sh subj; chmod 755 subj cp parts.sh parts; chmod 755 parts lex sbj1.l cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c -o sbj1.o lex.yy.c sbj1.l: In function 'yylex': sbj1.l:53:3: warning: implicit declaration of function 'skip' [-Wimplicit-function-declaration] 53 | ^[.]EQ.*[\n] { skip ('E');} | ^~~~ sbj1.l:85:42: warning: implicit declaration of function 'italic_arg' [-Wimplicit-function-declaration] 85 | {italic_arg(); | ^~~~~~~~~~ sbj1.l: At top level: sbj1.l:242:1: warning: return type defaults to 'int' [-Wimplicit-int] 242 | skip (type) | ^~~~ sbj1.l:280:1: warning: return type defaults to 'int' [-Wimplicit-int] 280 | italic_arg() | ^~~~~~~~~~ sbj1.l:326:1: warning: return type defaults to 'int' [-Wimplicit-int] 326 | main (argc, argv) | ^~~~ rm -f lex.yy.c cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib sbj1.o -o sbj1 -lfl lex sbj2.l sbj2.l:65: warning, rule cannot be matched cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c -o sbj2.o lex.yy.c sbj2.l: In function 'yylex': sbj2.l:70:42: warning: implicit declaration of function 'writesubj' [-Wimplicit-function-declaration] 70 | {writesubj(type); | ^~~~~~~~~ sbj2.l:71:42: warning: implicit declaration of function 'reset_ptrs' [-Wimplicit-function-declaration] 71 | reset_ptrs(); | ^~~~~~~~~~ sbj2.l: At top level: sbj2.l:137:1: warning: return type defaults to 'int' [-Wimplicit-int] 137 | writesubj (type) | ^~~~~~~~~ sbj2.l:181:1: warning: return type defaults to 'int' [-Wimplicit-int] 181 | reset_ptrs () | ^~~~~~~~~~ rm -f lex.yy.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c case.c case.c:18:1: warning: return type defaults to 'int' [-Wimplicit-int] 18 | ulcase (string) | ^~~~~~ cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib sbj2.o case.o -o sbj2 -lfl lex sbj3.l cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c -o sbj3.o lex.yy.c sbj3.l: In function 'yylex': sbj3.l:54:41: warning: implicit declaration of function 'storeterm' [-Wimplicit-function-declaration] 54 | storeterm (); | ^~~~~~~~~ sbj3.l:61:41: warning: implicit declaration of function 'writesubj' [-Wimplicit-function-declaration] 61 | writesubj (); | ^~~~~~~~~ sbj3.l:62:34: warning: implicit declaration of function 'reset_ptrs' [-Wimplicit-function-declaration] 62 | reset_ptrs(); | ^~~~~~~~~~ sbj3.l: At top level: sbj3.l:72:1: warning: return type defaults to 'int' [-Wimplicit-int] 72 | storeterm() | ^~~~~~~~~ sbj3.l: In function 'storeterm': sbj3.l:73:13: warning: implicit declaration of function 'omit' [-Wimplicit-function-declaration] 73 | { if (omit(yytext) == FALSE) | ^~~~ sbj3.l: At top level: sbj3.l:93:1: warning: return type defaults to 'int' [-Wimplicit-int] 93 | writesubj () | ^~~~~~~~~ sbj3.l:106:1: warning: return type defaults to 'int' [-Wimplicit-int] 106 | reset_ptrs () | ^~~~~~~~~~ rm -f lex.yy.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c omit.c omit.c:18:1: warning: return type defaults to 'int' [-Wimplicit-int] 18 | omit (word) | ^~~~ cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib sbj3.o case.o omit.o -o sbj3 -lfl lex nwords.l cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c -o nwords.o lex.yy.c In file included from nwords.l:32: nhash.h: In function 'aahash': nhash.h:37:1: warning: type of 'ex' defaults to 'int' [-Wimplicit-int] 37 | aahash(s, ex, aatsize, aapr1, aapr2, tbl, data) | ^~~~~~ nhash.h:37:1: warning: type of 'aatsize' defaults to 'int' [-Wimplicit-int] nhash.h:37:1: warning: type of 'aapr1' defaults to 'int' [-Wimplicit-int] nhash.h:37:1: warning: type of 'aapr2' defaults to 'int' [-Wimplicit-int] nhash.h: At top level: nhash.h:71:1: warning: return type defaults to 'int' [-Wimplicit-int] 71 | getd() | ^~~~ nhash.h: In function 'lookup': nhash.h:87:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 87 | lookup(a0, a1, ptr) | ^~~~~~ nhash.h: In function 'ary': nhash.h:100:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 100 | ary(a0, a1, ptr) | ^~~ nhash.h: In function 'cy': nhash.h:113:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 113 | cy(a0, a1, ptr) | ^~ nhash.h: In function 'ery': nhash.h:126:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 126 | ery(a0, a1, ptr) | ^~~ nhash.h: In function 'fy': nhash.h:139:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 139 | fy(a0, a1, ptr) | ^~ nhash.h: In function 'gy': nhash.h:152:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 152 | gy(a0, a1, ptr) | ^~ nhash.h: In function 'ity': nhash.h:165:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 165 | ity(a0, a1, ptr) | ^~~ nhash.h: In function 'ly': nhash.h:178:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 178 | ly(a0, a1, ptr) | ^~ nhash.h: In function 'ory': nhash.h:191:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 191 | ory(a0, a1, ptr) | ^~~ nhash.h: In function 'ry': nhash.h:204:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 204 | ry(a0, a1, ptr) | ^~ nhash.h: In function 'ty': nhash.h:217:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 217 | ty(a0, a1, ptr) | ^~ nhash.h: At top level: nhash.h:243:1: warning: return type defaults to 'int' [-Wimplicit-int] 243 | ygetd() | ^~~~~ In file included from nwords.l:35: abbrev.h: In function 'abbrev': abbrev.h:17:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 17 | abbrev(a0, a1, ptr) | ^~~~~~ abbrev.h: At top level: abbrev.h:25:1: warning: return type defaults to 'int' [-Wimplicit-int] 25 | getab() | ^~~~~ nwords.l: In function 'yylex': nwords.l:84:17: warning: implicit declaration of function 'pos' [-Wimplicit-function-declaration] 84 | pos(1); | ^~~ nwords.l:168:28: warning: implicit declaration of function 'ahead' [-Wimplicit-function-declaration] 168 | if(ahead() == 0)dot=1; | ^~~~~ nwords.l:319:35: warning: implicit declaration of function 'look' [-Wimplicit-function-declaration] 319 | case 'c': look(cy,yyleng-2,NOUN); | ^~~~ nwords.l: At top level: nwords.l:457:1: warning: return type defaults to 'int' [-Wimplicit-int] 457 | look(f,n,cc) | ^~~~ nwords.l:475:1: warning: return type defaults to 'int' [-Wimplicit-int] 475 | pos(flg){ | ^~~ nwords.l: In function 'pos': nwords.l:475:1: warning: type of 'flg' defaults to 'int' [-Wimplicit-int] nwords.l: At top level: nwords.l:493:1: warning: return type defaults to 'int' [-Wimplicit-int] 493 | main(argc,argv) | ^~~~ nwords.l:520:1: warning: return type defaults to 'int' [-Wimplicit-int] 520 | ahead(){ | ^~~~~ rm -f lex.yy.c cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib nwords.o -o style1 -lfl lex end.l cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c -o end.o lex.yy.c In file included from end.l:28: ehash.h:133:1: warning: return type defaults to 'int' [-Wimplicit-int] 133 | egetd() | ^~~~~ ehash.h: In function 'aahash': ehash.h:150:1: warning: type of 'ex' defaults to 'int' [-Wimplicit-int] 150 | aahash(s, ex, aatsize, aapr1, aapr2, tbl, data) | ^~~~~~ ehash.h:150:1: warning: type of 'aatsize' defaults to 'int' [-Wimplicit-int] ehash.h:150:1: warning: type of 'aapr1' defaults to 'int' [-Wimplicit-int] ehash.h:150:1: warning: type of 'aapr2' defaults to 'int' [-Wimplicit-int] ehash.h: In function 'able': ehash.h:189:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 189 | able(a0, a1, ptr) | ^~~~ ehash.h: In function 'ace': ehash.h:202:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 202 | ace(a0, a1, ptr) | ^~~ ehash.h: In function 'age': ehash.h:215:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 215 | age(a0, a1, ptr) | ^~~ ehash.h: In function 'ance': ehash.h:228:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 228 | ance(a0, a1, ptr) | ^~~~ ehash.h: In function 'ant': ehash.h:241:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 241 | ant(a0, a1, ptr) | ^~~ ehash.h: In function 'cal': ehash.h:254:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 254 | cal(a0, a1, ptr) | ^~~ ehash.h: In function 'cle': ehash.h:267:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 267 | cle(a0, a1, ptr) | ^~~ ehash.h: In function 'ee': ehash.h:280:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 280 | ee(a0, a1, ptr) | ^~ ehash.h: In function 'ence': ehash.h:293:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 293 | ence(a0, a1, ptr) | ^~~~ ehash.h: In function 'ess': ehash.h:306:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 306 | ess(a0, a1, ptr) | ^~~ ehash.h: In function 'est': ehash.h:319:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 319 | est(a0, a1, ptr) | ^~~ ehash.h: In function 'ful': ehash.h:332:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 332 | ful(a0, a1, ptr) | ^~~ ehash.h: In function 'ible': ehash.h:345:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 345 | ible(a0, a1, ptr) | ^~~~ ehash.h: In function 'ic': ehash.h:358:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 358 | ic(a0, a1, ptr) | ^~ ehash.h: In function 'ice': ehash.h:371:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 371 | ice(a0, a1, ptr) | ^~~ ehash.h: In function 'ion': ehash.h:384:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 384 | ion(a0, a1, ptr) | ^~~ ehash.h: In function 'ional': ehash.h:397:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 397 | ional(a0, a1, ptr) | ^~~~~ ehash.h: In function 'is': ehash.h:410:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 410 | is(a0, a1, ptr) | ^~ ehash.h: In function 'ish': ehash.h:423:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 423 | ish(a0, a1, ptr) | ^~~ ehash.h: In function 'ist': ehash.h:436:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 436 | ist(a0, a1, ptr) | ^~~ ehash.h: In function 'ite': ehash.h:449:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 449 | ite(a0, a1, ptr) | ^~~ ehash.h: In function 'ive': ehash.h:462:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 462 | ive(a0, a1, ptr) | ^~~ ehash.h: In function 'ize': ehash.h:475:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 475 | ize(a0, a1, ptr) | ^~~ ehash.h: In function 'lar': ehash.h:488:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 488 | lar(a0, a1, ptr) | ^~~ ehash.h: In function 'less': ehash.h:501:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 501 | less(a0, a1, ptr) | ^~~~ ehash.h: In function 'man': ehash.h:514:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 514 | man(a0, a1, ptr) | ^~~ ehash.h: In function 'ment': ehash.h:527:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 527 | ment(a0, a1, ptr) | ^~~~ ehash.h: In function 'ness': ehash.h:540:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 540 | ness(a0, a1, ptr) | ^~~~ ehash.h: In function 'ous': ehash.h:553:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 553 | ous(a0, a1, ptr) | ^~~ ehash.h: In function 'ship': ehash.h:566:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 566 | ship(a0, a1, ptr) | ^~~~ ehash.h: In function 'ss': ehash.h:579:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 579 | ss(a0, a1, ptr) | ^~ ehash.h: In function 'ure': ehash.h:592:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 592 | ure(a0, a1, ptr) | ^~~ ehash.h: In function 'us': ehash.h:605:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 605 | us(a0, a1, ptr) | ^~ ehash.h: In function 'ing': ehash.h:618:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 618 | ing(a0, a1, ptr) | ^~~ ehash.h: In function 'ed': ehash.h:631:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] 631 | ed(a0, a1, ptr) | ^~ end.l: In function 'yylex': end.l:49:9: warning: implicit declaration of function 'look' [-Wimplicit-function-declaration] 49 | look(ic,2,ADJ); | ^~~~ end.l: At top level: end.l:221:1: warning: return type defaults to 'int' [-Wimplicit-int] 221 | look(f,n,nc) | ^~~~ end.l:259:1: warning: return type defaults to 'int' [-Wimplicit-int] 259 | yywrap(){ | ^~~~~~ rm -f lex.yy.c cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib end.o -o style2 -lfl lex part.l part.l:141: warning, rule cannot be matched cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c -o part.o lex.yy.c In file included from part.l:25: style.h:60:8: warning: type defaults to 'int' in declaration of 'sentno' [-Wimplicit-int] 60 | extern sentno; | ^~~~~~ In file included from part.l:27: conp.h:18:8: warning: type defaults to 'int' in declaration of 'comma' [-Wimplicit-int] 18 | extern comma, j, i; | ^~~~~ conp.h:18:15: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int] 18 | extern comma, j, i; | ^ conp.h:18:18: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 18 | extern comma, j, i; | ^ conp.h:20:8: warning: type defaults to 'int' in declaration of 'question' [-Wimplicit-int] 20 | extern question; | ^~~~~~~~ part.l: In function 'yylex': part.l:178:28: warning: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration] 178 | jj=scan(1,',',0); | ^~~~ | scanf part.l:197:9: warning: implicit declaration of function 'outp' [-Wimplicit-function-declaration] 197 | outp(); | ^~~~ part.l: At top level: part.l:242:1: warning: return type defaults to 'int' [-Wimplicit-int] 242 | yywrap(){ | ^~~~~~ part.l: In function 'wperc': part.l:331:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] 331 | wperc(a) | ^~~~~ part.l: In function 'sperc': part.l:336:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] 336 | sperc(a) | ^~~~~ part.l: In function 'typersent': part.l:341:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] 341 | typersent(a) | ^~~~~~~~~ part.l: In function 'vperc': part.l:346:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] 346 | vperc(a) | ^~~~~ part.l: At top level: part.l:351:1: warning: return type defaults to 'int' [-Wimplicit-int] 351 | main(argc,argv) | ^~~~ part.l: In function 'main': part.l:351:1: warning: type of 'argc' defaults to 'int' [-Wimplicit-int] rm -f lex.yy.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c pscan.c In file included from pscan.c:13: conp.h:18:8: warning: type defaults to 'int' in declaration of 'comma' [-Wimplicit-int] 18 | extern comma, j, i; | ^~~~~ conp.h:18:15: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int] 18 | extern comma, j, i; | ^ conp.h:18:18: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 18 | extern comma, j, i; | ^ conp.h:20:8: warning: type defaults to 'int' in declaration of 'question' [-Wimplicit-int] 20 | extern question; | ^~~~~~~~ pscan.c:25:1: warning: return type defaults to 'int' [-Wimplicit-int] 25 | scan(si, ce, command) /*scan a phrase */ | ^~~~ pscan.c: In function 'scan': pscan.c:25:1: warning: type of 'command' defaults to 'int' [-Wimplicit-int] pscan.c:41:16: warning: implicit declaration of function 'getv'; did you mean 'getv2'? [-Wimplicit-function-declaration] 41 | verb = getv(i, ce); /*get verb if obvious*/ | ^~~~ | getv2 pscan.c:43:21: warning: implicit declaration of function 'getnoun'; did you mean 'notnoun'? [-Wimplicit-function-declaration] 43 | j = getnoun(i, ce); /*get subject*/ | ^~~~~~~ | notnoun pscan.c:148:29: warning: implicit declaration of function 'who' [-Wimplicit-function-declaration] 148 | i = who(i, ce); | ^~~ pscan.c: At top level: pscan.c:406:1: warning: return type defaults to 'int' [-Wimplicit-int] 406 | getv(si, ce) | ^~~~ pscan.c:595:1: warning: return type defaults to 'int' [-Wimplicit-int] 595 | getnoun(k, ce) | ^~~~~~~ pscan.c:997:1: warning: return type defaults to 'int' [-Wimplicit-int] 997 | who(kk, ce) | ^~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c outp.c In file included from outp.c:13: style.h:60:8: warning: type defaults to 'int' in declaration of 'sentno' [-Wimplicit-int] 60 | extern sentno; | ^~~~~~ In file included from outp.c:15: conp.h:18:8: warning: type defaults to 'int' in declaration of 'comma' [-Wimplicit-int] 18 | extern comma, j, i; | ^~~~~ conp.h:18:15: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int] 18 | extern comma, j, i; | ^ conp.h:18:18: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 18 | extern comma, j, i; | ^ conp.h:20:8: warning: type defaults to 'int' in declaration of 'question' [-Wimplicit-int] 20 | extern question; | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c extern.c cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib part.o pscan.o outp.o extern.o -o style3 -lfl ---- Making all in directory laserjet/devpcl ---- ---- Making all in directory laserjet/dpcl ---- cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c dpcl.c dpcl.c:130:1: warning: return type defaults to 'int' [-Wimplicit-int] 130 | main(agc, agv) | ^~~~ dpcl.c: In function 'main': dpcl.c:154:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 154 | init_signals(); /* interrupt handling */ | ^~~~~~~~~~~~ dpcl.c:155:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 155 | options(); /* command line options */ | ^~~~~~~ dpcl.c:156:5: warning: implicit declaration of function 'rasterlist' [-Wimplicit-function-declaration] 156 | rasterlist(); /* grab raster file data */ | ^~~~~~~~~~ dpcl.c:157:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 157 | arguments(); /* translate the input files */ | ^~~~~~~~~ dpcl.c:158:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 158 | done(); /* clean up */ | ^~~~ dpcl.c:159:5: warning: implicit declaration of function 'account' [-Wimplicit-function-declaration] 159 | account(); /* job accounting data */ | ^~~~~~~ dpcl.c: At top level: dpcl.c:167:1: warning: return type defaults to 'int' [-Wimplicit-int] 167 | init_signals() | ^~~~~~~~~~~~ dpcl.c:192:1: warning: return type defaults to 'int' [-Wimplicit-int] 192 | options() | ^~~~~~~ dpcl.c: In function 'options': dpcl.c:210:19: warning: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] 210 | while ( (ch = getopt(argc, argv, names)) != EOF ) { | ^~~~~~ | getsubopt dpcl.c:226:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 226 | out_list(optarg); | ^~~~~~~~ dpcl.c:258:25: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 258 | error(FATAL, "can't open accounting file %s", optarg); | ^~~~~ | perror dpcl.c: At top level: dpcl.c:307:1: warning: return type defaults to 'int' [-Wimplicit-int] 307 | setup() | ^~~~~ dpcl.c:330:1: warning: return type defaults to 'int' [-Wimplicit-int] 330 | arguments() | ^~~~~~~~~ dpcl.c: In function 'arguments': dpcl.c:343:9: warning: implicit declaration of function 'conv' [-Wimplicit-function-declaration] 343 | conv(stdin); | ^~~~ dpcl.c: At top level: dpcl.c:361:1: warning: return type defaults to 'int' [-Wimplicit-int] 361 | done() | ^~~~ dpcl.c: In function 'done': dpcl.c:375:9: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 375 | unlink(temp_file); | ^~~~~~ dpcl.c: At top level: dpcl.c:381:1: warning: return type defaults to 'int' [-Wimplicit-int] 381 | account() | ^~~~~~~ dpcl.c:398:1: warning: return type defaults to 'int' [-Wimplicit-int] 398 | conv(fp) | ^~~~ dpcl.c: In function 'conv': dpcl.c:416:5: warning: implicit declaration of function 'redirect' [-Wimplicit-function-declaration] 416 | redirect(-1); /* only do output after a page command */ | ^~~~~~~~ dpcl.c:442:26: warning: implicit declaration of function 'chindex'; did you mean 'rindex'? [-Wimplicit-function-declaration] 442 | put1(chindex(str)); | ^~~~~~~ | rindex dpcl.c:447:21: warning: implicit declaration of function 'oput' [-Wimplicit-function-declaration] 447 | oput(m); | ^~~~ dpcl.c:452:25: warning: implicit declaration of function 't_sf' [-Wimplicit-function-declaration] 452 | t_sf(); | ^~~~ dpcl.c:456:33: warning: implicit declaration of function 'drawline' [-Wimplicit-function-declaration] 456 | drawline(n, m); | ^~~~~~~~ dpcl.c:467:29: warning: implicit declaration of function 'drawcirc' [-Wimplicit-function-declaration] 467 | drawcirc(n); | ^~~~~~~~ dpcl.c:472:29: warning: implicit declaration of function 'drawellip' [-Wimplicit-function-declaration] 472 | drawellip(m, n); | ^~~~~~~~~ dpcl.c:477:29: warning: implicit declaration of function 'drawarc' [-Wimplicit-function-declaration] 477 | drawarc(n, m, n1, m1); | ^~~~~~~ dpcl.c:483:29: warning: implicit declaration of function 'drawwig' [-Wimplicit-function-declaration] 483 | drawwig(buf); /* WRONG!! */ | ^~~~~~~ dpcl.c:502:21: warning: implicit declaration of function 'setsize' [-Wimplicit-function-declaration] 502 | setsize(t_size(n)); | ^~~~~~~ dpcl.c:502:29: warning: implicit declaration of function 't_size'; did you mean 'dysize'? [-Wimplicit-function-declaration] 502 | setsize(t_size(n)); | ^~~~~~ | dysize dpcl.c:507:21: warning: implicit declaration of function 'setfont' [-Wimplicit-function-declaration] 507 | setfont(t_font(str)); | ^~~~~~~ dpcl.c:507:29: warning: implicit declaration of function 't_font' [-Wimplicit-function-declaration] 507 | setfont(t_font(str)); | ^~~~~~ dpcl.c:535:21: warning: implicit declaration of function 't_page' [-Wimplicit-function-declaration] 535 | t_page(n); | ^~~~~~ dpcl.c:550:21: warning: implicit declaration of function 'devcntrl' [-Wimplicit-function-declaration] 550 | devcntrl(fp); | ^~~~~~~~ dpcl.c: At top level: dpcl.c:566:1: warning: return type defaults to 'int' [-Wimplicit-int] 566 | devcntrl(fp) | ^~~~~~~~ dpcl.c: In function 'devcntrl': dpcl.c:585:17: warning: implicit declaration of function 't_init' [-Wimplicit-function-declaration] 585 | t_init(); | ^~~~~~ dpcl.c:608:17: warning: implicit declaration of function 'loadfont' [-Wimplicit-function-declaration] 608 | loadfont(n, str, str1); | ^~~~~~~~ dpcl.c: At top level: dpcl.c:627:1: warning: return type defaults to 'int' [-Wimplicit-int] 627 | loadfont(m, f, dir) | ^~~~~~~~ dpcl.c: In function 'loadfont': dpcl.c:649:10: warning: implicit declaration of function 'mountfont' [-Wimplicit-function-declaration] 649 | if ( mountfont(path, m) == -1 ) { | ^~~~~~~~~ dpcl.c: At top level: dpcl.c:704:1: warning: return type defaults to 'int' [-Wimplicit-int] 704 | loadspecial() | ^~~~~~~~~~~ dpcl.c:720:1: warning: return type defaults to 'int' [-Wimplicit-int] 720 | t_init() | ^~~~~~ dpcl.c: In function 't_init': dpcl.c:736:14: warning: implicit declaration of function 'getdesc' [-Wimplicit-function-declaration] 736 | if ( getdesc(path) == -1 ) | ^~~~~~~ dpcl.c: At top level: dpcl.c:754:1: warning: return type defaults to 'int' [-Wimplicit-int] 754 | t_page(pg) | ^~~~~~ dpcl.c:785:1: warning: return type defaults to 'int' [-Wimplicit-int] 785 | t_size(n) | ^~~~~~ dpcl.c:814:1: warning: return type defaults to 'int' [-Wimplicit-int] 814 | t_font(s) | ^~~~~~ dpcl.c:847:1: warning: return type defaults to 'int' [-Wimplicit-int] 847 | t_hmove() | ^~~~~~~ dpcl.c:869:1: warning: return type defaults to 'int' [-Wimplicit-int] 869 | t_vmove() | ^~~~~~~ dpcl.c:891:1: warning: return type defaults to 'int' [-Wimplicit-int] 891 | setsize(n) | ^~~~~~~ dpcl.c:910:1: warning: return type defaults to 'int' [-Wimplicit-int] 910 | setfont(m) | ^~~~~~~ dpcl.c:931:1: warning: return type defaults to 'int' [-Wimplicit-int] 931 | t_sf() | ^~~~ dpcl.c: In function 't_sf': dpcl.c:941:26: warning: implicit declaration of function 'mounted'; did you mean 'round'? [-Wimplicit-function-declaration] 941 | if ( tf == stdout && mounted(font) ) { | ^~~~~~~ | round dpcl.c:942:9: warning: implicit declaration of function 'getrastdata' [-Wimplicit-function-declaration] 942 | getrastdata(dwb_mount[font]->name, pstab[size-1]); | ^~~~~~~~~~~ dpcl.c:943:9: warning: implicit declaration of function 'setfamily' [-Wimplicit-function-declaration] 943 | setfamily(); | ^~~~~~~~~ dpcl.c: In function 'put1': dpcl.c:976:15: warning: implicit declaration of function 'onfont'; did you mean 't_font'? [-Wimplicit-function-declaration] 976 | if ( (i = onfont(lastc, k)) == -1 && smnt > 0 ) | ^~~~~~ | t_font dpcl.c: At top level: dpcl.c:996:1: warning: return type defaults to 'int' [-Wimplicit-int] 996 | oput(c) | ^~~~ dpcl.c: In function 'oput': dpcl.c:1019:9: warning: implicit declaration of function 'download' [-Wimplicit-function-declaration] 1019 | download(c); | ^~~~~~~~ dpcl.c: At top level: dpcl.c:1028:1: warning: return type defaults to 'int' [-Wimplicit-int] 1028 | redirect(pg) | ^~~~~~~~ dpcl.c: In function 'redirect': dpcl.c:1043:21: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 1043 | if ( pg >= 0 && in_olist(pg) == ON ) | ^~~~~~~~ dpcl.c: In function 'conv': dpcl.c:441:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 441 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ dpcl.c:446:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 446 | fscanf(fp, "%d", &m); | ^~~~~~~~~~~~~~~~~~~~ dpcl.c:461:29: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 461 | fscanf(fp, "%d %d %c", &n, &m, &n1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dpcl.c:466:29: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 466 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpcl.c:471:29: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 471 | fscanf(fp, "%d %d", &m, &n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ dpcl.c:476:29: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 476 | fscanf(fp, "%d %d %d %d", &n, &m, &n1, &m1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dpcl.c:482:29: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 482 | fgets(buf, sizeof(buf), fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ dpcl.c:489:29: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 489 | fgets(buf, sizeof(buf), fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ dpcl.c:501:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 501 | fscanf(fp, "%d", &n); /* ignore fractional sizes */ | ^~~~~~~~~~~~~~~~~~~~ dpcl.c:506:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 506 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ dpcl.c:511:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 511 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpcl.c:516:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 516 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpcl.c:524:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 524 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpcl.c:529:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 529 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpcl.c:534:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 534 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpcl.c: In function 'devcntrl': dpcl.c:581:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 581 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ dpcl.c:589:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 589 | fscanf(fp, "%s", dwb_devname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dpcl.c:599:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 599 | fscanf(fp, "%d", &res); | ^~~~~~~~~~~~~~~~~~~~~~ dpcl.c:603:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 603 | fscanf(fp, "%d %s", &n, str); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ dpcl.c:604:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 604 | fgets(buf, sizeof buf, fp); /* in case there's a filename */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ dpcl.c:613:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 613 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpcl.c:617:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 617 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c draw.c draw.c: In function 'drawline': draw.c:37:9: warning: implicit declaration of function 'setsize' [-Wimplicit-function-declaration] 37 | setsize(t_size(pstab[osize-1] / drawsize)); | ^~~~~~~ draw.c:37:17: warning: implicit declaration of function 't_size' [-Wimplicit-function-declaration] 37 | setsize(t_size(pstab[osize-1] / drawsize)); | ^~~~~~ draw.c:48:25: warning: implicit declaration of function 'put1'; did you mean 'puts'? [-Wimplicit-function-declaration] 48 | put1(drawdot); | ^~~~ | puts draw.c: At top level: draw.c:104:1: warning: return type defaults to 'int' [-Wimplicit-int] 104 | drawwig(s) /* draw wiggly line */ | ^~~~~~~ draw.c: In function 'drawwig': draw.c:117:24: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 117 | x[N] = atoi(temp); | ^~~~ draw.c:131:28: warning: implicit declaration of function 'dist' [-Wimplicit-function-declaration] 131 | numdots = (dist(x[i],y[i], x[i+1],y[i+1]) + dist(x[i+1],y[i+1], x[i+2],y[i+2])) / 2; | ^~~~ draw.c: At top level: draw.c:170:1: warning: return type defaults to 'int' [-Wimplicit-int] 170 | drawcirc(d) | ^~~~~~~~ draw.c: In function 'drawcirc': draw.c:170:1: warning: type of 'd' defaults to 'int' [-Wimplicit-int] draw.c:176:9: warning: implicit declaration of function 'conicarc' [-Wimplicit-function-declaration] 176 | conicarc(hpos + d/2, -vpos, hpos, -vpos, hpos, -vpos, d/2, d/2); | ^~~~~~~~ draw.c: At top level: draw.c:181:1: warning: return type defaults to 'int' [-Wimplicit-int] 181 | dist(x1, y1, x2, y2) /* integer distance from x1,y1 to x2,y2 */ | ^~~~ draw.c: In function 'dist': draw.c:181:1: warning: type of 'x1' defaults to 'int' [-Wimplicit-int] draw.c:181:1: warning: type of 'y1' defaults to 'int' [-Wimplicit-int] draw.c:181:1: warning: type of 'x2' defaults to 'int' [-Wimplicit-int] draw.c:181:1: warning: type of 'y2' defaults to 'int' [-Wimplicit-int] draw.c: At top level: draw.c:190:1: warning: return type defaults to 'int' [-Wimplicit-int] 190 | drawarc(dx1, dy1, dx2, dy2) | ^~~~~~~ draw.c: In function 'drawarc': draw.c:190:1: warning: type of 'dx1' defaults to 'int' [-Wimplicit-int] draw.c:190:1: warning: type of 'dy1' defaults to 'int' [-Wimplicit-int] draw.c:190:1: warning: type of 'dx2' defaults to 'int' [-Wimplicit-int] draw.c:190:1: warning: type of 'dy2' defaults to 'int' [-Wimplicit-int] draw.c: At top level: draw.c:202:1: warning: return type defaults to 'int' [-Wimplicit-int] 202 | drawellip(a, b) | ^~~~~~~~~ draw.c: In function 'drawellip': draw.c:202:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] draw.c:202:1: warning: type of 'b' defaults to 'int' [-Wimplicit-int] draw.c: At top level: draw.c:215:1: warning: return type defaults to 'int' [-Wimplicit-int] 215 | conicarc(x, y, x0, y0, x1, y1, a, b) | ^~~~~~~~ draw.c: In function 'conicarc': draw.c:215:1: warning: type of 'x' defaults to 'int' [-Wimplicit-int] draw.c:215:1: warning: type of 'y' defaults to 'int' [-Wimplicit-int] draw.c:215:1: warning: type of 'x0' defaults to 'int' [-Wimplicit-int] draw.c:215:1: warning: type of 'y0' defaults to 'int' [-Wimplicit-int] draw.c:215:1: warning: type of 'x1' defaults to 'int' [-Wimplicit-int] draw.c:215:1: warning: type of 'y1' defaults to 'int' [-Wimplicit-int] draw.c:215:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] draw.c:215:1: warning: type of 'b' defaults to 'int' [-Wimplicit-int] draw.c:366:25: warning: implicit declaration of function 'putdot' [-Wimplicit-function-declaration] 366 | putdot((int)xc, (int)yc); | ^~~~~~ draw.c: At top level: draw.c:423:1: warning: return type defaults to 'int' [-Wimplicit-int] 423 | putdot(x, y) | ^~~~~~ draw.c: In function 'putdot': draw.c:423:1: warning: type of 'x' defaults to 'int' [-Wimplicit-int] draw.c:423:1: warning: type of 'y' defaults to 'int' [-Wimplicit-int] cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c font.c font.c:37:1: warning: return type defaults to 'int' [-Wimplicit-int] 37 | getdesc(path) | ^~~~~~~ font.c: In function 'getdesc': font.c:74:17: warning: implicit declaration of function 'chadd' [-Wimplicit-function-declaration] 74 | chadd(buf); | ^~~~~ font.c: At top level: font.c:87:1: warning: return type defaults to 'int' [-Wimplicit-int] 87 | getfont(path, fpos) | ^~~~~~~ font.c: In function 'getfont': font.c:122:9: warning: implicit declaration of function 'freefonts' [-Wimplicit-function-declaration] 122 | freefonts(); | ^~~~~~~~~ font.c:130:13: warning: implicit declaration of function 'release' [-Wimplicit-function-declaration] 130 | release(fpos->name); | ^~~~~~~ font.c:142:27: warning: implicit declaration of function 'chindex'; did you mean 'rindex'? [-Wimplicit-function-declaration] 142 | if ( (n = chindex(ch)) == -1 ) | ^~~~~~~ | rindex font.c: At top level: font.c:205:1: warning: return type defaults to 'int' [-Wimplicit-int] 205 | mountfont(path, m) | ^~~~~~~~~ font.c: In function 'mountfont': font.c:234:34: warning: implicit declaration of function 'findfont' [-Wimplicit-function-declaration] 234 | dwb_mount[m] = fpos = &fonts[findfont(path)]; | ^~~~~~~~ font.c: At top level: font.c:242:1: warning: return type defaults to 'int' [-Wimplicit-int] 242 | freefonts() | ^~~~~~~~~ font.c:266:1: warning: return type defaults to 'int' [-Wimplicit-int] 266 | findfont(path) | ^~~~~~~~ font.c: In function 'findfont': font.c:272:17: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int] 272 | register n; | ^ font.c:281:15: warning: implicit declaration of function 'hash' [-Wimplicit-function-declaration] 281 | for ( n = hash(path, MAXFONTS+2); fonts[n].state != NEWFONT; n = (n+1) % (MAXFONTS+2) ) | ^~~~ font.c: At top level: font.c:290:1: warning: return type defaults to 'int' [-Wimplicit-int] 290 | mounted(m) | ^~~~~~~ font.c:308:1: warning: return type defaults to 'int' [-Wimplicit-int] 308 | onfont(c, m) | ^~~~~~ font.c:346:1: warning: return type defaults to 'int' [-Wimplicit-int] 346 | chwidth(n, m) | ^~~~~~~ font.c:366:1: warning: return type defaults to 'int' [-Wimplicit-int] 366 | chcode(n, m) | ^~~~~~ font.c:386:1: warning: return type defaults to 'int' [-Wimplicit-int] 386 | chindex(s) | ^~~~~~~ font.c: In function 'chindex': font.c:392:17: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 392 | register i; | ^ font.c: At top level: font.c:410:1: warning: return type defaults to 'int' [-Wimplicit-int] 410 | chadd(s) | ^~~~~ font.c: In function 'chadd': font.c:416:17: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 416 | register i; | ^ font.c:426:9: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 426 | error(FATAL, "out of table space adding character %s", s); | ^~~~~ | perror font.c: At top level: font.c:457:1: warning: return type defaults to 'int' [-Wimplicit-int] 457 | hash(s, l) | ^~~~ font.c: In function 'hash': font.c:464:17: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 464 | register i; | ^ font.c: At top level: font.c:531:1: warning: return type defaults to 'int' [-Wimplicit-int] 531 | release(ptr) | ^~~~~~~ font.c:550:1: warning: return type defaults to 'int' [-Wimplicit-int] 550 | dumpmount(m) | ^~~~~~~~~ font.c: In function 'dumpmount': font.c:563:9: warning: implicit declaration of function 'dumpfont'; did you mean 'dumpmount'? [-Wimplicit-function-declaration] 563 | dumpfont((dwb_mount[m] - &fonts[0])); | ^~~~~~~~ | dumpmount font.c: At top level: font.c:570:1: warning: return type defaults to 'int' [-Wimplicit-int] 570 | dumpfont(n) | ^~~~~~~~ font.c: In function 'getdesc': font.c:59:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 59 | fscanf(fp, "%d", &devres); | ^~~~~~~~~~~~~~~~~~~~~~~~~ font.c:61:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 61 | fscanf(fp, "%d", &unitwidth); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ font.c:67:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 67 | fscanf(fp, "%d", &mlimit); | ^~~~~~~~~~~~~~~~~~~~~~~~~ font.c:69:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 69 | fscanf(fp, "%d", &nfonts); | ^~~~~~~~~~~~~~~~~~~~~~~~~ font.c:71:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 71 | fscanf(fp, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~ font.c: In function 'getfont': font.c:131:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 131 | fscanf(fin, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~~ font.c:135:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 135 | fscanf(fin, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~~ font.c:138:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 138 | fscanf(fin, "%s", ch); | ^~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c glob.c cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c misc.c misc.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int] 20 | out_list(str) | ^~~~~~~~ misc.c: In function 'out_list': misc.c:36:24: warning: implicit declaration of function 'str_convert' [-Wimplicit-function-declaration] 36 | start = stop = str_convert(&str, 0); | ^~~~~~~~~~~ misc.c:42:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 42 | error(FATAL, "illegal range %d-%d", start, stop); | ^~~~~ | perror misc.c: At top level: misc.c:56:1: warning: return type defaults to 'int' [-Wimplicit-int] 56 | in_olist(num) | ^~~~~~~~ misc.c:84:1: warning: return type defaults to 'int' [-Wimplicit-int] 84 | cat(file) | ^~~ misc.c: In function 'cat': misc.c:107:22: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 107 | while ( (count = read(fd_in, buf, sizeof(buf))) > 0 ) | ^~~~ | fread misc.c:108:9: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 108 | write(fd_out, buf, count); | ^~~~~ | fwrite misc.c:110:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 110 | close(fd_in); | ^~~~~ | pclose misc.c: At top level: misc.c:117:1: warning: return type defaults to 'int' [-Wimplicit-int] 117 | putint(n, fp) | ^~~~~~ misc.c:138:1: warning: return type defaults to 'int' [-Wimplicit-int] 138 | getint(fp) | ^~~~~~ misc.c:165:1: warning: return type defaults to 'int' [-Wimplicit-int] 165 | str_convert(str, err) | ^~~~~~~~~~~ misc.c:194:1: warning: return type defaults to 'int' [-Wimplicit-int] 194 | error(kind, mesg, a1, a2, a3) | ^~~~~ misc.c: In function 'error': misc.c:222:13: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 222 | unlink(temp_file); | ^~~~~~ cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c rast.c rast.c:43:1: warning: return type defaults to 'int' [-Wimplicit-int] 43 | getfamdata(f, s) | ^~~~~~~~~~ rast.c:69:1: warning: return type defaults to 'int' [-Wimplicit-int] 69 | getrastdata(f, s) | ^~~~~~~~~~~ rast.c: In function 'getrastdata': rast.c:87:9: warning: implicit declaration of function 'mapsize' [-Wimplicit-function-declaration] 87 | s = mapsize(f, s); /* best available size */ | ^~~~~~~ rast.c:94:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 94 | error(FATAL, "job uses too many raster files"); | ^~~~~ | perror rast.c:105:9: warning: implicit declaration of function 'readrastfile' [-Wimplicit-function-declaration] 105 | readrastfile(f, s); | ^~~~~~~~~~~~ rast.c:108:9: warning: implicit declaration of function 'getoffsets' [-Wimplicit-function-declaration] 108 | getoffsets(fam); | ^~~~~~~~~~ rast.c: At top level: rast.c:114:1: warning: return type defaults to 'int' [-Wimplicit-int] 114 | readrastfile(f, s) | ^~~~~~~~~~~~ rast.c: In function 'readrastfile': rast.c:148:14: warning: implicit declaration of function 'access' [-Wimplicit-function-declaration] 148 | if ( access(name, 04) != 0 ) { /* rotate the portrait mode file */ | ^~~~~~ rast.c:150:13: warning: implicit declaration of function 'rotate' [-Wimplicit-function-declaration] 150 | rotate(name); | ^~~~~~ rast.c:155:16: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] 155 | if ( (fd = open(name, 0)) == -1 ) | ^~~~ | popen rast.c:164:10: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 164 | if ( read(fd, p, buf.st_size) != buf.st_size ) | ^~~~ | fread rast.c:174:10: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 174 | if ( write(fileno(tf), p, size) != size ) | ^~~~~ | fwrite rast.c:181:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 181 | close(fd); | ^~~~~ | pclose rast.c: At top level: rast.c:190:1: warning: return type defaults to 'int' [-Wimplicit-int] 190 | getoffsets(f) | ^~~~~~~~~~ rast.c: In function 'rastalloc': rast.c:243:14: warning: implicit declaration of function 'freerast' [-Wimplicit-function-declaration] 243 | if ( freerast(1) == 0 ) | ^~~~~~~~ rast.c: At top level: rast.c:251:1: warning: return type defaults to 'int' [-Wimplicit-int] 251 | freerast(count) | ^~~~~~~~ rast.c:280:1: warning: return type defaults to 'int' [-Wimplicit-int] 280 | rasterlist() | ^~~~~~~~~~ rast.c:313:1: warning: return type defaults to 'int' [-Wimplicit-int] 313 | setfamily() | ^~~~~~~~~ rast.c:332:1: warning: return type defaults to 'int' [-Wimplicit-int] 332 | mapsize(f, s) | ^~~~~~~ rast.c:405:1: warning: return type defaults to 'int' [-Wimplicit-int] 405 | checkbit(p, n) | ^~~~~~~~ rast.c:424:1: warning: return type defaults to 'int' [-Wimplicit-int] 424 | setbit(p, n) | ^~~~~~ rast.c:443:1: warning: return type defaults to 'int' [-Wimplicit-int] 443 | dumpbitmap(bptr, height, width, rwid) | ^~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c rotate.c rotate.c:21:1: warning: return type defaults to 'int' [-Wimplicit-int] 21 | rotate(name) | ^~~~~~ rotate.c: In function 'rotate': rotate.c:53:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 53 | error(FATAL, "can't generate temporary file name"); | ^~~~~ | perror rotate.c:78:20: warning: implicit declaration of function 'getint'; did you mean 'getenv'? [-Wimplicit-function-declaration] 78 | oloffset = getint(fp_in); /* need the rest of the header */ | ^~~~~~ | getenv rotate.c:112:22: warning: implicit declaration of function 'checkbit' [-Wimplicit-function-declaration] 112 | if ( checkbit(obptr, orwid * j * BYTE + i) ) { | ^~~~~~~~ rotate.c:115:21: warning: implicit declaration of function 'setbit'; did you mean 'setbuf'? [-Wimplicit-function-declaration] 115 | setbit(bptr, rwid * y * BYTE + x); | ^~~~~~ | setbuf rotate.c:130:9: warning: implicit declaration of function 'putint'; did you mean 'putenv'? [-Wimplicit-function-declaration] 130 | putint(-otoffset, fp_out); | ^~~~~~ | putenv rotate.c:67:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 67 | fread(bptr, 1, 26, fp_in); /* first read the font header */ | ^~~~~~~~~~~~~~~~~~~~~~~~~ rotate.c:75:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 75 | fscanf(fp_in, "\033(s%*dW"); /* skip the next escape code */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ rotate.c:76:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 76 | fread(bptr, 1, 6, fp_in); /* and first six bytes in the header */ | ^~~~~~~~~~~~~~~~~~~~~~~~ rotate.c:104:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 104 | fread(obptr, 1, omapsize, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -I/usr/pkg/include -c tempnam.c cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o dpcl dpcl.o draw.o font.o glob.o misc.o rast.o rotate.o tempnam.o -lm /bin/ld: rotate.o: in function `rotate': rotate.c:(.text+0x432): warning: the use of `tempnam' is dangerous, better use `mkstemp' ---- Making all in directory laserjet/rastpcl ---- ---- Making all in directory macros/man ---- ---- Making all in directory macros/mcolor ---- ---- Making all in directory macros/mcs ---- ---- Making all in directory macros/mm ---- ---- Making all in directory macros/mpictures ---- ---- Making all in directory macros/mps ---- ---- Making all in directory macros/ms ---- ---- Making all in directory macros/msafe ---- ---- Making all in directory macros/mv ---- ---- Making all in directory macros/mview ---- ---- Making all in directory misc/checkdoc ---- cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o checkdoc checkdoc.c checkdoc.c:205:1: warning: return type defaults to 'int' [-Wimplicit-int] 205 | main(argc,argv) | ^~~~ checkdoc.c: In function 'main': checkdoc.c:318:41: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 318 | close(fp); | ^~~~~ | pclose checkdoc.c: At top level: checkdoc.c:373:1: warning: return type defaults to 'int' [-Wimplicit-int] 373 | error(msg) /* Display an error message */ | ^~~~~ checkdoc.c:380:1: warning: return type defaults to 'int' [-Wimplicit-int] 380 | warning(msg) /* Display a warning message */ | ^~~~~~~ checkdoc.c: In function 'tbl_ck': checkdoc.c:1986:33: warning: implicit declaration of function 'findcol' [-Wimplicit-function-declaration] 1986 | nr_cols=findcol(&p); | ^~~~~~~ checkdoc.c: At top level: checkdoc.c:2121:1: warning: return type defaults to 'int' [-Wimplicit-int] 2121 | findcol(nextp) | ^~~~~~~ checkdoc.c: In function 'findcol': checkdoc.c:2125:18: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 2125 | register c; | ^ checkdoc.c: At top level: checkdoc.c:2883:1: warning: return type defaults to 'int' [-Wimplicit-int] 2883 | str_nr_test(p) | ^~~~~~~~~~~ ---- Making all in directory misc/col ---- cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o col col.c col.c:33:1: warning: return type defaults to 'int' [-Wimplicit-int] 33 | main (argc, argv) | ^~~~ col.c: In function 'main': col.c:89:41: warning: implicit declaration of function 'outc'; did you mean 'putc'? [-Wimplicit-function-declaration] 89 | outc(ESC); | ^~~~ | putc col.c:105:25: warning: implicit declaration of function 'incr' [-Wimplicit-function-declaration] 105 | incr(); | ^~~~ col.c:117:33: warning: implicit declaration of function 'decr' [-Wimplicit-function-declaration] 117 | decr(); | ^~~~ col.c:207:25: warning: implicit declaration of function 'emit'; did you mean 'exit'? [-Wimplicit-function-declaration] 207 | emit (page[(mustwr+i) % PL], mustwr+i-PL); | ^~~~ | exit col.c: At top level: col.c:212:1: warning: return type defaults to 'int' [-Wimplicit-int] 212 | outc (c) | ^~~~ col.c:293:1: warning: return type defaults to 'int' [-Wimplicit-int] 293 | store (lno) | ^~~~~ col.c: In function 'store': col.c:293:1: warning: type of 'lno' defaults to 'int' [-Wimplicit-int] col.c: At top level: col.c:306:1: warning: return type defaults to 'int' [-Wimplicit-int] 306 | fetch(lno) | ^~~~~ col.c: In function 'fetch': col.c:306:1: warning: type of 'lno' defaults to 'int' [-Wimplicit-int] col.c: At top level: col.c:319:1: warning: return type defaults to 'int' [-Wimplicit-int] 319 | emit (s, lineno) | ^~~~ col.c:385:1: warning: return type defaults to 'int' [-Wimplicit-int] 385 | incr() | ^~~~ col.c:399:1: warning: return type defaults to 'int' [-Wimplicit-int] 399 | decr() | ^~~~ ---- Making all in directory misc/diffmk ---- cp diffmk.sh diffmk; chmod 755 diffmk ---- Making all in directory misc/dsplit ---- cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o dsplit dsplit.c dsplit.c:70:1: warning: return type defaults to 'int' [-Wimplicit-int] 70 | main(agc, agv) | ^~~~ dsplit.c: In function 'main': dsplit.c:89:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 89 | options(); /* read the command line options */ | ^~~~~~~ dsplit.c:90:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 90 | arguments(); /* translate the input files */ | ^~~~~~~~~ dsplit.c: At top level: dsplit.c:96:1: warning: return type defaults to 'int' [-Wimplicit-int] 96 | options() | ^~~~~~~ dsplit.c: In function 'options': dsplit.c:112:19: warning: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] 112 | while ( (ch = getopt(argc, argv, names)) != EOF ) { | ^~~~~~ | getsubopt dsplit.c:139:21: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 139 | error(FATAL, ""); | ^~~~~ | perror dsplit.c: At top level: dsplit.c:157:1: warning: return type defaults to 'int' [-Wimplicit-int] 157 | arguments() | ^~~~~~~~~ dsplit.c: In function 'arguments': dsplit.c:172:9: warning: implicit declaration of function 'conv' [-Wimplicit-function-declaration] 172 | conv(stdin); | ^~~~ dsplit.c: At top level: dsplit.c:191:1: warning: return type defaults to 'int' [-Wimplicit-int] 191 | conv(fp) | ^~~~ dsplit.c: In function 'conv': dsplit.c:208:5: warning: implicit declaration of function 'file_init' [-Wimplicit-function-declaration] 208 | file_init(); /* get ready for the next file */ | ^~~~~~~~~ dsplit.c:213:13: warning: implicit declaration of function 'put_char'; did you mean 'putchar'? [-Wimplicit-function-declaration] 213 | put_char(ch, fp_out); | ^~~~~~~~ | putchar dsplit.c:247:25: warning: implicit declaration of function 'get_int'; did you mean 'getline'? [-Wimplicit-function-declaration] 247 | get_int(fp); | ^~~~~~~ | getline dsplit.c:265:25: warning: implicit declaration of function 'devcntrl' [-Wimplicit-function-declaration] 265 | devcntrl(fp); | ^~~~~~~~ dsplit.c:269:25: warning: implicit declaration of function 'new_page' [-Wimplicit-function-declaration] 269 | new_page(); | ^~~~~~~~ dsplit.c: At top level: dsplit.c:297:1: warning: return type defaults to 'int' [-Wimplicit-int] 297 | file_init() | ^~~~~~~~~ dsplit.c: In function 'out_file': dsplit.c:354:12: warning: implicit declaration of function 'access' [-Wimplicit-function-declaration] 354 | if ( ! access(filename, 00) ) /* don't clobber an existing file? */ | ^~~~~~ dsplit.c: At top level: dsplit.c:366:1: warning: return type defaults to 'int' [-Wimplicit-int] 366 | devcntrl(fp) | ^~~~~~~~ dsplit.c: In function 'devcntrl': dsplit.c:406:17: warning: implicit declaration of function 'loadfont' [-Wimplicit-function-declaration] 406 | loadfont(num, name); | ^~~~~~~~ dsplit.c:422:5: warning: implicit declaration of function 'put_string' [-Wimplicit-function-declaration] 422 | put_string(line, fp_out); | ^~~~~~~~~~ dsplit.c: At top level: dsplit.c:428:1: warning: return type defaults to 'int' [-Wimplicit-int] 428 | loadfont(pos, name) | ^~~~~~~~ dsplit.c:456:1: warning: return type defaults to 'int' [-Wimplicit-int] 456 | new_page() | ^~~~~~~~ dsplit.c: In function 'new_page': dsplit.c:469:9: warning: implicit declaration of function 'end_section' [-Wimplicit-function-declaration] 469 | end_section(); | ^~~~~~~~~~~ dsplit.c:470:9: warning: implicit declaration of function 'new_section' [-Wimplicit-function-declaration] 470 | new_section(); | ^~~~~~~~~~~ dsplit.c: At top level: dsplit.c:477:1: warning: return type defaults to 'int' [-Wimplicit-int] 477 | end_section() | ^~~~~~~~~~~ dsplit.c:505:1: warning: return type defaults to 'int' [-Wimplicit-int] 505 | new_section() | ^~~~~~~~~~~ dsplit.c:550:1: warning: return type defaults to 'int' [-Wimplicit-int] 550 | get_int(fp_in) | ^~~~~~~ dsplit.c:580:1: warning: return type defaults to 'int' [-Wimplicit-int] 580 | put_char(ch, fp) | ^~~~~~~~ dsplit.c:603:1: warning: return type defaults to 'int' [-Wimplicit-int] 603 | put_string(str, fp) | ^~~~~~~~~~ dsplit.c:624:1: warning: return type defaults to 'int' [-Wimplicit-int] 624 | error(kind, mesg, a1, a2) | ^~~~~ dsplit.c: In function 'devcntrl': dsplit.c:384:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 384 | fgets(line, sizeof(line), fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ---- Making all in directory misc/dwbv ---- ---- Making all in directory misc/gc2pic ---- cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c aligned.c aligned.c: In function 'range': aligned.c:44:14: warning: implicit declaration of function 'clk' [-Wimplicit-function-declaration] 44 | if ( clk(pt,pc) ) | ^~~ aligned.c:46:14: warning: implicit declaration of function 'cclk' [-Wimplicit-function-declaration] 46 | if ( cclk(pt,pcc) ) | ^~~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c boxes.c boxes.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int] 3 | boxes() | ^~~~~ boxes.c: In function 'boxes': boxes.c:12:22: warning: implicit declaration of function 'horz' [-Wimplicit-function-declaration] 12 | if ( horz(top) ) | ^~~~ boxes.c:15:38: warning: implicit declaration of function 'vert' [-Wimplicit-function-declaration] 15 | if ( vert(left) && eqpt(top->begin,left->begin) ) | ^~~~ boxes.c:15:54: warning: implicit declaration of function 'eqpt' [-Wimplicit-function-declaration] 15 | if ( vert(left) && eqpt(top->begin,left->begin) ) | ^~~~ boxes.c: At top level: boxes.c:54:1: warning: return type defaults to 'int' [-Wimplicit-int] 54 | eqpt(p,q) | ^~~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c globals.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c main.c main.c:14:1: warning: return type defaults to 'int' [-Wimplicit-int] 14 | main(argc,argv) | ^~~~ main.c: In function 'main': main.c:25:28: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 25 | if ( i < argc && strcmp(argv[i],"+s") == 0 ) | ^~~~~~ main.c:13:1: note: include '<string.h>' or provide a declaration of 'strcmp' 12 | # include "structs.h" +++ |+#include <string.h> 13 | main.c:31:17: warning: implicit declaration of function 'process' [-Wimplicit-function-declaration] 31 | process("-") ; | ^~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c out.c out.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | out() | ^~~ out.c: In function 'out': out.c:9:9: warning: implicit declaration of function 'boxes' [-Wimplicit-function-declaration] 9 | boxes() ; | ^~~~~ out.c: In function 'revout': out.c:19:9: warning: implicit declaration of function 'draw' [-Wimplicit-function-declaration] 19 | draw(object) ; | ^~~~ out.c: In function 'bounds': out.c:80:33: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 80 | error("(internal) unknown object\n") ; | ^~~~~ | perror out.c: At top level: out.c:86:1: warning: return type defaults to 'int' [-Wimplicit-int] 86 | draw(object) | ^~~~ out.c: In function 'draw': out.c:101:25: warning: implicit declaration of function 'point'; did you mean 'printf'? [-Wimplicit-function-declaration] 101 | point(object->begin) ; | ^~~~~ | printf out.c: At top level: out.c:149:1: warning: return type defaults to 'int' [-Wimplicit-int] 149 | point(pnt) | ^~~~~ out.c:174:1: warning: return type defaults to 'int' [-Wimplicit-int] 174 | free_all() | ^~~~~~~~ out.c: In function 'free_all': out.c:182:25: warning: implicit declaration of function 'sm_free' [-Wimplicit-function-declaration] 182 | sm_free(object->text) ; | ^~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c process.c process.c:13:1: warning: return type defaults to 'int' [-Wimplicit-int] 13 | process(name) | ^~~~~~~ process.c: In function 'process': process.c:34:25: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 34 | error("can't open %s\n",name) ; | ^~~~~ | perror process.c:38:17: warning: implicit declaration of function 'get_line'; did you mean 'getline'? [-Wimplicit-function-declaration] 38 | while ( get_line(buf) != EOF ) | ^~~~~~~~ | getline process.c:44:25: warning: implicit declaration of function 'conv_init' [-Wimplicit-function-declaration] 44 | conv_init(p,convbuf) ; | ^~~~~~~~~ process.c:57:41: warning: implicit declaration of function 'out' [-Wimplicit-function-declaration] 57 | out() ; | ^~~ process.c:64:41: warning: implicit declaration of function 'free_all' [-Wimplicit-function-declaration] 64 | free_all() ; | ^~~~~~~~ process.c:69:41: warning: implicit declaration of function 'write_line' [-Wimplicit-function-declaration] 69 | write_line(p) ; | ^~~~~~~~~~ process.c: At top level: process.c:236:1: warning: return type defaults to 'int' [-Wimplicit-int] 236 | write_line(p) | ^~~~~~~~~~ process.c: In function 'write_line': process.c:334:17: warning: implicit declaration of function 'save_sym' [-Wimplicit-function-declaration] 334 | save_sym(obuf,index,j,line_num) ; | ^~~~~~~~ process.c: At top level: process.c:339:1: warning: return type defaults to 'int' [-Wimplicit-int] 339 | conv_init(p,convbuf) | ^~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c rules.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c save_sym.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c sm_mem.c sm_mem.c: In function 'sm_alloc': sm_mem.c:12:17: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 12 | error("out of memory\n") ; | ^~~~~ | perror sm_mem.c: At top level: sm_mem.c:27:1: warning: return type defaults to 'int' [-Wimplicit-int] 27 | sm_free(p) | ^~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c util.c util.c:4:1: warning: return type defaults to 'int' [-Wimplicit-int] 4 | error(msg,v) | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o gc2pic aligned.o boxes.o globals.o main.o out.o process.o rules.o save_sym.o sm_mem.o util.o ---- Making all in directory misc/hyphen ---- cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o hyphen hyphen.c hyphen.c:16:1: warning: return type defaults to 'int' [-Wimplicit-int] 16 | main(argc,argv) | ^~~~ hyphen.c: In function 'main': hyphen.c:24:21: warning: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] 24 | while ((r = getopt(argc,argv,"")) != EOF) { | ^~~~~~ | getsubopt hyphen.c:39:38: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] 39 | if ((ifile = open(*argv, 0)) < 0) { | ^~~~ | popen hyphen.c:47:25: warning: implicit declaration of function 'get'; did you mean 'getw'? [-Wimplicit-function-declaration] 47 | cont: while((b[++i] = get(ifile)) != 0) | ^~~ | getw hyphen.c: At top level: hyphen.c:81:1: warning: return type defaults to 'int' [-Wimplicit-int] 81 | get(ifile) | ^~~ hyphen.c: In function 'get': hyphen.c:87:20: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 87 | if(nread = read(ifile,buf,BUFSIZ)) | ^~~~ | fread ---- Making all in directory misc/latin1 ---- cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o atoL1 atoL1.c atoL1.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int] 3 | main() { /* filter escaped 7 bit ASCII to 8 bit Latin-1 */ | ^~~~ cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o L1toa L1toa.c L1toa.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int] 3 | main() { /* filter 8 bit Latin-1 to escaped 7 bit ASCII */ | ^~~~ cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o atoL1sim atoL1sim.c atoL1sim.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int] 2 | main() { /* filter escaped 7 bit ASCII to overstruck ASCII */ | ^~~~ ---- Making all in directory misc/mm ---- cp mm.sh mm; chmod 755 mm ---- Making all in directory misc/mmt ---- cp mmt.sh mmt; chmod 755 mmt cp mmt.sh mvt; chmod 755 mvt ---- Making all in directory misc/tc ---- cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c tc.c tc.c:96:1: warning: return type defaults to 'int' [-Wimplicit-int] 96 | main(argc, argv) | ^~~~ tc.c: In function 'main': tc.c:96:1: warning: type of 'argc' defaults to 'int' [-Wimplicit-int] tc.c:116:25: warning: implicit declaration of function 'outlist' [-Wimplicit-function-declaration] 116 | outlist(&argv[1][2]); | ^~~~~~~ tc.c:131:17: warning: implicit declaration of function 'conv' [-Wimplicit-function-declaration] 131 | conv(stdin); | ^~~~ tc.c:137:33: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 137 | error(FATAL, "can't open %s", *argv); | ^~~~~ | perror tc.c: At top level: tc.c:144:1: warning: return type defaults to 'int' [-Wimplicit-int] 144 | outlist(s) /* process list of page numbers to be printed */ | ^~~~~~~ tc.c:180:1: warning: return type defaults to 'int' [-Wimplicit-int] 180 | in_olist(n) /* is n in olist? */ | ^~~~~~~~ tc.c:193:1: warning: return type defaults to 'int' [-Wimplicit-int] 193 | conv(fp) | ^~~~ tc.c: In function 'conv': tc.c:208:25: warning: implicit declaration of function 't_push' [-Wimplicit-function-declaration] 208 | t_push(); | ^~~~~~ tc.c:211:25: warning: implicit declaration of function 't_pop' [-Wimplicit-function-declaration] 211 | t_pop(); | ^~~~~ tc.c:216:25: warning: implicit declaration of function 'hmot' [-Wimplicit-function-declaration] 216 | hmot((c-'0')*10 + getc(fp)-'0'); | ^~~~ tc.c:237:33: warning: implicit declaration of function 'drawline' [-Wimplicit-function-declaration] 237 | drawline(n, m, "."); | ^~~~~~~~ tc.c:241:33: warning: implicit declaration of function 'drawcirc' [-Wimplicit-function-declaration] 241 | drawcirc(n); | ^~~~~~~~ tc.c:245:33: warning: implicit declaration of function 'drawellip' [-Wimplicit-function-declaration] 245 | drawellip(m, n); | ^~~~~~~~~ tc.c:249:33: warning: implicit declaration of function 'drawarc' [-Wimplicit-function-declaration] 249 | drawarc(n, m, n1, m1); | ^~~~~~~ tc.c:252:33: warning: implicit declaration of function 'drawwig' [-Wimplicit-function-declaration] 252 | drawwig(buf+1); | ^~~~~~~ tc.c:261:33: warning: implicit declaration of function 't_size' [-Wimplicit-function-declaration] 261 | setsize(t_size(n)); | ^~~~~~ tc.c:265:25: warning: implicit declaration of function 'setfont' [-Wimplicit-function-declaration] 265 | setfont(t_font(str)); | ^~~~~~~ tc.c:265:33: warning: implicit declaration of function 't_font' [-Wimplicit-function-declaration] 265 | setfont(t_font(str)); | ^~~~~~ tc.c:276:25: warning: implicit declaration of function 'hgoto' [-Wimplicit-function-declaration] 276 | hgoto(k); | ^~~~~ tc.c:293:25: warning: implicit declaration of function 'vgoto' [-Wimplicit-function-declaration] 293 | vgoto(n); | ^~~~~ tc.c:297:25: warning: implicit declaration of function 'vmot' [-Wimplicit-function-declaration] 297 | vmot(n); | ^~~~ tc.c:306:25: warning: implicit declaration of function 't_newline' [-Wimplicit-function-declaration] 306 | t_newline(); | ^~~~~~~~~ tc.c:314:25: warning: implicit declaration of function 'devcntrl' [-Wimplicit-function-declaration] 314 | devcntrl(fp); | ^~~~~~~~ tc.c: At top level: tc.c:325:1: warning: return type defaults to 'int' [-Wimplicit-int] 325 | devcntrl(fp) /* interpret device control functions */ | ^~~~~~~~ tc.c: In function 'devcntrl': tc.c:334:17: warning: implicit declaration of function 'fileinit'; did you mean 'fileno'? [-Wimplicit-function-declaration] 334 | fileinit(); | ^~~~~~~~ | fileno tc.c:335:17: warning: implicit declaration of function 't_init' [-Wimplicit-function-declaration] 335 | t_init(0); | ^~~~~~ tc.c:341:17: warning: implicit declaration of function 't_trailer' [-Wimplicit-function-declaration] 341 | t_trailer(); | ^~~~~~~~~ tc.c:344:17: warning: implicit declaration of function 't_reset' [-Wimplicit-function-declaration] 344 | t_reset('p'); | ^~~~~~~ tc.c:354:17: warning: implicit declaration of function 'loadfont' [-Wimplicit-function-declaration] 354 | loadfont(n, str); | ^~~~~~~~ tc.c: At top level: tc.c:361:1: warning: return type defaults to 'int' [-Wimplicit-int] 361 | fileinit() /* read in font and code files, etc. */ | ^~~~~~~~ tc.c:365:1: warning: return type defaults to 'int' [-Wimplicit-int] 365 | fontprint(i) /* debugging print of font i (0,...) */ | ^~~~~~~~~ tc.c: In function 'fontprint': tc.c:365:1: warning: type of 'i' defaults to 'int' [-Wimplicit-int] tc.c: At top level: tc.c:369:1: warning: return type defaults to 'int' [-Wimplicit-int] 369 | loadcode(n, nw) /* load codetab on position n (0...); #chars is nw */ | ^~~~~~~~ tc.c:374:1: warning: return type defaults to 'int' [-Wimplicit-int] 374 | loadfont(n, s) /* load font info for font s on position n (1...) */ | ^~~~~~~~ tc.c:386:1: warning: return type defaults to 'int' [-Wimplicit-int] 386 | error(f, s, a1, a2, a3, a4, a5, a6, a7) | ^~~~~ tc.c: In function 'error': tc.c:386:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] tc.c:386:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] tc.c:386:1: warning: type of 'a2' defaults to 'int' [-Wimplicit-int] tc.c:386:1: warning: type of 'a3' defaults to 'int' [-Wimplicit-int] tc.c:386:1: warning: type of 'a4' defaults to 'int' [-Wimplicit-int] tc.c:386:1: warning: type of 'a5' defaults to 'int' [-Wimplicit-int] tc.c:386:1: warning: type of 'a6' defaults to 'int' [-Wimplicit-int] tc.c:386:1: warning: type of 'a7' defaults to 'int' [-Wimplicit-int] tc.c:395:17: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 395 | done(2); | ^~~~ tc.c:100:13: note: previous declaration of 'done' with type 'int()' 100 | int done(); | ^~~~ tc.c: At top level: tc.c:429:1: warning: return type defaults to 'int' [-Wimplicit-int] 429 | t_init(reinit) /* initialize device */ | ^~~~~~ tc.c: In function 't_init': tc.c:441:9: warning: implicit declaration of function 'sendpt' [-Wimplicit-function-declaration] 441 | sendpt(); | ^~~~~~ tc.c: At top level: tc.c:457:1: warning: return type defaults to 'int' [-Wimplicit-int] 457 | t_push() /* begin a new block */ | ^~~~~~ tc.c: In function 't_push': tc.c:459:9: warning: implicit declaration of function 'hflush'; did you mean 'fflush'? [-Wimplicit-function-declaration] 459 | hflush(); | ^~~~~~ | fflush tc.c: At top level: tc.c:474:1: warning: return type defaults to 'int' [-Wimplicit-int] 474 | t_pop() /* pop to previous state */ | ^~~~~ tc.c: In function 't_page': tc.c:519:31: warning: implicit declaration of function 'readch' [-Wimplicit-function-declaration] 519 | for (bp = buf; (*bp = readch()); ) | ^~~~~~ tc.c: At top level: tc.c:593:1: warning: return type defaults to 'int' [-Wimplicit-int] 593 | t_newline() /* do whatever for the end of a line */ | ^~~~~~~~~ tc.c:598:1: warning: return type defaults to 'int' [-Wimplicit-int] 598 | t_size(n) /* convert integer to internal size number*/ | ^~~~~~ tc.c:612:1: warning: return type defaults to 'int' [-Wimplicit-int] 612 | t_font(s) /* convert string to internal font number */ | ^~~~~~ tc.c:653:1: warning: return type defaults to 'int' [-Wimplicit-int] 653 | t_reset(c) | ^~~~~~~ tc.c: In function 't_reset': tc.c:653:1: warning: type of 'c' defaults to 'int' [-Wimplicit-int] tc.c: At top level: tc.c:665:1: warning: return type defaults to 'int' [-Wimplicit-int] 665 | t_trailer() | ^~~~~~~~~ tc.c:669:1: warning: return type defaults to 'int' [-Wimplicit-int] 669 | hgoto(n) | ^~~~~ tc.c: In function 'hgoto': tc.c:669:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] tc.c: At top level: tc.c:676:1: warning: return type defaults to 'int' [-Wimplicit-int] 676 | hmot(n) /* generate n units of horizontal motion */ | ^~~~ tc.c:682:1: warning: return type defaults to 'int' [-Wimplicit-int] 682 | hflush() /* actual horizontal output occurs here */ | ^~~~~~ tc.c:688:1: warning: return type defaults to 'int' [-Wimplicit-int] 688 | vgoto(n) | ^~~~~ tc.c: In function 'vgoto': tc.c:688:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] tc.c: At top level: tc.c:693:1: warning: return type defaults to 'int' [-Wimplicit-int] 693 | vmot(n) /* generate n units of vertical motion */ | ^~~~ tc.c:751:1: warning: return type defaults to 'int' [-Wimplicit-int] 751 | t_fp(n, s) /* font position n now contains font s */ | ^~~~ tc.c:757:1: warning: return type defaults to 'int' [-Wimplicit-int] 757 | setfont(n) /* set font to n */ | ^~~~~~~ tc.c:762:1: warning: return type defaults to 'int' [-Wimplicit-int] 762 | done() | ^~~~ tc.c:776:1: warning: return type defaults to 'int' [-Wimplicit-int] 776 | readch(){ | ^~~~~~ tc.c: In function 'readch': tc.c:778:13: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 778 | if (read(2,&c,1)<1) c=0; | ^~~~ | fread tc.c: At top level: tc.c:781:1: warning: return type defaults to 'int' [-Wimplicit-int] 781 | sendpt(){ | ^~~~~~ tc.c: In function 'conv': tc.c:223:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 223 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ tc.c:227:25: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 227 | fgets(buf, sizeof(buf), fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ tc.c:232:25: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 232 | fgets(buf, sizeof(buf), fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ tc.c:260:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 260 | fscanf(fp, "%d", &n); /* ignore fractional sizes */ | ^~~~~~~~~~~~~~~~~~~~ tc.c:264:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 264 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ tc.c:292:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 292 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ tc.c:296:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 296 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ tc.c:300:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 300 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ tc.c: In function 'devcntrl': tc.c:331:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 331 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ tc.c:338:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 338 | fscanf(fp, "%s", dwb_devname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tc.c:350:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 350 | fscanf(fp, "%d", &res); | ^~~~~~~~~~~~~~~~~~~~~~ tc.c:353:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 353 | fscanf(fp, "%d %s", &n, str); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c draw.c draw.c: In function 'drawline': draw.c:33:9: warning: implicit declaration of function 'setsize' [-Wimplicit-function-declaration] 33 | setsize(t_size(pstab[osize-1] / drawsize)); | ^~~~~~~ draw.c:33:17: warning: implicit declaration of function 't_size' [-Wimplicit-function-declaration] 33 | setsize(t_size(pstab[osize-1] / drawsize)); | ^~~~~~ draw.c:6:25: warning: implicit declaration of function 'vgoto'; did you mean 'hgoto'? [-Wimplicit-function-declaration] 6 | #define vmot(n) vgoto(vpos + n) | ^~~~~ draw.c:42:25: note: in expansion of macro 'vmot' 42 | vmot(motincr); | ^~~~ draw.c:43:25: warning: implicit declaration of function 'put1'; did you mean 'puts'? [-Wimplicit-function-declaration] 43 | put1(drawdot); | ^~~~ | puts draw.c: At top level: draw.c:97:1: warning: return type defaults to 'int' [-Wimplicit-int] 97 | drawwig(s) /* draw wiggly line */ | ^~~~~~~ draw.c: In function 'drawwig': draw.c:110:24: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 110 | x[N] = atoi(temp); | ^~~~ draw.c:125:26: warning: implicit declaration of function 'dist' [-Wimplicit-function-declaration] 125 | steps = (dist(x[i],y[i], x[i+1],y[i+1]) + dist(x[i+1],y[i+1], x[i+2],y[i+2])) / 2; | ^~~~ draw.c: At top level: draw.c:163:1: warning: return type defaults to 'int' [-Wimplicit-int] 163 | drawcirc(d) | ^~~~~~~~ draw.c: In function 'drawcirc': draw.c:163:1: warning: type of 'd' defaults to 'int' [-Wimplicit-int] draw.c:169:9: warning: implicit declaration of function 'conicarc' [-Wimplicit-function-declaration] 169 | conicarc(hpos + d/2, -vpos, hpos, -vpos, hpos, -vpos, d/2, d/2); | ^~~~~~~~ draw.c: At top level: draw.c:174:1: warning: return type defaults to 'int' [-Wimplicit-int] 174 | dist(x1, y1, x2, y2) /* integer distance from x1,y1 to x2,y2 */ | ^~~~ draw.c: In function 'dist': draw.c:174:1: warning: type of 'x1' defaults to 'int' [-Wimplicit-int] draw.c:174:1: warning: type of 'y1' defaults to 'int' [-Wimplicit-int] draw.c:174:1: warning: type of 'x2' defaults to 'int' [-Wimplicit-int] draw.c:174:1: warning: type of 'y2' defaults to 'int' [-Wimplicit-int] draw.c: At top level: draw.c:183:1: warning: return type defaults to 'int' [-Wimplicit-int] 183 | drawarc(dx1, dy1, dx2, dy2) | ^~~~~~~ draw.c: In function 'drawarc': draw.c:183:1: warning: type of 'dx1' defaults to 'int' [-Wimplicit-int] draw.c:183:1: warning: type of 'dy1' defaults to 'int' [-Wimplicit-int] draw.c:183:1: warning: type of 'dx2' defaults to 'int' [-Wimplicit-int] draw.c:183:1: warning: type of 'dy2' defaults to 'int' [-Wimplicit-int] draw.c: At top level: draw.c:195:1: warning: return type defaults to 'int' [-Wimplicit-int] 195 | drawellip(a, b) | ^~~~~~~~~ draw.c: In function 'drawellip': draw.c:195:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] draw.c:195:1: warning: type of 'b' defaults to 'int' [-Wimplicit-int] draw.c: At top level: draw.c:208:1: warning: return type defaults to 'int' [-Wimplicit-int] 208 | conicarc(x, y, x0, y0, x1, y1, a, b) | ^~~~~~~~ draw.c: In function 'conicarc': draw.c:208:1: warning: type of 'x' defaults to 'int' [-Wimplicit-int] draw.c:208:1: warning: type of 'y' defaults to 'int' [-Wimplicit-int] draw.c:208:1: warning: type of 'x0' defaults to 'int' [-Wimplicit-int] draw.c:208:1: warning: type of 'y0' defaults to 'int' [-Wimplicit-int] draw.c:208:1: warning: type of 'x1' defaults to 'int' [-Wimplicit-int] draw.c:208:1: warning: type of 'y1' defaults to 'int' [-Wimplicit-int] draw.c:208:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] draw.c:208:1: warning: type of 'b' defaults to 'int' [-Wimplicit-int] draw.c:359:25: warning: implicit declaration of function 'putdot' [-Wimplicit-function-declaration] 359 | putdot((int)xc, (int)yc); | ^~~~~~ draw.c: At top level: draw.c:416:1: warning: return type defaults to 'int' [-Wimplicit-int] 416 | putdot(x, y) | ^~~~~~ draw.c: In function 'putdot': draw.c:416:1: warning: type of 'x' defaults to 'int' [-Wimplicit-int] draw.c:416:1: warning: type of 'y' defaults to 'int' [-Wimplicit-int] cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o tc tc.o draw.o -lm ---- Making all in directory misc/xpand ---- cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o xpand xpand.c -lm xpand.c:12:1: warning: return type defaults to 'int' [-Wimplicit-int] 12 | main(argc,argv) | ^~~~ xpand.c: In function 'main': xpand.c:39:17: warning: implicit declaration of function 'fgetline'; did you mean 'getline'? [-Wimplicit-function-declaration] 39 | while (fgetline(line,LINSIZE,filept[i]) != 0) | ^~~~~~~~ | getline xpand.c: At top level: xpand.c:71:1: warning: return type defaults to 'int' [-Wimplicit-int] 71 | fgetline(s,lim,stream) | ^~~~~~~~ ---- Making all in directory postscript/buildtables ---- sed -e "s'^FONTDIR=.*'FONTDIR=/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font'" -e "s'^POSTBIN=.*'POSTBIN=/usr/lbin/postscript'" -e "s'^POSTLIB=.*'POSTLIB=/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript'" buildtables.sh >buildtables ---- Making all in directory postscript/common ---- ---- Making all in directory postscript/cropmarks ---- sed "s'^POSTLIB=.*'POSTLIB=/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript'" cropmarks.sh >cropmarks ---- Making all in directory postscript/devLatin1 ---- ---- Making all in directory postscript/devpost ---- ---- Making all in directory postscript/download ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DDHOSTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font/postscript\"" -I/usr/pkg/include -c download.c download.c:90:1: warning: return type defaults to 'int' [-Wimplicit-int] 90 | main(agc, agv) | ^~~~ download.c: In function 'main': download.c:111:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 111 | init_signals(); /* sets up interrupt handling */ | ^~~~~~~~~~~~ download.c:112:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 112 | options(); /* first get command line options */ | ^~~~~~~ download.c:115:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 115 | arguments(); /* then process non-option arguments */ | ^~~~~~~~~ download.c:116:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 116 | done(); /* and clean things up */ | ^~~~ download.c: At top level: download.c:124:1: warning: return type defaults to 'int' [-Wimplicit-int] 124 | init_signals() | ^~~~~~~~~~~~ download.c:149:1: warning: return type defaults to 'int' [-Wimplicit-int] 149 | options() | ^~~~~~~ download.c: In function 'options': download.c:165:19: warning: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] 165 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) { | ^~~~~~ | getsubopt download.c:204:21: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 204 | error(FATAL, ""); | ^~~~~ | perror download.c: In function 'readmap': download.c:256:14: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 256 | if ( read(fd, stringspace, sbuf.st_size) == -1 ) | ^~~~ | fread download.c:258:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 258 | close(fd); | ^~~~~ | pclose download.c: In function 'readresident': download.c:315:28: warning: implicit declaration of function 'lookup' [-Wimplicit-function-declaration] 315 | else if ( (n = lookup(buf)) < next ) | ^~~~~~ download.c: At top level: download.c:324:1: warning: return type defaults to 'int' [-Wimplicit-int] 324 | arguments() | ^~~~~~~~~ download.c: In function 'arguments': download.c:338:9: warning: implicit declaration of function 'download' [-Wimplicit-function-declaration] 338 | download(); | ^~~~~~~~ download.c: At top level: download.c:360:1: warning: return type defaults to 'int' [-Wimplicit-int] 360 | done() | ^~~~ download.c: In function 'done': download.c:371:9: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 371 | unlink(temp_file); | ^~~~~~ download.c: At top level: download.c:377:1: warning: return type defaults to 'int' [-Wimplicit-int] 377 | download() | ^~~~~~~~ download.c: In function 'download': download.c:413:17: warning: implicit declaration of function 'copyfonts' [-Wimplicit-function-declaration] 413 | copyfonts(buf); | ^~~~~~~~~ download.c:421:5: warning: implicit declaration of function 'copyinput' [-Wimplicit-function-declaration] 421 | copyinput(); | ^~~~~~~~~ download.c: At top level: download.c:427:1: warning: return type defaults to 'int' [-Wimplicit-int] 427 | copyfonts(list) | ^~~~~~~~~ download.c: In function 'copyfonts': download.c:458:17: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 458 | cat(path); | ^~~ download.c: At top level: download.c:469:1: warning: return type defaults to 'int' [-Wimplicit-int] 469 | copyinput() | ^~~~~~~~~ download.c:497:1: warning: return type defaults to 'int' [-Wimplicit-int] 497 | lookup(font) | ^~~~~~ cc -pipe -O2 -I/usr/pkg/include -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -c glob.c cc -pipe -O2 -I/usr/pkg/include -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -c misc.c misc.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int] 20 | out_list(str) | ^~~~~~~~ misc.c: In function 'out_list': misc.c:36:24: warning: implicit declaration of function 'str_convert' [-Wimplicit-function-declaration] 36 | start = stop = str_convert(&str, 0); | ^~~~~~~~~~~ misc.c:42:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 42 | error(FATAL, "illegal range %d-%d", start, stop); | ^~~~~ | perror misc.c: At top level: misc.c:56:1: warning: return type defaults to 'int' [-Wimplicit-int] 56 | in_olist(num) | ^~~~~~~~ misc.c:83:1: warning: return type defaults to 'int' [-Wimplicit-int] 83 | setencoding(name) | ^~~~~~~~~~~ misc.c: In function 'setencoding': misc.c:106:5: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 106 | cat(path); | ^~~ misc.c: At top level: misc.c:112:1: warning: return type defaults to 'int' [-Wimplicit-int] 112 | cat(file) | ^~~ misc.c: In function 'cat': misc.c:135:22: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 135 | while ( (count = read(fd_in, buf, sizeof(buf))) > 0 ) | ^~~~ | fread misc.c:136:9: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 136 | write(fd_out, buf, count); | ^~~~~ | fwrite misc.c:138:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 138 | close(fd_in); | ^~~~~ | pclose misc.c: At top level: misc.c:146:1: warning: return type defaults to 'int' [-Wimplicit-int] 146 | str_convert(str, err) | ^~~~~~~~~~~ misc.c: In function 'error_chk_kind': misc.c:192:13: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 192 | unlink(temp_file); | ^~~~~~ misc.c: At top level: misc.c:197:1: warning: return type defaults to 'int' [-Wimplicit-int] 197 | error(kind, mesg, a1, a2, a3) | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -DBSD4_2 -c tempnam.c cc -pipe -O2 -I/usr/pkg/include -I../common -DDHOSTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font/postscript\"" -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o download download.o ../common/glob.o ../common/misc.o ../common/tempnam.o /bin/ld: download.o: in function `download': download.c:(.text+0x9cd): warning: the use of `tempnam' is dangerous, better use `mkstemp' ---- Making all in directory postscript/dpost ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -DDHOSTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font/postscript\"" -DDFONTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font\"" -I/usr/pkg/include -c dpost.c dpost.c:260:1: warning: return type defaults to 'int' [-Wimplicit-int] 260 | main(agc, agv) | ^~~~ dpost.c: In function 'main': dpost.c:279:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 279 | init_signals(); /* interrupt handling */ | ^~~~~~~~~~~~ dpost.c:280:5: warning: implicit declaration of function 'header' [-Wimplicit-function-declaration] 280 | header(); /* structuring comments */ | ^~~~~~ dpost.c:281:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 281 | options(); /* command line options */ | ^~~~~~~ dpost.c:282:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 282 | arguments(); /* translate the input files */ | ^~~~~~~~~ dpost.c:283:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 283 | done(); /* add trailing comments etc. */ | ^~~~ dpost.c:284:5: warning: implicit declaration of function 'account' [-Wimplicit-function-declaration] 284 | account(); /* job accounting data */ | ^~~~~~~ dpost.c: At top level: dpost.c:292:1: warning: return type defaults to 'int' [-Wimplicit-int] 292 | init_signals() | ^~~~~~~~~~~~ dpost.c:317:1: warning: return type defaults to 'int' [-Wimplicit-int] 317 | header() | ^~~~~~ dpost.c: In function 'header': dpost.c:332:19: warning: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] 332 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) | ^~~~~~ | getsubopt dpost.c:334:13: warning: implicit declaration of function 'setpaths' [-Wimplicit-function-declaration] 334 | setpaths(optarg); | ^~~~~~~~ dpost.c:350:10: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 350 | if ( cat(prologue) == FALSE ) | ^~~ dpost.c: At top level: dpost.c:364:1: warning: return type defaults to 'int' [-Wimplicit-int] 364 | options() | ^~~~~~~ dpost.c: In function 'options': dpost.c:408:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 408 | out_list(optarg); | ^~~~~~~~ dpost.c:478:21: warning: implicit declaration of function 'saverequest' [-Wimplicit-function-declaration] 478 | saverequest(optarg); | ^~~~~~~~~~~ dpost.c: At top level: dpost.c:516:1: warning: return type defaults to 'int' [-Wimplicit-int] 516 | setpaths(name) | ^~~~~~~~ dpost.c:556:1: warning: return type defaults to 'int' [-Wimplicit-int] 556 | setup() | ^~~~~ dpost.c: In function 'setup': dpost.c:571:5: warning: implicit declaration of function 'writerequest' [-Wimplicit-function-declaration] 571 | writerequest(0, stdout); /* global requests e.g. manual feed */ | ^~~~~~~~~~~~ dpost.c:574:9: warning: implicit declaration of function 'setencoding' [-Wimplicit-function-declaration] 574 | setencoding((useencoding != NULL) ? useencoding : fontencoding); | ^~~~~~~~~~~ dpost.c:587:9: warning: implicit declaration of function 'translate' [-Wimplicit-function-declaration] 587 | translate(pagewidth/2.0, pageheight/2.0); | ^~~~~~~~~ dpost.c:589:13: warning: implicit declaration of function 'rotate' [-Wimplicit-function-declaration] 589 | rotate(90.0); | ^~~~~~ dpost.c:596:9: warning: implicit declaration of function 'scale'; did you mean 'scalb'? [-Wimplicit-function-declaration] 596 | scale(magnification, magnification); | ^~~~~ | scalb dpost.c: At top level: dpost.c:604:1: warning: return type defaults to 'int' [-Wimplicit-int] 604 | arguments() | ^~~~~~~~~ dpost.c: In function 'arguments': dpost.c:617:9: warning: implicit declaration of function 'conv' [-Wimplicit-function-declaration] 617 | conv(stdin); | ^~~~ dpost.c: At top level: dpost.c:635:1: warning: return type defaults to 'int' [-Wimplicit-int] 635 | done() | ^~~~ dpost.c: In function 'done': dpost.c:664:9: warning: implicit declaration of function 'writebbox' [-Wimplicit-function-declaration] 664 | writebbox(stdout, BOUNDINGBOX, 10); | ^~~~~~~~~ dpost.c: At top level: dpost.c:670:1: warning: return type defaults to 'int' [-Wimplicit-int] 670 | account() | ^~~~~~~ dpost.c:687:1: warning: return type defaults to 'int' [-Wimplicit-int] 687 | conv(fp) | ^~~~ dpost.c: In function 'conv': dpost.c:704:5: warning: implicit declaration of function 'redirect' [-Wimplicit-function-declaration] 704 | redirect(-1); /* do output only after a page command */ | ^~~~~~~~ dpost.c:730:26: warning: implicit declaration of function 'chindex'; did you mean 'rindex'? [-Wimplicit-function-declaration] 730 | put1(chindex(str)); | ^~~~~~~ | rindex dpost.c:735:21: warning: implicit declaration of function 'flushtext' [-Wimplicit-function-declaration] 735 | flushtext(); | ^~~~~~~~~ dpost.c:736:21: warning: implicit declaration of function 'oput' [-Wimplicit-function-declaration] 736 | oput(m); | ^~~~ dpost.c:741:21: warning: implicit declaration of function 'getdraw'; did you mean 'getw'? [-Wimplicit-function-declaration] 741 | getdraw(); | ^~~~~~~ | getw dpost.c:743:25: warning: implicit declaration of function 't_sf' [-Wimplicit-function-declaration] 743 | t_sf(); | ^~~~ dpost.c:747:33: warning: implicit declaration of function 'drawline' [-Wimplicit-function-declaration] 747 | drawline(n, m); | ^~~~~~~~ dpost.c:758:29: warning: implicit declaration of function 'drawcirc' [-Wimplicit-function-declaration] 758 | drawcirc(n); | ^~~~~~~~ dpost.c:763:29: warning: implicit declaration of function 'drawellip' [-Wimplicit-function-declaration] 763 | drawellip(m, n); | ^~~~~~~~~ dpost.c:769:29: warning: implicit declaration of function 'drawarc' [-Wimplicit-function-declaration] 769 | drawarc(n, m, n1, m1, c); | ^~~~~~~ dpost.c:773:29: warning: implicit declaration of function 'drawspline' [-Wimplicit-function-declaration] 773 | drawspline(fp, 1); | ^~~~~~~~~~ dpost.c:794:21: warning: implicit declaration of function 'setfont' [-Wimplicit-function-declaration] 794 | setfont(t_font(str)); | ^~~~~~~ dpost.c:794:29: warning: implicit declaration of function 't_font' [-Wimplicit-function-declaration] 794 | setfont(t_font(str)); | ^~~~~~ dpost.c:822:21: warning: implicit declaration of function 't_page' [-Wimplicit-function-declaration] 822 | t_page(n); | ^~~~~~ dpost.c:837:21: warning: implicit declaration of function 'devcntrl' [-Wimplicit-function-declaration] 837 | devcntrl(fp); | ^~~~~~~~ dpost.c: At top level: dpost.c:854:1: warning: return type defaults to 'int' [-Wimplicit-int] 854 | devcntrl(fp) | ^~~~~~~~ dpost.c: In function 'devcntrl': dpost.c:880:17: warning: implicit declaration of function 'loadfont' [-Wimplicit-function-declaration] 880 | loadfont(n, str, str1); | ^~~~~~~~ dpost.c:884:17: warning: implicit declaration of function 't_init' [-Wimplicit-function-declaration] 884 | t_init(); | ^~~~~~ dpost.c:901:17: warning: implicit declaration of function 't_charht' [-Wimplicit-function-declaration] 901 | t_charht(n); | ^~~~~~~~ dpost.c:906:17: warning: implicit declaration of function 't_slant' [-Wimplicit-function-declaration] 906 | t_slant(n); | ^~~~~~~ dpost.c:918:21: warning: implicit declaration of function 'picture' [-Wimplicit-function-declaration] 918 | picture(buf); | ^~~~~~~ dpost.c:920:21: warning: implicit declaration of function 'inlinepic' [-Wimplicit-function-declaration] 920 | inlinepic(fp, buf); | ^~~~~~~~~ dpost.c:922:21: warning: implicit declaration of function 'beginpath' [-Wimplicit-function-declaration] 922 | beginpath(buf, FALSE); | ^~~~~~~~~ dpost.c:924:21: warning: implicit declaration of function 'drawpath' [-Wimplicit-function-declaration] 924 | drawpath(buf, FALSE); | ^~~~~~~~ dpost.c:930:21: warning: implicit declaration of function 'newbaseline' [-Wimplicit-function-declaration] 930 | newbaseline(buf); | ^~~~~~~~~~~ dpost.c:932:21: warning: implicit declaration of function 'drawtext' [-Wimplicit-function-declaration] 932 | drawtext(buf); | ^~~~~~~~ dpost.c:934:21: warning: implicit declaration of function 'settext' [-Wimplicit-function-declaration] 934 | settext(buf); | ^~~~~~~ dpost.c:936:21: warning: implicit declaration of function 'newcolor' [-Wimplicit-function-declaration] 936 | newcolor(buf); | ^~~~~~~~ dpost.c:937:21: warning: implicit declaration of function 'setcolor' [-Wimplicit-function-declaration] 937 | setcolor(); | ^~~~~~~~ dpost.c:946:25: warning: implicit declaration of function 'restore' [-Wimplicit-function-declaration] 946 | restore(); | ^~~~~~~ dpost.c:948:25: warning: implicit declaration of function 'save' [-Wimplicit-function-declaration] 948 | save(); | ^~~~ dpost.c: At top level: dpost.c:960:1: warning: return type defaults to 'int' [-Wimplicit-int] 960 | loadfont(m, f, name) | ^~~~~~~~ dpost.c: In function 'loadfont': dpost.c:983:10: warning: implicit declaration of function 'mountfont' [-Wimplicit-function-declaration] 983 | if ( mountfont(path, m) == -1 ) { | ^~~~~~~~~ dpost.c: At top level: dpost.c:1039:1: warning: return type defaults to 'int' [-Wimplicit-int] 1039 | loadspecial() | ^~~~~~~~~~~ dpost.c:1055:1: warning: return type defaults to 'int' [-Wimplicit-int] 1055 | t_init() | ^~~~~~ dpost.c: In function 't_init': dpost.c:1074:18: warning: implicit declaration of function 'checkdesc' [-Wimplicit-function-declaration] 1074 | if ( checkdesc(path) ) | ^~~~~~~~~ dpost.c:1079:14: warning: implicit declaration of function 'getdesc' [-Wimplicit-function-declaration] 1079 | if ( getdesc(path) == -1 ) | ^~~~~~~ dpost.c:1092:5: warning: implicit declaration of function 'reset' [-Wimplicit-function-declaration] 1092 | reset(); | ^~~~~ dpost.c: At top level: dpost.c:1098:1: warning: return type defaults to 'int' [-Wimplicit-int] 1098 | t_page(pg) | ^~~~~~ dpost.c:1156:1: warning: return type defaults to 'int' [-Wimplicit-int] 1156 | t_font(s) | ^~~~~~ dpost.c:1189:1: warning: return type defaults to 'int' [-Wimplicit-int] 1189 | setfont(m) | ^~~~~~~ dpost.c:1210:1: warning: return type defaults to 'int' [-Wimplicit-int] 1210 | t_sf() | ^~~~ dpost.c: In function 't_sf': dpost.c:1226:26: warning: implicit declaration of function 'mounted'; did you mean 'round'? [-Wimplicit-function-declaration] 1226 | if ( tf == stdout && mounted(font) ) { | ^~~~~~~ | round dpost.c:1233:17: warning: implicit declaration of function 'exportstring' [-Wimplicit-function-declaration] 1233 | exportstring(temp); | ^~~~~~~~~~~~ dpost.c:1239:17: warning: implicit declaration of function 'exportfile' [-Wimplicit-function-declaration] 1239 | exportfile(temp); | ^~~~~~~~~~ dpost.c: At top level: dpost.c:1256:1: warning: return type defaults to 'int' [-Wimplicit-int] 1256 | t_charht(n) | ^~~~~~~~ dpost.c:1275:1: warning: return type defaults to 'int' [-Wimplicit-int] 1275 | t_slant(n) | ^~~~~~~ dpost.c:1294:1: warning: return type defaults to 'int' [-Wimplicit-int] 1294 | xymove(x, y) | ^~~~~~ dpost.c: In function 'put1': dpost.c:1346:15: warning: implicit declaration of function 'onfont'; did you mean 't_font'? [-Wimplicit-function-declaration] 1346 | if ( (i = onfont(lastc, k)) == -1 && smnt > 0 ) | ^~~~~~ | t_font dpost.c: At top level: dpost.c:1366:1: warning: return type defaults to 'int' [-Wimplicit-int] 1366 | oput(c) | ^~~~ dpost.c: In function 'oput': dpost.c:1388:9: warning: implicit declaration of function 'endline' [-Wimplicit-function-declaration] 1388 | endline(); | ^~~~~~~ dpost.c:1390:5: warning: implicit declaration of function 'starttext' [-Wimplicit-function-declaration] 1390 | starttext(); | ^~~~~~~~~ dpost.c:1393:9: warning: implicit declaration of function 'endstring' [-Wimplicit-function-declaration] 1393 | endstring(); | ^~~~~~~~~ dpost.c:1400:21: warning: implicit declaration of function 'addchar' [-Wimplicit-function-declaration] 1400 | addchar('\\'); | ^~~~~~~ dpost.c:1406:9: warning: implicit declaration of function 'addoctal' [-Wimplicit-function-declaration] 1406 | addoctal(c); | ^~~~~~~~ dpost.c:1407:10: warning: implicit declaration of function 'charlib' [-Wimplicit-function-declaration] 1407 | else charlib(c); | ^~~~~~~ dpost.c:1414:9: warning: implicit declaration of function 'cover' [-Wimplicit-function-declaration] 1414 | cover(llx, lly); | ^~~~~ dpost.c: At top level: dpost.c:1424:1: warning: return type defaults to 'int' [-Wimplicit-int] 1424 | starttext() | ^~~~~~~~~ dpost.c:1475:1: warning: return type defaults to 'int' [-Wimplicit-int] 1475 | flushtext() | ^~~~~~~~~ dpost.c:1536:1: warning: return type defaults to 'int' [-Wimplicit-int] 1536 | endstring() | ^~~~~~~~~ dpost.c:1595:1: warning: return type defaults to 'int' [-Wimplicit-int] 1595 | endline() | ^~~~~~~ dpost.c:1618:1: warning: return type defaults to 'int' [-Wimplicit-int] 1618 | addchar(c) | ^~~~~~~ dpost.c:1651:1: warning: return type defaults to 'int' [-Wimplicit-int] 1651 | addoctal(c) | ^~~~~~~~ dpost.c:1685:1: warning: return type defaults to 'int' [-Wimplicit-int] 1685 | charlib(code) | ^~~~~~~ dpost.c: In function 'charlib': dpost.c:1732:18: warning: implicit declaration of function 'access' [-Wimplicit-function-declaration] 1732 | if ( access(temp, 04) == 0 && tf == stdout ) | ^~~~~~ dpost.c: At top level: dpost.c:1742:1: warning: return type defaults to 'int' [-Wimplicit-int] 1742 | reset() | ^~~~~ dpost.c:1762:1: warning: return type defaults to 'int' [-Wimplicit-int] 1762 | resetpos() | ^~~~~~~~ dpost.c:1780:1: warning: return type defaults to 'int' [-Wimplicit-int] 1780 | save() | ^~~~ dpost.c:1804:1: warning: return type defaults to 'int' [-Wimplicit-int] 1804 | restore() | ^~~~~~~ dpost.c:1823:1: warning: return type defaults to 'int' [-Wimplicit-int] 1823 | exportfile(path) | ^~~~~~~~~~ dpost.c:1852:1: warning: return type defaults to 'int' [-Wimplicit-int] 1852 | exportstring(str) | ^~~~~~~~~~~~ dpost.c:1876:1: warning: return type defaults to 'int' [-Wimplicit-int] 1876 | redirect(pg) | ^~~~~~~~ dpost.c: In function 'redirect': dpost.c:1891:21: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 1891 | if ( pg >= 0 && in_olist(pg) == ON ) | ^~~~~~~~ dpost.c: In function 'conv': dpost.c:729:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 729 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ dpost.c:734:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 734 | fscanf(fp, "%d", &m); | ^~~~~~~~~~~~~~~~~~~~ dpost.c:752:29: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 752 | fscanf(fp, "%d %d %c", &n, &m, &n1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dpost.c:757:29: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 757 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpost.c:762:29: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 762 | fscanf(fp, "%d %d", &m, &n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ dpost.c:768:29: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 768 | fscanf(fp, "%d %d %d %d", &n, &m, &n1, &m1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dpost.c:789:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 789 | fscanf(fp, "%d", &size); /* ignore fractional sizes */ | ^~~~~~~~~~~~~~~~~~~~~~~ dpost.c:793:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 793 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ dpost.c:798:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 798 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpost.c:803:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 803 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpost.c:811:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 811 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpost.c:816:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 816 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpost.c:821:21: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 821 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpost.c: In function 'devcntrl': dpost.c:871:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 871 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ dpost.c:875:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 875 | fscanf(fp, "%d %s", &n, str); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ dpost.c:876:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 876 | fgets(buf, sizeof buf, fp); /* in case there's a filename */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ dpost.c:891:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 891 | fscanf(fp, "%d", &res); | ^~~~~~~~~~~~~~~~~~~~~~ dpost.c:900:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 900 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpost.c:905:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 905 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dpost.c:910:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 910 | fscanf(fp, "%s", dwb_devname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dpost.c:914:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 914 | fscanf(fp, " %[^: \n]:", str); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dpost.c:915:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 915 | fgets(buf, sizeof(buf), fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -DDHOSTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font/postscript\"" -DDFONTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font\"" -I/usr/pkg/include -c draw.c draw.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int] 121 | getdraw() | ^~~~~~~ draw.c: In function 'getdraw': draw.c:136:9: warning: implicit declaration of function 'exportfile' [-Wimplicit-function-declaration] 136 | exportfile(drawfile); | ^~~~~~~~~~ draw.c: At top level: draw.c:145:1: warning: return type defaults to 'int' [-Wimplicit-int] 145 | drawline(dx, dy) | ^~~~~~~~ draw.c: In function 'drawline': draw.c:159:9: warning: implicit declaration of function 'drawcirc' [-Wimplicit-function-declaration] 159 | drawcirc(1); | ^~~~~~~~ draw.c:163:9: warning: implicit declaration of function 'cover' [-Wimplicit-function-declaration] 163 | cover((double)hpos, (double)-vpos); | ^~~~~ draw.c:170:5: warning: implicit declaration of function 'resetpos'; did you mean 'fsetpos'? [-Wimplicit-function-declaration] 170 | resetpos(); /* not sure where the printer is */ | ^~~~~~~~ | fsetpos draw.c: At top level: draw.c:176:1: warning: return type defaults to 'int' [-Wimplicit-int] 176 | drawcirc(d) | ^~~~~~~~ draw.c:230:1: warning: return type defaults to 'int' [-Wimplicit-int] 230 | drawarc(dx1, dy1, dx2, dy2, c) | ^~~~~~~ draw.c: In function 'drawarc': draw.c:259:13: warning: implicit declaration of function 'arc_extreme' [-Wimplicit-function-declaration] 259 | arc_extreme(dx1, dy1, dx2, dy2); | ^~~~~~~~~~~ draw.c: At top level: draw.c:271:1: warning: return type defaults to 'int' [-Wimplicit-int] 271 | drawspline(fp, flag) | ^~~~~~~~~~ draw.c:362:1: warning: return type defaults to 'int' [-Wimplicit-int] 362 | arc_extreme(dx1, dy1, dx2, dy2) | ^~~~~~~~~~~ draw.c: In function 'arc_extreme': draw.c:405:13: warning: implicit declaration of function 'quadrant' [-Wimplicit-function-declaration] 405 | j = quadrant(x0,y0); | ^~~~~~~~ draw.c: At top level: draw.c:433:1: warning: return type defaults to 'int' [-Wimplicit-int] 433 | quadrant(x,y) | ^~~~~~~~ draw.c:449:1: warning: return type defaults to 'int' [-Wimplicit-int] 449 | beginpath(buf, copy) | ^~~~~~~~~ draw.c: In function 'beginpath': draw.c:481:9: warning: implicit declaration of function 'flushtext' [-Wimplicit-function-declaration] 481 | flushtext(); | ^~~~~~~~~ draw.c:483:9: warning: implicit declaration of function 'getcolor' [-Wimplicit-function-declaration] 483 | getcolor(); | ^~~~~~~~ draw.c: At top level: draw.c:497:1: warning: return type defaults to 'int' [-Wimplicit-int] 497 | drawpath(buf, copy) | ^~~~~~~~ draw.c: In function 'drawpath': draw.c:528:14: warning: implicit declaration of function 'parsebuf' [-Wimplicit-function-declaration] 528 | else parsebuf(buf); | ^~~~~~~~ draw.c:531:9: warning: implicit declaration of function 'reset'; did you mean 'memset'? [-Wimplicit-function-declaration] 531 | reset(); | ^~~~~ | memset draw.c: At top level: draw.c:539:1: warning: return type defaults to 'int' [-Wimplicit-int] 539 | parsebuf(buf) | ^~~~~~~~ draw.c:641:1: warning: return type defaults to 'int' [-Wimplicit-int] 641 | getbaseline() | ^~~~~~~~~~~ draw.c:663:1: warning: return type defaults to 'int' [-Wimplicit-int] 663 | newbaseline(buf) | ^~~~~~~~~~~ draw.c:720:1: warning: return type defaults to 'int' [-Wimplicit-int] 720 | drawtext(buf) | ^~~~~~~~ draw.c: In function 'drawtext': draw.c:760:9: warning: implicit declaration of function 'xymove'; did you mean 'remove'? [-Wimplicit-function-declaration] 760 | xymove(hpos, vpos); | ^~~~~~ | remove draw.c: At top level: draw.c:769:1: warning: return type defaults to 'int' [-Wimplicit-int] 769 | settext(buf) | ^~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -DDHOSTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font/postscript\"" -DDFONTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font\"" -I/usr/pkg/include -c color.c color.c:103:1: warning: return type defaults to 'int' [-Wimplicit-int] 103 | getcolor() | ^~~~~~~~ color.c: In function 'getcolor': color.c:116:9: warning: implicit declaration of function 'exportfile' [-Wimplicit-function-declaration] 116 | exportfile(colorfile); | ^~~~~~~~~~ color.c: At top level: color.c:125:1: warning: return type defaults to 'int' [-Wimplicit-int] 125 | newcolor(name) | ^~~~~~~~ color.c:162:1: warning: return type defaults to 'int' [-Wimplicit-int] 162 | setcolor() | ^~~~~~~~ color.c: In function 'setcolor': color.c:182:9: warning: implicit declaration of function 'flushtext' [-Wimplicit-function-declaration] 182 | flushtext(); | ^~~~~~~~~ color.c:206:13: warning: implicit declaration of function 'resetpos'; did you mean 'fsetpos'? [-Wimplicit-function-declaration] 206 | resetpos(); | ^~~~~~~~ | fsetpos cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -DDHOSTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font/postscript\"" -DDFONTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font\"" -I/usr/pkg/include -c font.c font.c:31:1: warning: return type defaults to 'int' [-Wimplicit-int] 31 | checkdesc(path) | ^~~~~~~~~ font.c:70:1: warning: return type defaults to 'int' [-Wimplicit-int] 70 | getdesc(path) | ^~~~~~~ font.c: In function 'getdesc': font.c:108:17: warning: implicit declaration of function 'chadd' [-Wimplicit-function-declaration] 108 | chadd(buf); | ^~~~~ font.c: At top level: font.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int] 121 | getfont(path, fpos) | ^~~~~~~ font.c: In function 'getfont': font.c:156:9: warning: implicit declaration of function 'freefonts' [-Wimplicit-function-declaration] 156 | freefonts(); | ^~~~~~~~~ font.c:163:13: warning: implicit declaration of function 'release' [-Wimplicit-function-declaration] 163 | release(fpos->name); | ^~~~~~~ font.c:194:31: warning: implicit declaration of function 'chindex'; did you mean 'rindex'? [-Wimplicit-function-declaration] 194 | if ( (n = chindex(ch)) == -1 ) /* global? */ | ^~~~~~~ | rindex font.c: At top level: font.c:222:1: warning: return type defaults to 'int' [-Wimplicit-int] 222 | mountfont(path, m) | ^~~~~~~~~ font.c: In function 'mountfont': font.c:251:34: warning: implicit declaration of function 'findfont' [-Wimplicit-function-declaration] 251 | dwb_mount[m] = fpos = &fonts[findfont(path)]; | ^~~~~~~~ font.c: At top level: font.c:259:1: warning: return type defaults to 'int' [-Wimplicit-int] 259 | freefonts() | ^~~~~~~~~ font.c:283:1: warning: return type defaults to 'int' [-Wimplicit-int] 283 | findfont(path) | ^~~~~~~~ font.c: In function 'findfont': font.c:289:17: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int] 289 | register n; | ^ font.c:298:15: warning: implicit declaration of function 'hash' [-Wimplicit-function-declaration] 298 | for ( n = hash(path, MAXFONTS+2); fonts[n].state != NEWFONT; n = (n+1) % (MAXFONTS+2) ) | ^~~~ font.c: At top level: font.c:307:1: warning: return type defaults to 'int' [-Wimplicit-int] 307 | mounted(m) | ^~~~~~~ font.c:325:1: warning: return type defaults to 'int' [-Wimplicit-int] 325 | onfont(c, m) | ^~~~~~ font.c:363:1: warning: return type defaults to 'int' [-Wimplicit-int] 363 | chwidth(n, m) | ^~~~~~~ font.c:383:1: warning: return type defaults to 'int' [-Wimplicit-int] 383 | chcode(n, m) | ^~~~~~ font.c:403:1: warning: return type defaults to 'int' [-Wimplicit-int] 403 | chindex(s) | ^~~~~~~ font.c: In function 'chindex': font.c:409:17: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 409 | register i; | ^ font.c: At top level: font.c:427:1: warning: return type defaults to 'int' [-Wimplicit-int] 427 | chadd(s) | ^~~~~ font.c: In function 'chadd': font.c:433:17: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 433 | register i; | ^ font.c:443:9: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 443 | error(FATAL, "out of table space adding character %s", s); | ^~~~~ | perror font.c: At top level: font.c:474:1: warning: return type defaults to 'int' [-Wimplicit-int] 474 | hash(s, l) | ^~~~ font.c: In function 'hash': font.c:481:17: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 481 | register i; | ^ font.c: At top level: font.c:548:1: warning: return type defaults to 'int' [-Wimplicit-int] 548 | release(ptr) | ^~~~~~~ font.c:567:1: warning: return type defaults to 'int' [-Wimplicit-int] 567 | dumpmount(m) | ^~~~~~~~~ font.c: In function 'dumpmount': font.c:580:9: warning: implicit declaration of function 'dumpfont'; did you mean 'dumpmount'? [-Wimplicit-function-declaration] 580 | dumpfont((dwb_mount[m] - &fonts[0])); | ^~~~~~~~ | dumpmount font.c: At top level: font.c:587:1: warning: return type defaults to 'int' [-Wimplicit-int] 587 | dumpfont(n) | ^~~~~~~~ font.c: In function 'checkdesc': font.c:54:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 54 | fscanf(fp, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~ font.c: In function 'getdesc': font.c:92:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 92 | fscanf(fp, "%d", &devres); | ^~~~~~~~~~~~~~~~~~~~~~~~~ font.c:94:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 94 | fscanf(fp, "%d", &unitwidth); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ font.c:98:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 98 | fscanf(fp, "%d", &mlimit); | ^~~~~~~~~~~~~~~~~~~~~~~~~ font.c:100:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 100 | fscanf(fp, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~ font.c:103:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 103 | fscanf(fp, "%d", &nfonts); | ^~~~~~~~~~~~~~~~~~~~~~~~~ font.c:105:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 105 | fscanf(fp, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~ font.c: In function 'getfont': font.c:164:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 164 | fscanf(fin, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~~ font.c:168:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 168 | fscanf(fin, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -DDHOSTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font/postscript\"" -DDFONTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font\"" -I/usr/pkg/include -c pictures.c pictures.c: In function 'picture': pictures.c:110:5: warning: implicit declaration of function 'flushtext' [-Wimplicit-function-declaration] 110 | flushtext(); | ^~~~~~~~~ pictures.c:115:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 115 | error(NON_FATAL, "too few arguments to specify picture"); | ^~~~~ | perror pictures.c:157:5: warning: implicit declaration of function 'restore' [-Wimplicit-function-declaration] 157 | restore(); | ^~~~~~~ pictures.c:158:5: warning: implicit declaration of function 'ps_include'; did you mean '__has_include'? [-Wimplicit-function-declaration] 158 | ps_include(fp_in, tf, page, whiteout, outline, scaleboth, | ^~~~~~~~~~ | __has_include pictures.c:160:5: warning: implicit declaration of function 'save' [-Wimplicit-function-declaration] 160 | save(); | ^~~~ pictures.c: In function 'picopen': pictures.c:199:17: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 199 | unlink(tname); | ^~~~~~ pictures.c:201:17: warning: implicit declaration of function 'piccopy' [-Wimplicit-function-declaration] 201 | piccopy(fp_pic, fp, total); | ^~~~~~~ pictures.c: At top level: pictures.c:215:1: warning: return type defaults to 'int' [-Wimplicit-int] 215 | inlinepic(fp, buf) | ^~~~~~~~~ pictures.c:258:1: warning: return type defaults to 'int' [-Wimplicit-int] 258 | piccopy(fp_in, fp_out, total) | ^~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -DDHOSTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font/postscript\"" -DDFONTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font\"" -I/usr/pkg/include -c ps_include.c ps_include.c:13:8: warning: type defaults to 'int' in declaration of 'print' [-Wimplicit-int] 13 | static print(FILE *, char **); | ^~~~~ ps_include.c:17:1: warning: return type defaults to 'int' [-Wimplicit-int] 17 | ps_include(fin, fout, page_no, whiteout, outline, scaleboth, cx, cy, sx, sy, ax, ay, rot) | ^~~~~~~~~~ ps_include.c:174:1: warning: return type defaults to 'int' [-Wimplicit-int] 174 | print(fout, s) | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -c bbox.c bbox.c:36:1: warning: return type defaults to 'int' [-Wimplicit-int] 36 | cover(x, y) | ^~~~~ bbox.c:68:1: warning: return type defaults to 'int' [-Wimplicit-int] 68 | writebbox(fp, keyword, slop) | ^~~~~~~~~ bbox.c: In function 'writebbox': bbox.c:114:5: warning: implicit declaration of function 'resetbbox' [-Wimplicit-function-declaration] 114 | resetbbox((fp == stdout) ? TRUE : FALSE); | ^~~~~~~~~ bbox.c: At top level: bbox.c:120:1: warning: return type defaults to 'int' [-Wimplicit-int] 120 | resetbbox(output) | ^~~~~~~~~ bbox.c:149:1: warning: return type defaults to 'int' [-Wimplicit-int] 149 | scale(sx, sy) | ^~~~~ bbox.c: In function 'scale': bbox.c:168:5: warning: implicit declaration of function 'concat' [-Wimplicit-function-declaration] 168 | concat(matrix1); | ^~~~~~ bbox.c: At top level: bbox.c:174:1: warning: return type defaults to 'int' [-Wimplicit-int] 174 | translate(tx, ty) | ^~~~~~~~~ bbox.c:199:1: warning: return type defaults to 'int' [-Wimplicit-int] 199 | rotate(angle) | ^~~~~~ bbox.c:225:1: warning: return type defaults to 'int' [-Wimplicit-int] 225 | concat(m1) | ^~~~~~ cc -pipe -O2 -I/usr/pkg/include -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -c request.c request.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] 26 | saverequest(want) | ^~~~~~~~~~~ request.c: In function 'saverequest': request.c:50:38: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 50 | else request[nextreq].page = atoi(page); | ^~~~ request.c:54:12: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 54 | } else error(NON_FATAL, "too many requests - ignoring %s", want); | ^~~~~ | perror request.c: At top level: request.c:60:1: warning: return type defaults to 'int' [-Wimplicit-int] 60 | writerequest(page, fp_out) | ^~~~~~~~~~~~ request.c: In function 'writerequest': request.c:78:13: warning: implicit declaration of function 'dumprequest' [-Wimplicit-function-declaration] 78 | dumprequest(request[i].want, request[i].file, fp_out); | ^~~~~~~~~~~ request.c: At top level: request.c:84:1: warning: return type defaults to 'int' [-Wimplicit-int] 84 | dumprequest(want, file, fp_out) | ^~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -DDHOSTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font/postscript\"" -DDFONTDIR="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font\"" -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o dpost dpost.o draw.o color.o font.o pictures.o ps_include.o ../common/bbox.o ../common/glob.o ../common/misc.o ../common/request.o ../common/tempnam.o -lm /bin/ld: pictures.o: in function `picopen': pictures.c:(.text+0xbb): warning: the use of `tempnam' is dangerous, better use `mkstemp' ---- Making all in directory postscript/grabit ---- sed "s'^POSTLIB=.*'POSTLIB=/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript'" grabit.sh >grabit ---- Making all in directory postscript/hardcopy ---- sed "s'^POSTLIB=.*'POSTLIB=/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript'" hardcopy.sh >hardcopy ---- Making all in directory postscript/picpack ---- cc -pipe -O2 -I/usr/pkg/include -I../common -I/usr/pkg/include -c picpack.c picpack.c:75:1: warning: return type defaults to 'int' [-Wimplicit-int] 75 | main(agc, agv) | ^~~~ picpack.c: In function 'main': picpack.c:97:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 97 | options(); /* command line options */ | ^~~~~~~ picpack.c:98:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 98 | arguments(); /* translate all the input files */ | ^~~~~~~~~ picpack.c:99:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 99 | done(); /* clean things up */ | ^~~~ picpack.c: At top level: picpack.c:107:1: warning: return type defaults to 'int' [-Wimplicit-int] 107 | options() | ^~~~~~~ picpack.c: In function 'options': picpack.c:122:19: warning: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] 122 | while ( (ch = getopt(argc, argv, "k:qDI")) != EOF ) { | ^~~~~~ | getsubopt picpack.c:125:21: warning: implicit declaration of function 'newkeys' [-Wimplicit-function-declaration] 125 | newkeys(optarg); | ^~~~~~~ picpack.c:141:21: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 141 | error(FATAL, ""); | ^~~~~ | perror picpack.c: At top level: picpack.c:157:1: warning: return type defaults to 'int' [-Wimplicit-int] 157 | newkeys(list) | ^~~~~~~ picpack.c:189:1: warning: return type defaults to 'int' [-Wimplicit-int] 189 | arguments() | ^~~~~~~~~ picpack.c: In function 'arguments': picpack.c:205:9: warning: implicit declaration of function 'picpack' [-Wimplicit-function-declaration] 205 | picpack(); | ^~~~~~~ picpack.c: In function 'copystdin': picpack.c:241:20: warning: implicit declaration of function 'creat' [-Wimplicit-function-declaration] 241 | if ( (fd_out = creat(tfile, 0660)) == -1 ) | ^~~~~ picpack.c:244:5: warning: implicit declaration of function 'copyfile' [-Wimplicit-function-declaration] 244 | copyfile(fileno(stdin), fd_out); | ^~~~~~~~ picpack.c:245:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 245 | close(fd_out); | ^~~~~ | pclose picpack.c:250:5: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 250 | unlink(tfile); | ^~~~~~ picpack.c: At top level: picpack.c:257:1: warning: return type defaults to 'int' [-Wimplicit-int] 257 | copyfile(fd_in, fd_out) | ^~~~~~~~ picpack.c: In function 'copyfile': picpack.c:274:22: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 274 | while ( (count = read(fd_in, buf, sizeof(buf))) > 0 ) | ^~~~ | fread picpack.c:275:14: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 275 | if ( write(fd_out, buf, count) != count ) | ^~~~~ | fwrite picpack.c: At top level: picpack.c:282:1: warning: return type defaults to 'int' [-Wimplicit-int] 282 | done() | ^~~~ picpack.c:300:1: warning: return type defaults to 'int' [-Wimplicit-int] 300 | picpack() | ^~~~~~~ picpack.c: In function 'picpack': picpack.c:324:26: warning: implicit declaration of function 'gotpicfile'; did you mean 'addpicfile'? [-Wimplicit-function-declaration] 324 | if ( gotpicfile(name) == FALSE ) | ^~~~~~~~~~ | addpicfile picpack.c: At top level: picpack.c:385:1: warning: return type defaults to 'int' [-Wimplicit-int] 385 | gotpicfile(name) | ^~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o picpack picpack.o ../common/glob.o ../common/misc.o ../common/tempnam.o /bin/ld: picpack.o: in function `copystdin': picpack.c:(.text+0x1f2): warning: the use of `tempnam' is dangerous, better use `mkstemp' ---- Making all in directory postscript/postbgi ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -I/usr/pkg/include -c postbgi.c postbgi.c:220:1: warning: return type defaults to 'int' [-Wimplicit-int] 220 | main(agc, agv) | ^~~~ postbgi.c: In function 'main': postbgi.c:244:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 244 | init_signals(); /* set up interrupt handling */ | ^~~~~~~~~~~~ postbgi.c:245:5: warning: implicit declaration of function 'header' [-Wimplicit-function-declaration] 245 | header(); /* PostScript header comments */ | ^~~~~~ postbgi.c:246:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 246 | options(); /* command line options */ | ^~~~~~~ postbgi.c:247:5: warning: implicit declaration of function 'setup'; did you mean 'setbuf'? [-Wimplicit-function-declaration] 247 | setup(); /* for PostScript */ | ^~~~~ | setbuf postbgi.c:248:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 248 | arguments(); /* followed by each input file */ | ^~~~~~~~~ postbgi.c:249:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 249 | done(); /* print the last page etc. */ | ^~~~ postbgi.c:250:5: warning: implicit declaration of function 'account' [-Wimplicit-function-declaration] 250 | account(); /* job accounting data */ | ^~~~~~~ postbgi.c: At top level: postbgi.c:258:1: warning: return type defaults to 'int' [-Wimplicit-int] 258 | init_signals() | ^~~~~~~~~~~~ postbgi.c:283:1: warning: return type defaults to 'int' [-Wimplicit-int] 283 | header() | ^~~~~~ postbgi.c: In function 'header': postbgi.c:302:19: warning: implicit declaration of function 'getopt'; did you mean 'get_font'? [-Wimplicit-function-declaration] 302 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) | ^~~~~~ | get_font postbgi.c:306:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 306 | error(FATAL, ""); | ^~~~~ | perror postbgi.c:316:10: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 316 | if ( cat(prologue) == FALSE ) | ^~~ postbgi.c: At top level: postbgi.c:327:1: warning: return type defaults to 'int' [-Wimplicit-int] 327 | options() | ^~~~~~~ postbgi.c: In function 'options': postbgi.c:366:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 366 | out_list(optarg); | ^~~~~~~~ postbgi.c:411:21: warning: implicit declaration of function 'saverequest' [-Wimplicit-function-declaration] 411 | saverequest(optarg); | ^~~~~~~~~~~ postbgi.c: At top level: postbgi.c:465:1: warning: return type defaults to 'int' [-Wimplicit-int] 465 | setup() | ^~~~~ postbgi.c: In function 'setup': postbgi.c:476:5: warning: implicit declaration of function 'writerequest' [-Wimplicit-function-declaration] 476 | writerequest(0, stdout); /* global requests eg. manual feed */ | ^~~~~~~~~~~~ postbgi.c:477:5: warning: implicit declaration of function 'setencoding' [-Wimplicit-function-declaration] 477 | setencoding(fontencoding); | ^~~~~~~~~~~ postbgi.c: At top level: postbgi.c:492:1: warning: return type defaults to 'int' [-Wimplicit-int] 492 | arguments() | ^~~~~~~~~ postbgi.c: In function 'arguments': postbgi.c:505:9: warning: implicit declaration of function 'conv' [-Wimplicit-function-declaration] 505 | conv(); | ^~~~ postbgi.c: At top level: postbgi.c:523:1: warning: return type defaults to 'int' [-Wimplicit-int] 523 | done() | ^~~~ postbgi.c:543:1: warning: return type defaults to 'int' [-Wimplicit-int] 543 | account() | ^~~~~~~ postbgi.c:560:1: warning: return type defaults to 'int' [-Wimplicit-int] 560 | conv() | ^~~~ postbgi.c: In function 'conv': postbgi.c:573:5: warning: implicit declaration of function 'redirect' [-Wimplicit-function-declaration] 573 | redirect(-1); /* get ready for the first page */ | ^~~~~~~~ postbgi.c:575:5: warning: implicit declaration of function 'formfeed' [-Wimplicit-function-declaration] 575 | formfeed(); | ^~~~~~~~ postbgi.c:577:19: warning: implicit declaration of function 'get_char'; did you mean 'getchar'? [-Wimplicit-function-declaration] 577 | while ( (ch = get_char()) != EOF ) { | ^~~~~~~~ | getchar postbgi.c:581:29: warning: implicit declaration of function 'text' [-Wimplicit-function-declaration] 581 | text(90); | ^~~~ postbgi.c:594:29: warning: implicit declaration of function 'subr_def' [-Wimplicit-function-declaration] 594 | subr_def(); | ^~~~~~~~ postbgi.c:598:29: warning: implicit declaration of function 'subr_end' [-Wimplicit-function-declaration] 598 | subr_end(); | ^~~~~~~~ postbgi.c:602:29: warning: implicit declaration of function 'subr_call' [-Wimplicit-function-declaration] 602 | subr_call(); | ^~~~~~~~~ postbgi.c:615:29: warning: implicit declaration of function 'repeat' [-Wimplicit-function-declaration] 615 | repeat(); | ^~~~~~ postbgi.c:619:29: warning: implicit declaration of function 'hgoto' [-Wimplicit-function-declaration] 619 | hgoto(get_int(0)); | ^~~~~ postbgi.c:619:35: warning: implicit declaration of function 'get_int'; did you mean 'get_font'? [-Wimplicit-function-declaration] 619 | hgoto(get_int(0)); | ^~~~~~~ | get_font postbgi.c:623:29: warning: implicit declaration of function 'vgoto' [-Wimplicit-function-declaration] 623 | vgoto(get_int(0)); | ^~~~~ postbgi.c:636:29: warning: implicit declaration of function 'vector' [-Wimplicit-function-declaration] 636 | vector(X_COORD, VISIBLE); | ^~~~~~ postbgi.c:660:29: warning: implicit declaration of function 'rectangle' [-Wimplicit-function-declaration] 660 | rectangle(OUTLINE); | ^~~~~~~~~ postbgi.c:665:29: warning: implicit declaration of function 'point_plot' [-Wimplicit-function-declaration] 665 | point_plot(ch, get_char()); | ^~~~~~~~~~ postbgi.c:669:29: warning: implicit declaration of function 'line_plot' [-Wimplicit-function-declaration] 669 | line_plot(); | ^~~~~~~~~ postbgi.c:673:62: warning: implicit declaration of function 'get_data' [-Wimplicit-function-declaration] 673 | fprintf(fp_out, "%s l\n", styles[get_data()]); | ^~~~~~~~ postbgi.c:693:29: warning: implicit declaration of function 'set_color' [-Wimplicit-function-declaration] 693 | set_color(get_data()); | ^~~~~~~~~ postbgi.c:697:29: warning: implicit declaration of function 'trapezoid' [-Wimplicit-function-declaration] 697 | trapezoid(); | ^~~~~~~~~ postbgi.c:701:29: warning: implicit declaration of function 'pattern' [-Wimplicit-function-declaration] 701 | pattern(); | ^~~~~~~ postbgi.c:705:29: warning: implicit declaration of function 'setsize' [-Wimplicit-function-declaration] 705 | setsize(get_data()); | ^~~~~~~ postbgi.c: At top level: postbgi.c:726:1: warning: return type defaults to 'int' [-Wimplicit-int] 726 | hgoto(n) | ^~~~~ postbgi.c:744:1: warning: return type defaults to 'int' [-Wimplicit-int] 744 | vgoto(n) | ^~~~~ postbgi.c:762:1: warning: return type defaults to 'int' [-Wimplicit-int] 762 | setsize(n) | ^~~~~~~ postbgi.c:788:1: warning: return type defaults to 'int' [-Wimplicit-int] 788 | repeat() | ^~~~~~ postbgi.c:810:1: warning: return type defaults to 'int' [-Wimplicit-int] 810 | text(angle) | ^~~~ postbgi.c:864:1: warning: return type defaults to 'int' [-Wimplicit-int] 864 | formfeed() | ^~~~~~~~ postbgi.c:912:1: warning: return type defaults to 'int' [-Wimplicit-int] 912 | subr_def() | ^~~~~~~~ postbgi.c:965:1: warning: return type defaults to 'int' [-Wimplicit-int] 965 | subr_end() | ^~~~~~~~ postbgi.c:1010:1: warning: return type defaults to 'int' [-Wimplicit-int] 1010 | subr_call() | ^~~~~~~~~ postbgi.c:1039:1: warning: return type defaults to 'int' [-Wimplicit-int] 1039 | vector(var, mode) | ^~~~~~ postbgi.c:1098:1: warning: return type defaults to 'int' [-Wimplicit-int] 1098 | rectangle(mode) | ^~~~~~~~~ postbgi.c:1127:1: warning: return type defaults to 'int' [-Wimplicit-int] 1127 | trapezoid() | ^~~~~~~~~ postbgi.c:1164:1: warning: return type defaults to 'int' [-Wimplicit-int] 1164 | point_plot(mode, ch) | ^~~~~~~~~~ postbgi.c:1226:1: warning: return type defaults to 'int' [-Wimplicit-int] 1226 | line_plot() | ^~~~~~~~~ postbgi.c:1309:1: warning: return type defaults to 'int' [-Wimplicit-int] 1309 | pattern() | ^~~~~~~ postbgi.c: In function 'pattern': postbgi.c:1341:16: warning: implicit declaration of function 'get_color' [-Wimplicit-function-declaration] 1341 | red += get_color(val, RED); | ^~~~~~~~~ postbgi.c: At top level: postbgi.c:1352:1: warning: return type defaults to 'int' [-Wimplicit-int] 1352 | get_color(val, component) | ^~~~~~~~~ postbgi.c:1402:1: warning: return type defaults to 'int' [-Wimplicit-int] 1402 | set_color(val) | ^~~~~~~~~ postbgi.c:1420:1: warning: return type defaults to 'int' [-Wimplicit-int] 1420 | get_int(highbyte) | ^~~~~~~ postbgi.c:1448:1: warning: return type defaults to 'int' [-Wimplicit-int] 1448 | get_data() | ^~~~~~~~ postbgi.c:1470:1: warning: return type defaults to 'int' [-Wimplicit-int] 1470 | get_char() | ^~~~~~~~ postbgi.c:1499:1: warning: return type defaults to 'int' [-Wimplicit-int] 1499 | redirect(pg) | ^~~~~~~~ postbgi.c: In function 'redirect': postbgi.c:1514:21: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 1514 | if ( pg >= 0 && in_olist(pg) == ON ) | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o postbgi postbgi.o ../common/glob.o ../common/misc.o ../common/request.o -lm ---- Making all in directory postscript/postdaisy ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -I/usr/pkg/include -c postdaisy.c postdaisy.c:143:1: warning: return type defaults to 'int' [-Wimplicit-int] 143 | main(agc, agv) | ^~~~ postdaisy.c: In function 'main': postdaisy.c:163:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 163 | init_signals(); /* sets up interrupt handling */ | ^~~~~~~~~~~~ postdaisy.c:164:5: warning: implicit declaration of function 'header' [-Wimplicit-function-declaration] 164 | header(); /* PostScript header comments */ | ^~~~~~ postdaisy.c:165:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 165 | options(); /* handle the command line options */ | ^~~~~~~ postdaisy.c:166:5: warning: implicit declaration of function 'setup'; did you mean 'setbuf'? [-Wimplicit-function-declaration] 166 | setup(); /* for PostScript */ | ^~~~~ | setbuf postdaisy.c:167:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 167 | arguments(); /* followed by each input file */ | ^~~~~~~~~ postdaisy.c:168:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 168 | done(); /* print the last page etc. */ | ^~~~ postdaisy.c:169:5: warning: implicit declaration of function 'account' [-Wimplicit-function-declaration] 169 | account(); /* job accounting data */ | ^~~~~~~ postdaisy.c: At top level: postdaisy.c:177:1: warning: return type defaults to 'int' [-Wimplicit-int] 177 | init_signals() | ^~~~~~~~~~~~ postdaisy.c:202:1: warning: return type defaults to 'int' [-Wimplicit-int] 202 | header() | ^~~~~~ postdaisy.c: In function 'header': postdaisy.c:221:19: warning: implicit declaration of function 'getopt'; did you mean 'get_font'? [-Wimplicit-function-declaration] 221 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) | ^~~~~~ | get_font postdaisy.c:225:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 225 | error(FATAL, ""); | ^~~~~ | perror postdaisy.c:235:10: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 235 | if ( cat(prologue) == FALSE ) | ^~~ postdaisy.c: At top level: postdaisy.c:249:1: warning: return type defaults to 'int' [-Wimplicit-int] 249 | options() | ^~~~~~~ postdaisy.c: In function 'options': postdaisy.c:303:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 303 | out_list(optarg); | ^~~~~~~~ postdaisy.c:362:21: warning: implicit declaration of function 'saverequest' [-Wimplicit-function-declaration] 362 | saverequest(optarg); | ^~~~~~~~~~~ postdaisy.c: At top level: postdaisy.c:417:1: warning: return type defaults to 'int' [-Wimplicit-int] 417 | setup() | ^~~~~ postdaisy.c: In function 'setup': postdaisy.c:428:5: warning: implicit declaration of function 'writerequest' [-Wimplicit-function-declaration] 428 | writerequest(0, stdout); /* global requests eg. manual feed */ | ^~~~~~~~~~~~ postdaisy.c:429:5: warning: implicit declaration of function 'setencoding' [-Wimplicit-function-declaration] 429 | setencoding(fontencoding); | ^~~~~~~~~~~ postdaisy.c: At top level: postdaisy.c:444:1: warning: return type defaults to 'int' [-Wimplicit-int] 444 | arguments() | ^~~~~~~~~ postdaisy.c: In function 'arguments': postdaisy.c:459:9: warning: implicit declaration of function 'text' [-Wimplicit-function-declaration] 459 | text(); | ^~~~ postdaisy.c: At top level: postdaisy.c:478:1: warning: return type defaults to 'int' [-Wimplicit-int] 478 | done() | ^~~~ postdaisy.c:498:1: warning: return type defaults to 'int' [-Wimplicit-int] 498 | account() | ^~~~~~~ postdaisy.c:516:1: warning: return type defaults to 'int' [-Wimplicit-int] 516 | text() | ^~~~ postdaisy.c: In function 'text': postdaisy.c:530:5: warning: implicit declaration of function 'redirect' [-Wimplicit-function-declaration] 530 | redirect(-1); /* get ready for the first page */ | ^~~~~~~~ postdaisy.c:531:5: warning: implicit declaration of function 'formfeed' [-Wimplicit-function-declaration] 531 | formfeed(); /* force PAGE comment etc. */ | ^~~~~~~~ postdaisy.c:532:5: warning: implicit declaration of function 'inittabs'; did you mean 'initstate'? [-Wimplicit-function-declaration] 532 | inittabs(); | ^~~~~~~~ | initstate postdaisy.c:537:21: warning: implicit declaration of function 'backspace' [-Wimplicit-function-declaration] 537 | backspace(); | ^~~~~~~~~ postdaisy.c:541:21: warning: implicit declaration of function 'htab' [-Wimplicit-function-declaration] 541 | htab(); | ^~~~ postdaisy.c:545:21: warning: implicit declaration of function 'linefeed' [-Wimplicit-function-declaration] 545 | linefeed(); | ^~~~~~~~ postdaisy.c:549:21: warning: implicit declaration of function 'vtab' [-Wimplicit-function-declaration] 549 | vtab(); | ^~~~ postdaisy.c:557:21: warning: implicit declaration of function 'carriage' [-Wimplicit-function-declaration] 557 | carriage(); | ^~~~~~~~ postdaisy.c:570:21: warning: implicit declaration of function 'escape' [-Wimplicit-function-declaration] 570 | escape(); | ^~~~~~ postdaisy.c:574:21: warning: implicit declaration of function 'oput' [-Wimplicit-function-declaration] 574 | oput(ch); | ^~~~ postdaisy.c: At top level: postdaisy.c:584:1: warning: return type defaults to 'int' [-Wimplicit-int] 584 | inittabs() | ^~~~~~~~ postdaisy.c:607:1: warning: return type defaults to 'int' [-Wimplicit-int] 607 | cleartabs() | ^~~~~~~~~ postdaisy.c:629:1: warning: return type defaults to 'int' [-Wimplicit-int] 629 | formfeed() | ^~~~~~~~ postdaisy.c: In function 'formfeed': postdaisy.c:646:5: warning: implicit declaration of function 'endline' [-Wimplicit-function-declaration] 646 | endline(); /* print the last line */ | ^~~~~~~ postdaisy.c:664:5: warning: implicit declaration of function 'vgoto' [-Wimplicit-function-declaration] 664 | vgoto(topmargin); | ^~~~~ postdaisy.c:665:5: warning: implicit declaration of function 'hgoto' [-Wimplicit-function-declaration] 665 | hgoto(leftmargin); | ^~~~~ postdaisy.c: At top level: postdaisy.c:673:1: warning: return type defaults to 'int' [-Wimplicit-int] 673 | linefeed() | ^~~~~~~~ postdaisy.c: In function 'linefeed': postdaisy.c:688:5: warning: implicit declaration of function 'vmot' [-Wimplicit-function-declaration] 688 | vmot(vmi); | ^~~~ postdaisy.c: At top level: postdaisy.c:703:1: warning: return type defaults to 'int' [-Wimplicit-int] 703 | carriage() | ^~~~~~~~ postdaisy.c: In function 'carriage': postdaisy.c:715:9: warning: implicit declaration of function 'changefont' [-Wimplicit-function-declaration] 715 | changefont(fontname); | ^~~~~~~~~~ postdaisy.c: At top level: postdaisy.c:729:1: warning: return type defaults to 'int' [-Wimplicit-int] 729 | htab() | ^~~~ postdaisy.c:761:1: warning: return type defaults to 'int' [-Wimplicit-int] 761 | vtab() | ^~~~ postdaisy.c:790:1: warning: return type defaults to 'int' [-Wimplicit-int] 790 | backspace() | ^~~~~~~~~ postdaisy.c: In function 'backspace': postdaisy.c:804:9: warning: implicit declaration of function 'hmot' [-Wimplicit-function-declaration] 804 | hmot(-hmi); | ^~~~ postdaisy.c: At top level: postdaisy.c:813:1: warning: return type defaults to 'int' [-Wimplicit-int] 813 | escape() | ^~~~~~ postdaisy.c:984:1: warning: return type defaults to 'int' [-Wimplicit-int] 984 | vmot(n) | ^~~~ postdaisy.c:1002:1: warning: return type defaults to 'int' [-Wimplicit-int] 1002 | vgoto(n) | ^~~~~ postdaisy.c:1020:1: warning: return type defaults to 'int' [-Wimplicit-int] 1020 | hmot(n) | ^~~~ postdaisy.c:1041:1: warning: return type defaults to 'int' [-Wimplicit-int] 1041 | hgoto(n) | ^~~~~ postdaisy.c:1059:1: warning: return type defaults to 'int' [-Wimplicit-int] 1059 | changefont(name) | ^~~~~~~~~~ postdaisy.c:1079:1: warning: return type defaults to 'int' [-Wimplicit-int] 1079 | startline() | ^~~~~~~~~ postdaisy.c:1105:1: warning: return type defaults to 'int' [-Wimplicit-int] 1105 | endline() | ^~~~~~~ postdaisy.c:1125:1: warning: return type defaults to 'int' [-Wimplicit-int] 1125 | endstring() | ^~~~~~~~~ postdaisy.c:1147:1: warning: return type defaults to 'int' [-Wimplicit-int] 1147 | oput(ch) | ^~~~ postdaisy.c:1199:1: warning: return type defaults to 'int' [-Wimplicit-int] 1199 | redirect(pg) | ^~~~~~~~ postdaisy.c: In function 'redirect': postdaisy.c:1214:21: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 1214 | if ( pg >= 0 && in_olist(pg) == ON ) | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o postdaisy postdaisy.o ../common/glob.o ../common/misc.o ../common/request.o ---- Making all in directory postscript/postdmd ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -I/usr/pkg/include -c postdmd.c postdmd.c:139:1: warning: return type defaults to 'int' [-Wimplicit-int] 139 | main(agc, agv) | ^~~~ postdmd.c: In function 'main': postdmd.c:160:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 160 | init_signals(); /* sets up interrupt handling */ | ^~~~~~~~~~~~ postdmd.c:161:5: warning: implicit declaration of function 'header' [-Wimplicit-function-declaration] 161 | header(); /* PostScript header comments */ | ^~~~~~ postdmd.c:162:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 162 | options(); /* handle the command line options */ | ^~~~~~~ postdmd.c:163:5: warning: implicit declaration of function 'setup'; did you mean 'setbuf'? [-Wimplicit-function-declaration] 163 | setup(); /* for PostScript */ | ^~~~~ | setbuf postdmd.c:164:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 164 | arguments(); /* followed by each input file */ | ^~~~~~~~~ postdmd.c:165:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 165 | done(); /* print the last page etc. */ | ^~~~ postdmd.c:166:5: warning: implicit declaration of function 'account' [-Wimplicit-function-declaration] 166 | account(); /* job accounting data */ | ^~~~~~~ postdmd.c: At top level: postdmd.c:174:1: warning: return type defaults to 'int' [-Wimplicit-int] 174 | init_signals() | ^~~~~~~~~~~~ postdmd.c:199:1: warning: return type defaults to 'int' [-Wimplicit-int] 199 | header() | ^~~~~~ postdmd.c: In function 'header': postdmd.c:218:19: warning: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] 218 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) | ^~~~~~ | getsubopt postdmd.c:222:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 222 | error(FATAL, ""); | ^~~~~ | perror postdmd.c:232:10: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 232 | if ( cat(prologue) == FALSE ) | ^~~ postdmd.c: At top level: postdmd.c:243:1: warning: return type defaults to 'int' [-Wimplicit-int] 243 | options() | ^~~~~~~ postdmd.c: In function 'options': postdmd.c:287:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 287 | out_list(optarg); | ^~~~~~~~ postdmd.c:332:21: warning: implicit declaration of function 'saverequest' [-Wimplicit-function-declaration] 332 | saverequest(optarg); | ^~~~~~~~~~~ postdmd.c: At top level: postdmd.c:360:1: warning: return type defaults to 'int' [-Wimplicit-int] 360 | setup() | ^~~~~ postdmd.c: In function 'setup': postdmd.c:371:5: warning: implicit declaration of function 'writerequest' [-Wimplicit-function-declaration] 371 | writerequest(0, stdout); /* global requests eg. manual feed */ | ^~~~~~~~~~~~ postdmd.c:372:5: warning: implicit declaration of function 'setencoding' [-Wimplicit-function-declaration] 372 | setencoding(fontencoding); /* unnecessary */ | ^~~~~~~~~~~ postdmd.c: At top level: postdmd.c:387:1: warning: return type defaults to 'int' [-Wimplicit-int] 387 | arguments() | ^~~~~~~~~ postdmd.c: In function 'arguments': postdmd.c:402:9: warning: implicit declaration of function 'bitmap' [-Wimplicit-function-declaration] 402 | bitmap(stdin); | ^~~~~~ postdmd.c: At top level: postdmd.c:421:1: warning: return type defaults to 'int' [-Wimplicit-int] 421 | done() | ^~~~ postdmd.c:442:1: warning: return type defaults to 'int' [-Wimplicit-int] 442 | account() | ^~~~~~~ postdmd.c:460:1: warning: return type defaults to 'int' [-Wimplicit-int] 460 | bitmap(fp) | ^~~~~~ postdmd.c: In function 'bitmap': postdmd.c:479:13: warning: implicit declaration of function 'dimensions' [-Wimplicit-function-declaration] 479 | while ( dimensions() == TRUE ) { | ^~~~~~~~~~ postdmd.c:486:9: warning: implicit declaration of function 'redirect' [-Wimplicit-function-declaration] 486 | redirect(++page); | ^~~~~~~~ postdmd.c:499:17: warning: implicit declaration of function 'putrast' [-Wimplicit-function-declaration] 499 | putrast(); | ^~~~~~~ postdmd.c: At top level: postdmd.c:519:1: warning: return type defaults to 'int' [-Wimplicit-int] 519 | dimensions() | ^~~~~~~~~~ postdmd.c: In function 'dimensions': postdmd.c:536:23: warning: implicit declaration of function 'getint'; did you mean 'getenv'? [-Wimplicit-function-declaration] 536 | if ( (scanlines = getint()) == 0 ) { | ^~~~~~ | getenv postdmd.c: At top level: postdmd.c:610:1: warning: return type defaults to 'int' [-Wimplicit-int] 610 | putrast() | ^~~~~~~ postdmd.c: In function 'putrast': postdmd.c:633:14: warning: implicit declaration of function 'patncmp' [-Wimplicit-function-declaration] 633 | if ( patncmp(p1, n) == TRUE ) { | ^~~~~~~ postdmd.c: At top level: postdmd.c:657:1: warning: return type defaults to 'int' [-Wimplicit-int] 657 | patncmp(p1, n) | ^~~~~~~ postdmd.c:685:1: warning: return type defaults to 'int' [-Wimplicit-int] 685 | getint() | ^~~~~~ postdmd.c:706:1: warning: return type defaults to 'int' [-Wimplicit-int] 706 | redirect(pg) | ^~~~~~~~ postdmd.c: In function 'redirect': postdmd.c:721:21: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 721 | if ( pg >= 0 && in_olist(pg) == ON ) | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o postdmd postdmd.o ../common/glob.o ../common/misc.o ../common/request.o ---- Making all in directory postscript/postgif ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -I/usr/pkg/include -c postgif.c postgif.c: In function 'allocate': postgif.c:54:37: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 54 | if ((p = malloc(size)) == NULL) error(FATAL, "not enough memory"); | ^~~~~ | perror postgif.c: In function 'nextbyte': postgif.c:173:12: warning: type defaults to 'int' in declaration of 'ibufindex' [-Wimplicit-int] 173 | static ibufindex; | ^~~~~~~~~ postgif.c: In function 'redirect': postgif.c:473:21: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 473 | if ( pg >= 0 && in_olist(pg) == ON ) | ^~~~~~~~ postgif.c: In function 'header': postgif.c:559:19: warning: implicit declaration of function 'getopt' [-Wimplicit-function-declaration] 559 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) | ^~~~~~ postgif.c:573:10: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 573 | if ( cat(prologue) == FALSE ) | ^~~ postgif.c: In function 'options': postgif.c:622:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 622 | out_list(optarg); | ^~~~~~~~ postgif.c: At top level: postgif.c:732:1: warning: return type defaults to 'int' [-Wimplicit-int] 732 | main(agc, agv) | ^~~~ postgif.c: In function 'readgcolormap': postgif.c:115:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 115 | fread(gcmap, sizeof(*gcmap), entries*3, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c: In function 'readlcolormap': postgif.c:139:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 139 | fread(lcmap, sizeof(*lcmap), entries*3, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c: In function 'nextbyte': postgif.c:180:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 180 | fread(ibuf, sizeof(*ibuf), 1, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c:183:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 183 | if (byteinibuf) fread(ibuf, sizeof(*ibuf), byteinibuf, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c: In function 'readimage': postgif.c:356:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 356 | fread(ibuf, sizeof(*ibuf), 9, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c:379:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 379 | fread(ibuf, sizeof(*ibuf), 1, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c:411:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 411 | fread(ibuf, sizeof(*ibuf), 1, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c:414:24: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 414 | if (bytecount) fread(ibuf, sizeof(*ibuf), bytecount, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c: In function 'readextensionblock': postgif.c:434:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 434 | fread(ibuf, sizeof(*ibuf), 1, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c:438:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 438 | fread(ibuf, sizeof(*ibuf), 1, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c:441:24: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 441 | if (bytecount) fread(ibuf, sizeof(*ibuf), bytecount, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c: In function 'readgif': postgif.c:490:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 490 | fread(ibuf, sizeof(*ibuf), 6, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c:493:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 493 | fread(ibuf, sizeof(*ibuf), 122, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c:494:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 494 | fread(ibuf, sizeof(*ibuf), 6, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c:499:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 499 | fread(ibuf, sizeof(*ibuf), 7, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postgif.c:522:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 522 | fread(ibuf, sizeof(*ibuf), 1, fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o postgif postgif.o ../common/glob.o ../common/misc.o ../common/request.o -lm ---- Making all in directory postscript/postio ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DBSD4_2 -I/usr/pkg/include -c postio.c postio.c:163:1: warning: return type defaults to 'int' [-Wimplicit-int] 163 | main(agc, agv) | ^~~~ postio.c: In function 'main': postio.c:184:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 184 | init_signals(); /* sets up interrupt handling */ | ^~~~~~~~~~~~ postio.c:185:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 185 | options(); /* get command line options */ | ^~~~~~~ postio.c:186:5: warning: implicit declaration of function 'initialize' [-Wimplicit-function-declaration] 186 | initialize(); /* must be done after options() */ | ^~~~~~~~~~ postio.c:188:5: warning: implicit declaration of function 'split' [-Wimplicit-function-declaration] 188 | split(); /* into read/write processes - maybe */ | ^~~~~ postio.c:189:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 189 | arguments(); /* then send each input file */ | ^~~~~~~~~ postio.c:191:5: warning: implicit declaration of function 'cleanup' [-Wimplicit-function-declaration] 191 | cleanup(); /* make sure the write process stops */ | ^~~~~~~ postio.c: At top level: postio.c:199:1: warning: return type defaults to 'int' [-Wimplicit-int] 199 | init_signals() | ^~~~~~~~~~~~ postio.c:230:1: warning: return type defaults to 'int' [-Wimplicit-int] 230 | options() | ^~~~~~~ postio.c: In function 'options': postio.c:249:19: warning: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] 249 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) { | ^~~~~~ | getsubopt postio.c:252:32: warning: implicit declaration of function 'getbaud' [-Wimplicit-function-declaration] 252 | baudrate = getbaud(optarg); | ^~~~~~~ postio.c:292:25: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 292 | error(NON_FATAL, "can't open log file %s", optarg); | ^~~~~ | perror postio.c: At top level: postio.c:335:1: warning: return type defaults to 'int' [-Wimplicit-int] 335 | getbaud(rate) | ^~~~~~~ postio.c:361:1: warning: return type defaults to 'int' [-Wimplicit-int] 361 | initialize() | ^~~~~~~~~~ postio.c: In function 'initialize': postio.c:413:5: warning: implicit declaration of function 'setupline'; did you mean 'getline'? [-Wimplicit-function-declaration] 413 | setupline(); /* configure the communications line */ | ^~~~~~~~~ | getline postio.c:414:5: warning: implicit declaration of function 'setupstdin' [-Wimplicit-function-declaration] 414 | setupstdin(0); /* save current stdin terminal settings */ | ^~~~~~~~~~ postio.c: In function 'start': postio.c:433:5: warning: implicit declaration of function 'logit' [-Wimplicit-function-declaration] 433 | logit("printer startup\n"); | ^~~~~ postio.c:436:5: warning: implicit declaration of function 'clearline'; did you mean 'clearenv'? [-Wimplicit-function-declaration] 436 | clearline(); | ^~~~~~~~~ | clearenv postio.c:439:18: warning: implicit declaration of function 'getstatus'; did you mean 'setstate'? [-Wimplicit-function-declaration] 439 | switch ( getstatus(1) ) { | ^~~~~~~~~ | setstate postio.c:443:25: warning: implicit declaration of function 'Write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 443 | Write(ttyo, postbegin, strlen(postbegin)); | ^~~~~ | fwrite postio.c:450:25: warning: implicit declaration of function 'Rest' [-Wimplicit-function-declaration] 450 | Rest(1); | ^~~~ postio.c: At top level: postio.c:483:1: warning: return type defaults to 'int' [-Wimplicit-int] 483 | split() | ^~~~~ postio.c: In function 'split': postio.c:507:14: warning: implicit declaration of function 'resetline'; did you mean 'getline'? [-Wimplicit-function-declaration] 507 | if ( resetline() == TRUE ) { | ^~~~~~~~~ | getline postio.c:508:19: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] 508 | pid = getpid(); | ^~~~~~ postio.c:510:30: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 510 | if ( (otherpid = fork()) == -1 ) | ^~~~ postio.c: At top level: postio.c:529:1: warning: return type defaults to 'int' [-Wimplicit-int] 529 | arguments() | ^~~~~~~~~ postio.c: In function 'arguments': postio.c:557:21: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 557 | close(fd_in); | ^~~~~ | pclose postio.c: In function 'send': postio.c:593:9: warning: implicit declaration of function 'slowsend' [-Wimplicit-function-declaration] 593 | slowsend(fd_in); | ^~~~~~~~ postio.c:597:13: warning: implicit declaration of function 'readblock'; did you mean 'realloc'? [-Wimplicit-function-declaration] 597 | while ( readblock(fd_in) ) | ^~~~~~~~~ | realloc postio.c:609:21: warning: implicit declaration of function 'writeblock'; did you mean 'sigblock'? [-Wimplicit-function-declaration] 609 | writeblock(); | ^~~~~~~~~~ | sigblock postio.c: In function 'done': postio.c:674:25: warning: implicit declaration of function 'sendsignal'; did you mean 'strsignal'? [-Wimplicit-function-declaration] 674 | sendsignal(joinsig); | ^~~~~~~~~~ | strsignal postio.c: At top level: postio.c:732:1: warning: return type defaults to 'int' [-Wimplicit-int] 732 | cleanup() | ^~~~~~~ postio.c: In function 'cleanup': postio.c:747:47: warning: implicit declaration of function 'wait' [-Wimplicit-function-declaration] 747 | while ( sendsignal(SIGKILL) != -1 && (w = wait((int *)0)) != otherpid && w != -1 ) ; | ^~~~ postio.c: At top level: postio.c:753:1: warning: return type defaults to 'int' [-Wimplicit-int] 753 | readblock(fd_in) | ^~~~~~~~~ postio.c: In function 'readblock': postio.c:776:22: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 776 | if ( (tail = read(fd_in, block, blocksize)) == -1 ) | ^~~~ | fread postio.c: At top level: postio.c:789:1: warning: return type defaults to 'int' [-Wimplicit-int] 789 | writeblock() | ^~~~~~~~~~ postio.c: In function 'writeblock': postio.c:803:19: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 803 | if ( (count = write(ttyo, &block[head], tail - head)) == -1 ) | ^~~~~ | fwrite postio.c: At top level: postio.c:815:1: warning: return type defaults to 'int' [-Wimplicit-int] 815 | getstatus(t) | ^~~~~~~~~ postio.c: In function 'getstatus': postio.c:838:40: warning: implicit declaration of function 'readline' [-Wimplicit-function-declaration] 838 | if ( canread == TRUE && (gotline = readline()) == TRUE ) { | ^~~~~~~~ postio.c:839:17: warning: implicit declaration of function 'parsemesg' [-Wimplicit-function-declaration] 839 | state = parsemesg(); | ^~~~~~~~~ postio.c: At top level: postio.c:866:1: warning: return type defaults to 'int' [-Wimplicit-int] 866 | parsemesg() | ^~~~~~~~~ postio.c: In function 'parsemesg': postio.c:926:20: warning: comparison between pointer and zero character constant [-Wpointer-compare] 926 | return(mesgptr == '\0' ? nostatus : UNKNOWN); | ^~ postio.c:926:12: note: did you mean to dereference the pointer? 926 | return(mesgptr == '\0' ? nostatus : UNKNOWN); | ^ postio.c: At top level: postio.c:960:1: warning: return type defaults to 'int' [-Wimplicit-int] 960 | clearline() | ^~~~~~~~~ postio.c:978:1: warning: return type defaults to 'int' [-Wimplicit-int] 978 | sendsignal(sig) | ^~~~~~~~~~ postio.c: In function 'interrupt': postio.c:1023:9: warning: implicit declaration of function 'quit' [-Wimplicit-function-declaration] 1023 | quit(sig); | ^~~~ postio.c: At top level: postio.c:1033:1: warning: return type defaults to 'int' [-Wimplicit-int] 1033 | logit(mesg, a1, a2, a3) | ^~~~~ postio.c:1055:1: warning: return type defaults to 'int' [-Wimplicit-int] 1055 | error(kind, mesg, a1, a2, a3) | ^~~~~ postio.c:1091:1: warning: return type defaults to 'int' [-Wimplicit-int] 1091 | quit(sig) | ^~~~ postio.c: In function 'quit': postio.c:1132:5: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] 1132 | alarm(0); /* prevents sleep() loop on V9 systems */ | ^~~~~ postio.c: At top level: postio.c:1141:1: warning: return type defaults to 'int' [-Wimplicit-int] 1141 | Rest(t) | ^~~~ postio.c: In function 'Rest': postio.c:1157:9: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] 1157 | sleep(t); | ^~~~~ postio.c: At top level: postio.c:1163:1: warning: return type defaults to 'int' [-Wimplicit-int] 1163 | Read(fd, buf, n) | ^~~~ postio.c:1193:1: warning: return type defaults to 'int' [-Wimplicit-int] 1193 | Write(fd, buf, n) | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DBSD4_2 -I/usr/pkg/include -c ifdef.c ifdef.c:503:1: warning: return type defaults to 'int' [-Wimplicit-int] 503 | setupline() | ^~~~~~~~~ ifdef.c: In function 'setupline': ifdef.c:528:9: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 528 | error(FATAL, "can't open %s", line); | ^~~~~ | perror ifdef.c:530:18: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] 530 | if ( (ttyo = dup(ttyi)) == -1 ) | ^~~ ifdef.c:533:9: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration] 533 | if (ioctl(ttyi, TIOCSETD, &disc) == -1 ) | ^~~~~ ifdef.c: At top level: ifdef.c:564:1: warning: return type defaults to 'int' [-Wimplicit-int] 564 | resetline() | ^~~~~~~~~ ifdef.c:594:1: warning: return type defaults to 'int' [-Wimplicit-int] 594 | setupstdin(mode) | ^~~~~~~~~~ ifdef.c: In function 'setupstdin': ifdef.c:618:22: warning: implicit declaration of function 'isatty' [-Wimplicit-function-declaration] 618 | if ( isatty(0) != 1 ) | ^~~~~~ ifdef.c: At top level: ifdef.c:642:1: warning: return type defaults to 'int' [-Wimplicit-int] 642 | readline() | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DBSD4_2 -I/usr/pkg/include -c slowsend.c slowsend.c:30:8: warning: type defaults to 'int' in declaration of 'writeblock' [-Wimplicit-int] 30 | static writeblock(int num); | ^~~~~~~~~~ slowsend.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int] 34 | slowsend(fd_in) | ^~~~~~~~ slowsend.c: In function 'slowsend': slowsend.c:51:13: warning: implicit declaration of function 'readblock' [-Wimplicit-function-declaration] 51 | while ( readblock(fd_in) ) | ^~~~~~~~~ slowsend.c:52:18: warning: implicit declaration of function 'getstatus' [-Wimplicit-function-declaration] 52 | switch ( getstatus(0) ) { | ^~~~~~~~~ slowsend.c:68:21: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] 68 | sleep(30); | ^~~~~ slowsend.c:73:21: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 73 | error(FATAL, "PostScript Error"); | ^~~~~ | perror slowsend.c: At top level: slowsend.c:93:8: warning: return type defaults to 'int' [-Wimplicit-int] 93 | static writeblock(num) | ^~~~~~~~~~ slowsend.c: In function 'writeblock': slowsend.c:112:19: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 112 | if ( (count = write(ttyo, &block[head], num)) == -1 ) | ^~~~~ | fwrite cc -pipe -O2 -I/usr/pkg/include -I../common -DBSD4_2 -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o postio postio.o ifdef.o slowsend.o ---- Making all in directory postscript/postmd ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -I/usr/pkg/include -c postmd.c postmd.c:208:1: warning: return type defaults to 'int' [-Wimplicit-int] 208 | main(agc, agv) | ^~~~ postmd.c: In function 'main': postmd.c:231:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 231 | init_signals(); /* sets up interrupt handling */ | ^~~~~~~~~~~~ postmd.c:232:5: warning: implicit declaration of function 'header' [-Wimplicit-function-declaration] 232 | header(); /* PostScript header comments */ | ^~~~~~ postmd.c:233:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 233 | options(); /* handle the command line options */ | ^~~~~~~ postmd.c:234:5: warning: implicit declaration of function 'setup'; did you mean 'setbuf'? [-Wimplicit-function-declaration] 234 | setup(); /* for PostScript */ | ^~~~~ | setbuf postmd.c:235:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 235 | arguments(); /* followed by each input file */ | ^~~~~~~~~ postmd.c:236:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 236 | done(); /* print the last page etc. */ | ^~~~ postmd.c:237:5: warning: implicit declaration of function 'account' [-Wimplicit-function-declaration] 237 | account(); /* job accounting data */ | ^~~~~~~ postmd.c: At top level: postmd.c:245:1: warning: return type defaults to 'int' [-Wimplicit-int] 245 | init_signals() | ^~~~~~~~~~~~ postmd.c:271:1: warning: return type defaults to 'int' [-Wimplicit-int] 271 | header() | ^~~~~~ postmd.c: In function 'header': postmd.c:290:19: warning: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] 290 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) | ^~~~~~ | getsubopt postmd.c:294:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 294 | error(FATAL, ""); | ^~~~~ | perror postmd.c:304:10: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 304 | if ( cat(prologue) == FALSE ) | ^~~ postmd.c: At top level: postmd.c:315:1: warning: return type defaults to 'int' [-Wimplicit-int] 315 | options() | ^~~~~~~ postmd.c: In function 'options': postmd.c:367:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 367 | out_list(optarg); | ^~~~~~~~ postmd.c:412:21: warning: implicit declaration of function 'saverequest' [-Wimplicit-function-declaration] 412 | saverequest(optarg); | ^~~~~~~~~~~ postmd.c: At top level: postmd.c:440:1: warning: return type defaults to 'int' [-Wimplicit-int] 440 | setup() | ^~~~~ postmd.c: In function 'setup': postmd.c:451:5: warning: implicit declaration of function 'writerequest' [-Wimplicit-function-declaration] 451 | writerequest(0, stdout); /* global requests eg. manual feed */ | ^~~~~~~~~~~~ postmd.c:452:5: warning: implicit declaration of function 'setencoding' [-Wimplicit-function-declaration] 452 | setencoding(fontencoding); | ^~~~~~~~~~~ postmd.c: At top level: postmd.c:467:1: warning: return type defaults to 'int' [-Wimplicit-int] 467 | arguments() | ^~~~~~~~~ postmd.c: In function 'arguments': postmd.c:480:9: warning: implicit declaration of function 'matrix' [-Wimplicit-function-declaration] 480 | matrix(); | ^~~~~~ postmd.c: At top level: postmd.c:501:1: warning: return type defaults to 'int' [-Wimplicit-int] 501 | done() | ^~~~ postmd.c: In function 'done': postmd.c:517:9: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 517 | unlink(temp_file); | ^~~~~~ postmd.c: At top level: postmd.c:523:1: warning: return type defaults to 'int' [-Wimplicit-int] 523 | account() | ^~~~~~~ postmd.c:541:1: warning: return type defaults to 'int' [-Wimplicit-int] 541 | matrix() | ^~~~~~ postmd.c: In function 'matrix': postmd.c:567:9: warning: implicit declaration of function 'copystdin' [-Wimplicit-function-declaration] 567 | copystdin(); | ^~~~~~~~~ postmd.c:572:5: warning: implicit declaration of function 'buildilist' [-Wimplicit-function-declaration] 572 | buildilist(interval); /* build the default ilist[] */ | ^~~~~~~~~~ postmd.c:573:5: warning: implicit declaration of function 'addcolormap' [-Wimplicit-function-declaration] 573 | addcolormap(colormap); /* add the colormap - if not NULL */ | ^~~~~~~~~~~ postmd.c:574:5: warning: implicit declaration of function 'setwindow' [-Wimplicit-function-declaration] 574 | setwindow(window); /* and setup the initial matrix window */ | ^~~~~~~~~ postmd.c:576:5: warning: implicit declaration of function 'getheader'; did you mean 'header'? [-Wimplicit-function-declaration] 576 | getheader(); /* matrix dimensions at the very least */ | ^~~~~~~~~ | header postmd.c:577:5: warning: implicit declaration of function 'dimensions' [-Wimplicit-function-declaration] 577 | dimensions(); /* make sure we have the dimensions etc. */ | ^~~~~~~~~~ postmd.c:584:5: warning: implicit declaration of function 'redirect' [-Wimplicit-function-declaration] 584 | redirect(++page); | ^~~~~~~~ postmd.c:592:14: warning: implicit declaration of function 'inwindow' [-Wimplicit-function-declaration] 592 | if ( inwindow() ) *rptr++ = mapfloat(element); | ^~~~~~~~ postmd.c:592:37: warning: implicit declaration of function 'mapfloat' [-Wimplicit-function-declaration] 592 | if ( inwindow() ) *rptr++ = mapfloat(element); | ^~~~~~~~ postmd.c:594:18: warning: implicit declaration of function 'inrange' [-Wimplicit-function-declaration] 594 | if ( inrange() ) | ^~~~~~~ postmd.c:595:17: warning: implicit declaration of function 'putrow'; did you mean 'putw'? [-Wimplicit-function-declaration] 595 | putrow(); | ^~~~~~ | putw postmd.c:601:5: warning: implicit declaration of function 'labelmatrix' [-Wimplicit-function-declaration] 601 | labelmatrix(); | ^~~~~~~~~~~ postmd.c: At top level: postmd.c:613:1: warning: return type defaults to 'int' [-Wimplicit-int] 613 | copystdin() | ^~~~~~~~~ postmd.c: In function 'copystdin': postmd.c:642:22: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 642 | while ( (count = read(fd_in, buf, sizeof(buf))) > 0 ) | ^~~~ | fread postmd.c:643:14: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 643 | if ( write(fd_out, buf, count) != count ) | ^~~~~ | fwrite postmd.c:646:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 646 | close(fd_out); | ^~~~~ | pclose postmd.c: At top level: postmd.c:655:1: warning: return type defaults to 'int' [-Wimplicit-int] 655 | getheader() | ^~~~~~~~~ postmd.c:752:1: warning: return type defaults to 'int' [-Wimplicit-int] 752 | dimensions() | ^~~~~~~~~~ postmd.c:803:1: warning: return type defaults to 'int' [-Wimplicit-int] 803 | buildilist(list) | ^~~~~~~~~~ postmd.c:864:1: warning: return type defaults to 'int' [-Wimplicit-int] 864 | addcolormap(list) | ^~~~~~~~~~~ postmd.c:897:1: warning: return type defaults to 'int' [-Wimplicit-int] 897 | setwindow(list) | ^~~~~~~~~ postmd.c:932:1: warning: return type defaults to 'int' [-Wimplicit-int] 932 | inwindow() | ^~~~~~~~ postmd.c:954:1: warning: return type defaults to 'int' [-Wimplicit-int] 954 | inrange() | ^~~~~~~ postmd.c:971:1: warning: return type defaults to 'int' [-Wimplicit-int] 971 | mapfloat(element) | ^~~~~~~~ postmd.c:999:1: warning: return type defaults to 'int' [-Wimplicit-int] 999 | putrow() | ^~~~~~ postmd.c: In function 'putrow': postmd.c:1018:14: warning: implicit declaration of function 'patncmp' [-Wimplicit-function-declaration] 1018 | if ( patncmp(p1, n) == TRUE ) { | ^~~~~~~ postmd.c: At top level: postmd.c:1042:1: warning: return type defaults to 'int' [-Wimplicit-int] 1042 | labelmatrix() | ^~~~~~~~~~~ postmd.c:1077:1: warning: return type defaults to 'int' [-Wimplicit-int] 1077 | patncmp(p1, n) | ^~~~~~~ postmd.c:1131:1: warning: return type defaults to 'int' [-Wimplicit-int] 1131 | redirect(pg) | ^~~~~~~~ postmd.c: In function 'redirect': postmd.c:1146:21: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 1146 | if ( pg >= 0 && in_olist(pg) == ON ) | ^~~~~~~~ postmd.c: In function 'getheader': postmd.c:720:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 720 | fscanf(fp_in, "%dx%d", &rows, &columns); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postmd.c:722:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 722 | fgets(buf, sizeof(buf), fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postmd.c:725:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 725 | fgets(buf, sizeof(buf), fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postmd.c:728:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 728 | fgets(buf, sizeof(buf), fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postmd.c:731:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 731 | fgets(buf, sizeof(buf), fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postmd.c:734:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 734 | fgets(buf, sizeof(buf), fp_in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ postmd.c:737:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 737 | fscanf(fp_in, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o postmd postmd.o ../common/glob.o ../common/misc.o ../common/request.o ../common/tempnam.o -lm /bin/ld: postmd.o: in function `copystdin': postmd.c:(.text+0x7bb): warning: the use of `tempnam' is dangerous, better use `mkstemp' ---- Making all in directory postscript/postplot ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -I/usr/pkg/include -c postplot.c postplot.c:158:1: warning: return type defaults to 'int' [-Wimplicit-int] 158 | main(agc, agv) | ^~~~ postplot.c: In function 'main': postplot.c:178:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 178 | init_signals(); /* sets up interrupt handling */ | ^~~~~~~~~~~~ postplot.c:179:5: warning: implicit declaration of function 'header' [-Wimplicit-function-declaration] 179 | header(); /* PostScript header and prologue */ | ^~~~~~ postplot.c:180:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 180 | options(); /* handle the command line options */ | ^~~~~~~ postplot.c:181:5: warning: implicit declaration of function 'setup'; did you mean 'setbuf'? [-Wimplicit-function-declaration] 181 | setup(); /* for PostScript */ | ^~~~~ | setbuf postplot.c:182:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 182 | arguments(); /* followed by each input file */ | ^~~~~~~~~ postplot.c:183:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 183 | done(); /* print the last page etc. */ | ^~~~ postplot.c:184:5: warning: implicit declaration of function 'account' [-Wimplicit-function-declaration] 184 | account(); /* job accounting data */ | ^~~~~~~ postplot.c: At top level: postplot.c:192:1: warning: return type defaults to 'int' [-Wimplicit-int] 192 | init_signals() | ^~~~~~~~~~~~ postplot.c:217:1: warning: return type defaults to 'int' [-Wimplicit-int] 217 | header() | ^~~~~~ postplot.c: In function 'header': postplot.c:236:19: warning: implicit declaration of function 'getopt'; did you mean 'get_font'? [-Wimplicit-function-declaration] 236 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) | ^~~~~~ | get_font postplot.c:240:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 240 | error(FATAL, ""); | ^~~~~ | perror postplot.c:250:10: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 250 | if ( cat(prologue) == FALSE ) | ^~~ postplot.c: At top level: postplot.c:261:1: warning: return type defaults to 'int' [-Wimplicit-int] 261 | options() | ^~~~~~~ postplot.c: In function 'options': postplot.c:302:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 302 | out_list(optarg); | ^~~~~~~~ postplot.c:351:21: warning: implicit declaration of function 'saverequest' [-Wimplicit-function-declaration] 351 | saverequest(optarg); | ^~~~~~~~~~~ postplot.c: At top level: postplot.c:405:1: warning: return type defaults to 'int' [-Wimplicit-int] 405 | setup() | ^~~~~ postplot.c: In function 'setup': postplot.c:416:5: warning: implicit declaration of function 'writerequest' [-Wimplicit-function-declaration] 416 | writerequest(0, stdout); /* global requests eg. manual feed */ | ^~~~~~~~~~~~ postplot.c:417:5: warning: implicit declaration of function 'setencoding' [-Wimplicit-function-declaration] 417 | setencoding(fontencoding); | ^~~~~~~~~~~ postplot.c: At top level: postplot.c:432:1: warning: return type defaults to 'int' [-Wimplicit-int] 432 | arguments() | ^~~~~~~~~ postplot.c: In function 'arguments': postplot.c:445:9: warning: implicit declaration of function 'plot' [-Wimplicit-function-declaration] 445 | plot(); | ^~~~ postplot.c: At top level: postplot.c:464:1: warning: return type defaults to 'int' [-Wimplicit-int] 464 | plot() | ^~~~ postplot.c: In function 'plot': postplot.c:481:5: warning: implicit declaration of function 'redirect' [-Wimplicit-function-declaration] 481 | redirect(-1); | ^~~~~~~~ postplot.c:482:5: warning: implicit declaration of function 'formfeed' [-Wimplicit-function-declaration] 482 | formfeed(); | ^~~~~~~~ postplot.c:487:24: warning: implicit declaration of function 'getint'; did you mean 'getenv'? [-Wimplicit-function-declaration] 487 | hpos = getint(); | ^~~~~~ | getenv postplot.c:519:17: warning: implicit declaration of function 'connect' [-Wimplicit-function-declaration] 519 | connect(); | ^~~~~~~ postplot.c:558:17: warning: implicit declaration of function 'setstyle'; did you mean 'setstate'? [-Wimplicit-function-declaration] 558 | setstyle(s); | ^~~~~~~~ | setstate postplot.c: At top level: postplot.c:583:1: warning: return type defaults to 'int' [-Wimplicit-int] 583 | connect() | ^~~~~~~ postplot.c:619:1: warning: return type defaults to 'int' [-Wimplicit-int] 619 | setstyle(str) | ^~~~~~~~ postplot.c:647:1: warning: return type defaults to 'int' [-Wimplicit-int] 647 | getint() | ^~~~~~ postplot.c:697:1: warning: return type defaults to 'int' [-Wimplicit-int] 697 | done() | ^~~~ postplot.c:718:1: warning: return type defaults to 'int' [-Wimplicit-int] 718 | account() | ^~~~~~~ postplot.c:736:1: warning: return type defaults to 'int' [-Wimplicit-int] 736 | formfeed() | ^~~~~~~~ postplot.c:779:1: warning: return type defaults to 'int' [-Wimplicit-int] 779 | redirect(pg) | ^~~~~~~~ postplot.c: In function 'redirect': postplot.c:794:21: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 794 | if ( pg >= 0 && in_olist(pg) == ON ) | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o postplot postplot.o ../common/glob.o ../common/misc.o ../common/request.o ---- Making all in directory postscript/postprint ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -I/usr/pkg/include -c postprint.c postprint.c:124:1: warning: return type defaults to 'int' [-Wimplicit-int] 124 | main(agc, agv) | ^~~~ postprint.c: In function 'main': postprint.c:145:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 145 | init_signals(); /* sets up interrupt handling */ | ^~~~~~~~~~~~ postprint.c:146:5: warning: implicit declaration of function 'header' [-Wimplicit-function-declaration] 146 | header(); /* PostScript header and prologue */ | ^~~~~~ postprint.c:147:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 147 | options(); /* handle the command line options */ | ^~~~~~~ postprint.c:148:5: warning: implicit declaration of function 'setup'; did you mean 'setbuf'? [-Wimplicit-function-declaration] 148 | setup(); /* for PostScript */ | ^~~~~ | setbuf postprint.c:149:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 149 | arguments(); /* followed by each input file */ | ^~~~~~~~~ postprint.c:150:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 150 | done(); /* print the last page etc. */ | ^~~~ postprint.c:151:5: warning: implicit declaration of function 'account' [-Wimplicit-function-declaration] 151 | account(); /* job accounting data */ | ^~~~~~~ postprint.c: At top level: postprint.c:159:1: warning: return type defaults to 'int' [-Wimplicit-int] 159 | init_signals() | ^~~~~~~~~~~~ postprint.c:184:1: warning: return type defaults to 'int' [-Wimplicit-int] 184 | header() | ^~~~~~ postprint.c: In function 'header': postprint.c:203:19: warning: implicit declaration of function 'getopt'; did you mean 'get_font'? [-Wimplicit-function-declaration] 203 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) | ^~~~~~ | get_font postprint.c:207:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 207 | error(FATAL, ""); | ^~~~~ | perror postprint.c:217:10: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 217 | if ( cat(prologue) == FALSE ) | ^~~ postprint.c: At top level: postprint.c:231:1: warning: return type defaults to 'int' [-Wimplicit-int] 231 | options() | ^~~~~~~ postprint.c: In function 'options': postprint.c:284:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 284 | out_list(optarg); | ^~~~~~~~ postprint.c:338:21: warning: implicit declaration of function 'saverequest' [-Wimplicit-function-declaration] 338 | saverequest(optarg); | ^~~~~~~~~~~ postprint.c: At top level: postprint.c:393:1: warning: return type defaults to 'int' [-Wimplicit-int] 393 | setup() | ^~~~~ postprint.c: In function 'setup': postprint.c:407:5: warning: implicit declaration of function 'writerequest' [-Wimplicit-function-declaration] 407 | writerequest(0, stdout); /* global requests eg. manual feed */ | ^~~~~~~~~~~~ postprint.c:408:5: warning: implicit declaration of function 'setencoding' [-Wimplicit-function-declaration] 408 | setencoding(fontencoding); | ^~~~~~~~~~~ postprint.c: At top level: postprint.c:426:1: warning: return type defaults to 'int' [-Wimplicit-int] 426 | arguments() | ^~~~~~~~~ postprint.c: In function 'arguments': postprint.c:439:9: warning: implicit declaration of function 'text' [-Wimplicit-function-declaration] 439 | text(); | ^~~~ postprint.c: At top level: postprint.c:458:1: warning: return type defaults to 'int' [-Wimplicit-int] 458 | done() | ^~~~ postprint.c:479:1: warning: return type defaults to 'int' [-Wimplicit-int] 479 | account() | ^~~~~~~ postprint.c:497:1: warning: return type defaults to 'int' [-Wimplicit-int] 497 | text() | ^~~~ postprint.c: In function 'text': postprint.c:514:5: warning: implicit declaration of function 'redirect' [-Wimplicit-function-declaration] 514 | redirect(-1); /* get ready for the first page */ | ^~~~~~~~ postprint.c:515:5: warning: implicit declaration of function 'formfeed' [-Wimplicit-function-declaration] 515 | formfeed(); /* force PAGE comment etc. */ | ^~~~~~~~ postprint.c:520:21: warning: implicit declaration of function 'newline'; did you mean 'getline'? [-Wimplicit-function-declaration] 520 | newline(); | ^~~~~~~ | getline postprint.c:526:21: warning: implicit declaration of function 'spaces' [-Wimplicit-function-declaration] 526 | spaces(ch); | ^~~~~~ postprint.c:541:21: warning: implicit declaration of function 'oput' [-Wimplicit-function-declaration] 541 | oput(ch); | ^~~~ postprint.c: At top level: postprint.c:551:1: warning: return type defaults to 'int' [-Wimplicit-int] 551 | formfeed() | ^~~~~~~~ postprint.c: In function 'formfeed': postprint.c:573:5: warning: implicit declaration of function 'endline' [-Wimplicit-function-declaration] 573 | endline(); /* print the last line */ | ^~~~~~~ postprint.c: At top level: postprint.c:596:1: warning: return type defaults to 'int' [-Wimplicit-int] 596 | newline() | ^~~~~~~ postprint.c: In function 'newline': postprint.c:607:5: warning: implicit declaration of function 'startline' [-Wimplicit-function-declaration] 607 | startline(); | ^~~~~~~~~ postprint.c: At top level: postprint.c:617:1: warning: return type defaults to 'int' [-Wimplicit-int] 617 | spaces(ch) | ^~~~~~ postprint.c: In function 'spaces': postprint.c:664:9: warning: implicit declaration of function 'endstring' [-Wimplicit-function-declaration] 664 | endstring(); | ^~~~~~~~~ postprint.c: At top level: postprint.c:672:1: warning: return type defaults to 'int' [-Wimplicit-int] 672 | startline() | ^~~~~~~~~ postprint.c:694:1: warning: return type defaults to 'int' [-Wimplicit-int] 694 | endstring() | ^~~~~~~~~ postprint.c:716:1: warning: return type defaults to 'int' [-Wimplicit-int] 716 | endline() | ^~~~~~~ postprint.c:740:1: warning: return type defaults to 'int' [-Wimplicit-int] 740 | oput(ch) | ^~~~ postprint.c:769:1: warning: return type defaults to 'int' [-Wimplicit-int] 769 | redirect(pg) | ^~~~~~~~ postprint.c: In function 'redirect': postprint.c:784:21: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 784 | if ( pg >= 0 && in_olist(pg) == ON ) | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o postprint postprint.o ../common/glob.o ../common/misc.o ../common/request.o ---- Making all in directory postscript/postreverse ---- cc -pipe -O2 -I/usr/pkg/include -I../common -I/usr/pkg/include -c postreverse.c postreverse.c:105:1: warning: return type defaults to 'int' [-Wimplicit-int] 105 | main(agc, agv) | ^~~~ postreverse.c: In function 'main': postreverse.c:128:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 128 | init_signals(); /* sets up interrupt handling */ | ^~~~~~~~~~~~ postreverse.c:129:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 129 | options(); /* first get command line options */ | ^~~~~~~ postreverse.c:130:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 130 | arguments(); /* then process non-option arguments */ | ^~~~~~~~~ postreverse.c:131:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 131 | done(); /* and clean things up */ | ^~~~ postreverse.c: At top level: postreverse.c:139:1: warning: return type defaults to 'int' [-Wimplicit-int] 139 | init_signals() | ^~~~~~~~~~~~ postreverse.c:164:1: warning: return type defaults to 'int' [-Wimplicit-int] 164 | options() | ^~~~~~~ postreverse.c: In function 'options': postreverse.c:184:19: warning: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] 184 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) { | ^~~~~~ | getsubopt postreverse.c:188:25: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 188 | error(FATAL, "illegal forms request %s", optarg); | ^~~~~ | perror postreverse.c:192:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 192 | out_list(optarg); | ^~~~~~~~ postreverse.c: At top level: postreverse.c:232:1: warning: return type defaults to 'int' [-Wimplicit-int] 232 | arguments() | ^~~~~~~~~ postreverse.c: In function 'arguments': postreverse.c:256:5: warning: implicit declaration of function 'reverse' [-Wimplicit-function-declaration] 256 | reverse(); | ^~~~~~~ postreverse.c: At top level: postreverse.c:262:1: warning: return type defaults to 'int' [-Wimplicit-int] 262 | done() | ^~~~ postreverse.c: In function 'done': postreverse.c:274:9: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 274 | unlink(temp_file); | ^~~~~~ postreverse.c: In function 'copystdin': postreverse.c:306:22: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 306 | while ( (count = read(fd_in, buf, sizeof(buf))) > 0 ) | ^~~~ | fread postreverse.c:307:14: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 307 | if ( write(fd_out, buf, count) != count ) | ^~~~~ | fwrite postreverse.c:310:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 310 | close(fd_out); | ^~~~~ | pclose postreverse.c: At top level: postreverse.c:318:1: warning: return type defaults to 'int' [-Wimplicit-int] 318 | reverse() | ^~~~~~~ postreverse.c: In function 'reverse': postreverse.c:338:10: warning: implicit declaration of function 'moreprolog' [-Wimplicit-function-declaration] 338 | if ( moreprolog(ENDPROLOG) == TRUE ) { | ^~~~~~~~~~ postreverse.c:339:9: warning: implicit declaration of function 'readpages' [-Wimplicit-function-declaration] 339 | readpages(); | ^~~~~~~~~ postreverse.c:340:9: warning: implicit declaration of function 'writepages' [-Wimplicit-function-declaration] 340 | writepages(); | ^~~~~~~~~~ postreverse.c:341:9: warning: implicit declaration of function 'trailer'; did you mean 'raise'? [-Wimplicit-function-declaration] 341 | trailer(); | ^~~~~~~ | raise postreverse.c: At top level: postreverse.c:348:1: warning: return type defaults to 'int' [-Wimplicit-int] 348 | moreprolog(str) | ^~~~~~~~~~ postreverse.c:386:1: warning: return type defaults to 'int' [-Wimplicit-int] 386 | readpages() | ^~~~~~~~~ postreverse.c: In function 'readpages': postreverse.c:418:18: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 418 | if ( in_olist(page++) == ON ) { | ^~~~~~~~ postreverse.c: At top level: postreverse.c:451:1: warning: return type defaults to 'int' [-Wimplicit-int] 451 | writepages() | ^~~~~~~~~~ postreverse.c: In function 'writepages': postreverse.c:488:20: warning: implicit declaration of function 'copypage' [-Wimplicit-function-declaration] 488 | } else copypage(pages[j].start, pages[j].stop); | ^~~~~~~~ postreverse.c: At top level: postreverse.c:494:1: warning: return type defaults to 'int' [-Wimplicit-int] 494 | copypage(start, stop) | ^~~~~~~~ postreverse.c:520:1: warning: return type defaults to 'int' [-Wimplicit-int] 520 | trailer() | ^~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o postreverse postreverse.o ../common/glob.o ../common/misc.o ../common/tempnam.o /bin/ld: postreverse.o: in function `copystdin': postreverse.c:(.text+0x281): warning: the use of `tempnam' is dangerous, better use `mkstemp' ---- Making all in directory postscript/posttek ---- cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -I/usr/pkg/include -c posttek.c posttek.c:157:1: warning: return type defaults to 'int' [-Wimplicit-int] 157 | main(agc, agv) | ^~~~ posttek.c: In function 'main': posttek.c:178:5: warning: implicit declaration of function 'init_signals' [-Wimplicit-function-declaration] 178 | init_signals(); /* sets up interrupt handling */ | ^~~~~~~~~~~~ posttek.c:179:5: warning: implicit declaration of function 'header' [-Wimplicit-function-declaration] 179 | header(); /* PostScript header comments */ | ^~~~~~ posttek.c:180:5: warning: implicit declaration of function 'options' [-Wimplicit-function-declaration] 180 | options(); /* handle the command line options */ | ^~~~~~~ posttek.c:181:5: warning: implicit declaration of function 'setup'; did you mean 'setbuf'? [-Wimplicit-function-declaration] 181 | setup(); /* for PostScript */ | ^~~~~ | setbuf posttek.c:182:5: warning: implicit declaration of function 'arguments' [-Wimplicit-function-declaration] 182 | arguments(); /* followed by each input file */ | ^~~~~~~~~ posttek.c:183:5: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 183 | done(); /* print the last page etc. */ | ^~~~ posttek.c:184:5: warning: implicit declaration of function 'account' [-Wimplicit-function-declaration] 184 | account(); /* job accounting data */ | ^~~~~~~ posttek.c: At top level: posttek.c:192:1: warning: return type defaults to 'int' [-Wimplicit-int] 192 | init_signals() | ^~~~~~~~~~~~ posttek.c:217:1: warning: return type defaults to 'int' [-Wimplicit-int] 217 | header() | ^~~~~~ posttek.c: In function 'header': posttek.c:236:19: warning: implicit declaration of function 'getopt'; did you mean 'get_font'? [-Wimplicit-function-declaration] 236 | while ( (ch = getopt(argc, argv, optnames)) != EOF ) | ^~~~~~ | get_font posttek.c:240:13: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 240 | error(FATAL, ""); | ^~~~~ | perror posttek.c:250:10: warning: implicit declaration of function 'cat' [-Wimplicit-function-declaration] 250 | if ( cat(prologue) == FALSE ) | ^~~ posttek.c: At top level: posttek.c:261:1: warning: return type defaults to 'int' [-Wimplicit-int] 261 | options() | ^~~~~~~ posttek.c: In function 'options': posttek.c:302:21: warning: implicit declaration of function 'out_list' [-Wimplicit-function-declaration] 302 | out_list(optarg); | ^~~~~~~~ posttek.c:347:21: warning: implicit declaration of function 'saverequest' [-Wimplicit-function-declaration] 347 | saverequest(optarg); | ^~~~~~~~~~~ posttek.c: At top level: posttek.c:401:1: warning: return type defaults to 'int' [-Wimplicit-int] 401 | setup() | ^~~~~ posttek.c: In function 'setup': posttek.c:412:5: warning: implicit declaration of function 'writerequest' [-Wimplicit-function-declaration] 412 | writerequest(0, stdout); /* global requests eg. manual feed */ | ^~~~~~~~~~~~ posttek.c:413:5: warning: implicit declaration of function 'setencoding' [-Wimplicit-function-declaration] 413 | setencoding(fontencoding); | ^~~~~~~~~~~ posttek.c: At top level: posttek.c:428:1: warning: return type defaults to 'int' [-Wimplicit-int] 428 | arguments() | ^~~~~~~~~ posttek.c:460:1: warning: return type defaults to 'int' [-Wimplicit-int] 460 | done() | ^~~~ posttek.c:481:1: warning: return type defaults to 'int' [-Wimplicit-int] 481 | account() | ^~~~~~~ posttek.c: In function 'statemachine': posttek.c:513:5: warning: implicit declaration of function 'redirect' [-Wimplicit-function-declaration] 513 | redirect(-1); /* get ready for the first page */ | ^~~~~~~~ posttek.c:514:5: warning: implicit declaration of function 'formfeed' [-Wimplicit-function-declaration] 514 | formfeed(); | ^~~~~~~~ posttek.c:520:21: warning: implicit declaration of function 'reset'; did you mean 'memset'? [-Wimplicit-function-declaration] 520 | reset(); | ^~~~~ | memset posttek.c:528:21: warning: implicit declaration of function 'gin' [-Wimplicit-function-declaration] 528 | gin(); | ^~~ posttek.c:537:21: warning: implicit declaration of function 'point'; did you mean 'printf'? [-Wimplicit-function-declaration] 537 | point(); | ^~~~~ | printf posttek.c: At top level: posttek.c:553:1: warning: return type defaults to 'int' [-Wimplicit-int] 553 | reset() | ^~~~~ posttek.c: In function 'reset': posttek.c:564:5: warning: implicit declaration of function 'home' [-Wimplicit-function-declaration] 564 | home(); | ^~~~ posttek.c:565:5: warning: implicit declaration of function 'setfont'; did you mean 'get_font'? [-Wimplicit-function-declaration] 565 | setfont(TEKFONT); | ^~~~~~~ | get_font posttek.c:566:5: warning: implicit declaration of function 'setmode' [-Wimplicit-function-declaration] 566 | setmode(ALPHA); | ^~~~~~~ posttek.c: In function 'alpha': posttek.c:586:15: warning: implicit declaration of function 'nextchar'; did you mean 'getchar'? [-Wimplicit-function-declaration] 586 | if ( (c = nextchar()) == OUTMODED ) | ^~~~~~~~ | getchar posttek.c:589:29: warning: implicit declaration of function 'control' [-Wimplicit-function-declaration] 589 | if ( (c < 040) && ((c = control(c)) <= 0) ) | ^~~~~~~ posttek.c:632:17: warning: implicit declaration of function 'move' [-Wimplicit-function-declaration] 632 | move(x, y); | ^~~~ posttek.c:650:9: warning: implicit declaration of function 'text' [-Wimplicit-function-declaration] 650 | text(); | ^~~~ posttek.c: In function 'graph': posttek.c:721:9: warning: implicit declaration of function 'draw' [-Wimplicit-function-declaration] 721 | draw(); | ^~~~ posttek.c: At top level: posttek.c:734:1: warning: return type defaults to 'int' [-Wimplicit-int] 734 | point() | ^~~~~ posttek.c:807:1: warning: return type defaults to 'int' [-Wimplicit-int] 807 | gin() | ^~~ posttek.c:823:1: warning: return type defaults to 'int' [-Wimplicit-int] 823 | control(c) | ^~~~~~~ posttek.c: In function 'control': posttek.c:886:24: warning: implicit declaration of function 'esc' [-Wimplicit-function-declaration] 886 | return(esc()); | ^~~ posttek.c: At top level: posttek.c:899:1: warning: return type defaults to 'int' [-Wimplicit-int] 899 | esc() | ^~~ posttek.c:987:1: warning: return type defaults to 'int' [-Wimplicit-int] 987 | move(x, y) | ^~~~ posttek.c:1006:1: warning: return type defaults to 'int' [-Wimplicit-int] 1006 | setmode(mode) | ^~~~~~~ posttek.c:1038:1: warning: return type defaults to 'int' [-Wimplicit-int] 1038 | home() | ^~~~ posttek.c:1055:1: warning: return type defaults to 'int' [-Wimplicit-int] 1055 | setfont(newfont) | ^~~~~~~ posttek.c:1079:1: warning: return type defaults to 'int' [-Wimplicit-int] 1079 | text() | ^~~~ posttek.c:1098:1: warning: return type defaults to 'int' [-Wimplicit-int] 1098 | draw() | ^~~~ posttek.c:1120:1: warning: return type defaults to 'int' [-Wimplicit-int] 1120 | formfeed() | ^~~~~~~~ posttek.c:1160:1: warning: return type defaults to 'int' [-Wimplicit-int] 1160 | nextchar() | ^~~~~~~~ posttek.c:1185:1: warning: return type defaults to 'int' [-Wimplicit-int] 1185 | redirect(pg) | ^~~~~~~~ posttek.c: In function 'redirect': posttek.c:1200:21: warning: implicit declaration of function 'in_olist' [-Wimplicit-function-declaration] 1200 | if ( pg >= 0 && in_olist(pg) == ON ) | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I../common -DPOSTLIB="\"/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript\"" -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o posttek posttek.o ../common/glob.o ../common/misc.o ../common/request.o ---- Making all in directory postscript/printfont ---- sed "s'^POSTLIB=.*'POSTLIB=/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript'" printfont.sh >printfont ---- Making all in directory postscript/psencoding ---- sed "s'^POSTLIB=.*'POSTLIB=/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript'" psencoding.sh >psencoding ---- Making all in directory postscript/psfiles ---- ---- Making all in directory postscript/trofftable ---- sed -e "s'^FONTDIR=.*'FONTDIR=/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font'" -e "s'^POSTBIN=.*'POSTBIN=/usr/lbin/postscript'" -e "s'^POSTLIB=.*'POSTLIB=/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/postscript'" trofftable.sh >trofftable ---- Making all in directory text/devnroff ---- ---- Making all in directory text/devnroff-12 ---- ---- Making all in directory text/dnroff ---- cc -pipe -O2 -I/usr/pkg/include -DBSD4_2 -D'NDEVNAME="37"' -D'NTERMDIR="/usr/lib/nterm"' -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o dnroff dnroff.c dnroff.c:112:1: warning: return type defaults to 'int' [-Wimplicit-int] 112 | main(argc, argv) | ^~~~ dnroff.c: In function 'main': dnroff.c:112:1: warning: type of 'argc' defaults to 'int' [-Wimplicit-int] dnroff.c:133:25: warning: implicit declaration of function 'outlist' [-Wimplicit-function-declaration] 133 | outlist(&argv[1][2]); | ^~~~~~~ dnroff.c:153:17: warning: implicit declaration of function 'conv' [-Wimplicit-function-declaration] 153 | conv(stdin); | ^~~~ dnroff.c:159:33: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 159 | error(FATAL, "can't open %s", *argv); | ^~~~~ | perror dnroff.c: At top level: dnroff.c:168:1: warning: return type defaults to 'int' [-Wimplicit-int] 168 | outlist(s) /* process list of page numbers to be printed */ | ^~~~~~~ dnroff.c:208:1: warning: return type defaults to 'int' [-Wimplicit-int] 208 | conv(fp) | ^~~~ dnroff.c: In function 'conv': dnroff.c:232:25: warning: implicit declaration of function 'put1s'; did you mean 'put1'? [-Wimplicit-function-declaration] 232 | put1s(str); | ^~~~~ | put1 dnroff.c:236:25: warning: implicit declaration of function 'put1a'; did you mean 'put1'? [-Wimplicit-function-declaration] 236 | put1a(n); | ^~~~~ | put1 dnroff.c:243:33: warning: implicit declaration of function 'drawline' [-Wimplicit-function-declaration] 243 | drawline(n, m, "."); | ^~~~~~~~ dnroff.c:247:33: warning: implicit declaration of function 'drawcirc' [-Wimplicit-function-declaration] 247 | drawcirc(n); | ^~~~~~~~ dnroff.c:251:33: warning: implicit declaration of function 'drawellip' [-Wimplicit-function-declaration] 251 | drawellip(m, n); | ^~~~~~~~~ dnroff.c:255:33: warning: implicit declaration of function 'drawarc' [-Wimplicit-function-declaration] 255 | drawarc(n, m, n1, m1); | ^~~~~~~ dnroff.c:258:33: warning: implicit declaration of function 'drawwig' [-Wimplicit-function-declaration] 258 | drawwig(buf+1); | ^~~~~~~ dnroff.c:267:25: warning: implicit declaration of function 'setsize' [-Wimplicit-function-declaration] 267 | setsize(t_size(n)); | ^~~~~~~ dnroff.c:267:33: warning: implicit declaration of function 't_size' [-Wimplicit-function-declaration] 267 | setsize(t_size(n)); | ^~~~~~ dnroff.c:271:25: warning: implicit declaration of function 'setfont' [-Wimplicit-function-declaration] 271 | setfont(t_font(str)); | ^~~~~~~ dnroff.c:271:33: warning: implicit declaration of function 't_font' [-Wimplicit-function-declaration] 271 | setfont(t_font(str)); | ^~~~~~ dnroff.c:317:25: warning: implicit declaration of function 't_newline' [-Wimplicit-function-declaration] 317 | t_newline(); | ^~~~~~~~~ dnroff.c:324:25: warning: implicit declaration of function 'devcntrl' [-Wimplicit-function-declaration] 324 | devcntrl(fp); | ^~~~~~~~ dnroff.c:334:25: warning: implicit declaration of function 'done' [-Wimplicit-function-declaration] 334 | done(); | ^~~~ dnroff.c:116:13: note: previous declaration of 'done' with type 'int()' 116 | int done(); | ^~~~ dnroff.c: At top level: dnroff.c:339:1: warning: return type defaults to 'int' [-Wimplicit-int] 339 | devcntrl(fp) /* interpret device control functions */ | ^~~~~~~~ dnroff.c: In function 'devcntrl': dnroff.c:348:17: warning: implicit declaration of function 'fileinit'; did you mean 'fileno'? [-Wimplicit-function-declaration] 348 | fileinit(); | ^~~~~~~~ | fileno dnroff.c:349:17: warning: implicit declaration of function 't_init' [-Wimplicit-function-declaration] 349 | t_init(0); | ^~~~~~ dnroff.c:358:17: warning: implicit declaration of function 't_trailer' [-Wimplicit-function-declaration] 358 | t_trailer(); | ^~~~~~~~~ dnroff.c:361:17: warning: implicit declaration of function 't_reset' [-Wimplicit-function-declaration] 361 | t_reset('p'); | ^~~~~~~ dnroff.c: At top level: dnroff.c:388:1: warning: return type defaults to 'int' [-Wimplicit-int] 388 | fileinit() /* read in font and code files, etc. */ | ^~~~~~~~ dnroff.c: In function 'fileinit': dnroff.c:403:19: warning: implicit declaration of function 'getint'; did you mean 'getenv'? [-Wimplicit-function-declaration] 403 | skip(fp); getint(fp, &t.bset); skip(fp); /* these are assumed in order for now */ | ^~~~~~ | getenv dnroff.c:412:19: warning: implicit declaration of function 'getstr' [-Wimplicit-function-declaration] 412 | skip(fp); getstr(fp, &t.twinit); | ^~~~~~ dnroff.c: At top level: dnroff.c:455:1: warning: return type defaults to 'int' [-Wimplicit-int] 455 | getint(fp, pn) /* find integer at s */ | ^~~~~~ dnroff.c:476:1: warning: return type defaults to 'int' [-Wimplicit-int] 476 | getstr(fp, strp) /* find next string, copy to str */ | ^~~~~~ dnroff.c:523:1: warning: return type defaults to 'int' [-Wimplicit-int] 523 | done() | ^~~~ dnroff.c: In function 'done': dnroff.c:527:9: warning: implicit declaration of function 'restore_tty' [-Wimplicit-function-declaration] 527 | restore_tty(); | ^~~~~~~~~~~ dnroff.c: At top level: dnroff.c:531:1: warning: return type defaults to 'int' [-Wimplicit-int] 531 | error(f, s, a1, a2, a3, a4, a5, a6, a7) | ^~~~~ dnroff.c: In function 'error': dnroff.c:531:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] dnroff.c:531:1: warning: type of 'a1' defaults to 'int' [-Wimplicit-int] dnroff.c:531:1: warning: type of 'a2' defaults to 'int' [-Wimplicit-int] dnroff.c:531:1: warning: type of 'a3' defaults to 'int' [-Wimplicit-int] dnroff.c:531:1: warning: type of 'a4' defaults to 'int' [-Wimplicit-int] dnroff.c:531:1: warning: type of 'a5' defaults to 'int' [-Wimplicit-int] dnroff.c:531:1: warning: type of 'a6' defaults to 'int' [-Wimplicit-int] dnroff.c:531:1: warning: type of 'a7' defaults to 'int' [-Wimplicit-int] dnroff.c: At top level: dnroff.c:549:1: warning: return type defaults to 'int' [-Wimplicit-int] 549 | t_init(reinit) /* initialize device */ | ^~~~~~ dnroff.c: In function 't_init': dnroff.c:553:17: warning: implicit declaration of function 'save_tty' [-Wimplicit-function-declaration] 553 | save_tty(); | ^~~~~~~~ dnroff.c: At top level: dnroff.c:594:1: warning: return type defaults to 'int' [-Wimplicit-int] 594 | t_newline() /* do whatever for the end of a line */ | ^~~~~~~~~ dnroff.c: In function 't_newline': dnroff.c:598:9: warning: implicit declaration of function 'move' [-Wimplicit-function-declaration] 598 | move(); | ^~~~ dnroff.c: At top level: dnroff.c:604:1: warning: return type defaults to 'int' [-Wimplicit-int] 604 | t_size(n) /* convert integer to internal size number*/ | ^~~~~~ dnroff.c:609:1: warning: return type defaults to 'int' [-Wimplicit-int] 609 | t_font(s) /* convert string to internal font number */ | ^~~~~~ dnroff.c:616:1: warning: return type defaults to 'int' [-Wimplicit-int] 616 | t_reset(c) | ^~~~~~~ dnroff.c: In function 't_reset': dnroff.c:616:1: warning: type of 'c' defaults to 'int' [-Wimplicit-int] dnroff.c: At top level: dnroff.c:623:1: warning: return type defaults to 'int' [-Wimplicit-int] 623 | t_trailer() | ^~~~~~~~~ dnroff.c:629:1: warning: return type defaults to 'int' [-Wimplicit-int] 629 | put1s(s) /* s is a funny char name */ | ^~~~~ dnroff.c:642:1: warning: return type defaults to 'int' [-Wimplicit-int] 642 | put1a(n) /* put single char by absolute number */ | ^~~~~ dnroff.c:647:1: warning: return type defaults to 'int' [-Wimplicit-int] 647 | setsize(n) /* set point size to n (internal) */ | ^~~~~~~ dnroff.c:652:1: warning: return type defaults to 'int' [-Wimplicit-int] 652 | t_fp(n, s, si) /* font position n now contains font s, intname si */ | ^~~~ dnroff.c:658:1: warning: return type defaults to 'int' [-Wimplicit-int] 658 | drawline(n, m, s) int m, n; char *s; {} | ^~~~~~~~ dnroff.c:659:1: warning: return type defaults to 'int' [-Wimplicit-int] 659 | drawcirc(n) int n; {} | ^~~~~~~~ dnroff.c:660:1: warning: return type defaults to 'int' [-Wimplicit-int] 660 | drawellip(m, n) int m,n; {} | ^~~~~~~~~ dnroff.c:661:1: warning: return type defaults to 'int' [-Wimplicit-int] 661 | drawarc(n, m, n1, m1) int m,n,m1,n1; {} | ^~~~~~~ dnroff.c:662:1: warning: return type defaults to 'int' [-Wimplicit-int] 662 | drawwig(buf) char *buf; {} | ^~~~~~~ dnroff.c:685:1: warning: return type defaults to 'int' [-Wimplicit-int] 685 | setfont(n) /* set font to n */ | ^~~~~~~ dnroff.c: In function 'setfont': dnroff.c:685:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] dnroff.c: At top level: dnroff.c:824:1: warning: return type defaults to 'int' [-Wimplicit-int] 824 | move() | ^~~~ dnroff.c: In function 'move': dnroff.c:826:18: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int] 826 | register k; | ^ dnroff.c: At top level: dnroff.c:936:1: warning: return type defaults to 'int' [-Wimplicit-int] 936 | save_tty() /*save any tty settings that may be changed*/ | ^~~~~~~~ dnroff.c: In function 'save_tty': dnroff.c:922:25: warning: implicit declaration of function 'ioctl'; did you mean 'iscntrl'? [-Wimplicit-function-declaration] 922 | #define gtty(f, a) ioctl(f, TIOCGETP, a) | ^~~~~ dnroff.c:945:13: note: in expansion of macro 'gtty' 945 | if (gtty(0, &ttys[0]) >= 0) | ^~~~ dnroff.c: At top level: dnroff.c:954:1: warning: return type defaults to 'int' [-Wimplicit-int] 954 | restore_tty() /*restore tty settings from beginning*/ | ^~~~~~~~~~~ dnroff.c:978:1: warning: return type defaults to 'int' [-Wimplicit-int] 978 | set_tty() | ^~~~~~~ dnroff.c: In function 'conv': dnroff.c:231:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 231 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ dnroff.c:235:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 235 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dnroff.c:239:25: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 239 | fgets(buf, sizeof(buf), fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ dnroff.c:266:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 266 | fscanf(fp, "%d", &n); /* ignore fractional sizes */ | ^~~~~~~~~~~~~~~~~~~~ dnroff.c:270:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 270 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ dnroff.c:303:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 303 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dnroff.c:307:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 307 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dnroff.c:311:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 311 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dnroff.c: In function 'devcntrl': dnroff.c:345:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 345 | fscanf(fp, "%s", str); | ^~~~~~~~~~~~~~~~~~~~~ dnroff.c:352:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 352 | fscanf(fp, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~ dnroff.c:367:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 367 | fscanf(fp, "%d", &res); | ^~~~~~~~~~~~~~~~~~~~~~ dnroff.c:370:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 370 | fscanf(fp, "%d %s", &n, str); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ dnroff.c:371:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 371 | fgets(buf, sizeof buf, fp); /* in case there's a filename */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ dnroff.c:375:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 375 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dnroff.c:378:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 378 | fscanf(fp, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~ dnroff.c: In function 'fileinit': dnroff.c:402:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 402 | fscanf(fp, "%s", name); /* skip over type, could check */ | ^~~~~~~~~~~~~~~~~~~~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:403:9: note: in expansion of macro 'skip' 403 | skip(fp); getint(fp, &t.bset); skip(fp); /* these are assumed in order for now */ | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:403:41: note: in expansion of macro 'skip' 403 | skip(fp); getint(fp, &t.bset); skip(fp); /* these are assumed in order for now */ | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:404:9: note: in expansion of macro 'skip' 404 | skip(fp); getint(fp, &t.breset); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:405:9: note: in expansion of macro 'skip' 405 | skip(fp); getint(fp, &t.Hor); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:406:9: note: in expansion of macro 'skip' 406 | skip(fp); getint(fp, &t.Vert); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:407:9: note: in expansion of macro 'skip' 407 | skip(fp); getint(fp, &t.Newline); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:408:9: note: in expansion of macro 'skip' 408 | skip(fp); getint(fp, &t.Char); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:409:9: note: in expansion of macro 'skip' 409 | skip(fp); getint(fp, &t.Em); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:410:9: note: in expansion of macro 'skip' 410 | skip(fp); getint(fp, &t.Halfline); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:411:9: note: in expansion of macro 'skip' 411 | skip(fp); getint(fp, &t.Adj); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:412:9: note: in expansion of macro 'skip' 412 | skip(fp); getstr(fp, &t.twinit); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:413:9: note: in expansion of macro 'skip' 413 | skip(fp); getstr(fp, &t.twrest); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:414:9: note: in expansion of macro 'skip' 414 | skip(fp); getstr(fp, &t.twnl); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:415:9: note: in expansion of macro 'skip' 415 | skip(fp); getstr(fp, &t.hlr); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:416:9: note: in expansion of macro 'skip' 416 | skip(fp); getstr(fp, &t.hlf); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:417:9: note: in expansion of macro 'skip' 417 | skip(fp); getstr(fp, &t.flr); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:418:9: note: in expansion of macro 'skip' 418 | skip(fp); getstr(fp, &t.bdon); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:419:9: note: in expansion of macro 'skip' 419 | skip(fp); getstr(fp, &t.bdoff); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:420:9: note: in expansion of macro 'skip' 420 | skip(fp); getstr(fp, &t.iton); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:421:9: note: in expansion of macro 'skip' 421 | skip(fp); getstr(fp, &t.itoff); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:422:9: note: in expansion of macro 'skip' 422 | skip(fp); getstr(fp, &t.ploton); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:423:9: note: in expansion of macro 'skip' 423 | skip(fp); getstr(fp, &t.plotoff); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:424:9: note: in expansion of macro 'skip' 424 | skip(fp); getstr(fp, &t.up); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:425:9: note: in expansion of macro 'skip' 425 | skip(fp); getstr(fp, &t.down); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:426:9: note: in expansion of macro 'skip' 426 | skip(fp); getstr(fp, &t.right); | ^~~~ dnroff.c:386:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 386 | #define skip(fp) fscanf(fp, "%*s") | ^~~~~~~~~~~~~~~~~ dnroff.c:427:9: note: in expansion of macro 'skip' 427 | skip(fp); getstr(fp, &t.left); | ^~~~ dnroff.c:429:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 429 | fscanf(fp, "%s", name); | ^~~~~~~~~~~~~~~~~~~~~~ dnroff.c: In function 'getstr': dnroff.c:484:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 484 | fscanf(fp, "%s", buf); | ^~~~~~~~~~~~~~~~~~~~~ ---- Making all in directory text/eqn ---- yacc -d eqn.y eqn.y: warning: 155 shift/reduce conflicts [-Wconflicts-sr] eqn.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c -o eqn.o y.tab.c rm -f y.tab.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c main.c main.c:31:1: warning: return type defaults to 'int' [-Wimplicit-int] 31 | main(int argc, char *argv[]) | ^~~~ main.c:114:1: warning: return type defaults to 'int' [-Wimplicit-int] 114 | getdata(void) | ^~~~~~~ main.c:165:1: warning: return type defaults to 'int' [-Wimplicit-int] 165 | dwb_getline(char *s) | ^~~~~~~~~~~ main.c: In function 'dwb_getline': main.c:171:18: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 171 | register c; | ^ main.c: At top level: main.c:376:1: warning: return type defaults to 'int' [-Wimplicit-int] 376 | EFFPS(int n) /* effective value of n */ | ^~~~~ main.c: In function 'dwb_getline': main.c:176:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 176 | in[MAXLINE] = '\0'; | ~~~~~~~~~~~~^~~~~~ main.c:8:9: note: at offset 3600 into destination object 'in' of size 3600 8 | char in[MAXLINE]; /* input buffer */ | ^~ In function 'dwb_getline', inlined from 'dwb_inline' at main.c:211:11: main.c:176:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 176 | in[MAXLINE] = '\0'; | ~~~~~~~~~~~~^~~~~~ main.c: In function 'dwb_inline': main.c:8:9: note: at offset 3600 into destination object 'in' of size 3600 8 | char in[MAXLINE]; /* input buffer */ | ^~ In function 'dwb_getline', inlined from 'getdata' at main.c:125:17: main.c:176:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 176 | in[MAXLINE] = '\0'; | ~~~~~~~~~~~~^~~~~~ main.c: In function 'getdata': main.c:8:9: note: at offset 3600 into destination object 'in' of size 3600 8 | char in[MAXLINE]; /* input buffer */ | ^~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c tuning.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c diacrit.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c eqnbox.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c font.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c fromto.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c funny.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c glob.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c integral.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c input.c input.c:127:1: warning: return type defaults to 'int' [-Wimplicit-int] 127 | getarg(char *p) /* pick up single argument, store in p, return length */ | ^~~~~~ input.c:167:1: warning: return type defaults to 'int' [-Wimplicit-int] 167 | input(void) | ^~~~~ input.c:241:1: warning: return type defaults to 'int' [-Wimplicit-int] 241 | unput(int c) | ^~~~~ input.c: In function 'eprint': input.c:337:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 337 | fgets(ebuf, sizeof ebuf, curfile->fin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c lex.c lex.c:27:1: warning: return type defaults to 'int' [-Wimplicit-int] 27 | yylex(void) | ^~~~~ lex.c:166:1: warning: return type defaults to 'int' [-Wimplicit-int] 166 | cstr(char *s, int quote, int maxs) | ^~~~ cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c lookup.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c mark.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c matrix.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c move.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c over.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c paren.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c pile.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c shift.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c size.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c sqrt.c cc -pipe -O2 -I/usr/pkg/include -I/usr/pkg/include -c text.c text.c:113:1: warning: return type defaults to 'int' [-Wimplicit-int] 113 | trans(int c, char *p1) | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o eqn main.o tuning.o diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o input.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o pile.o shift.o size.o sqrt.o text.o eqn.o ---- Making all in directory text/eqnchar ---- ---- Making all in directory text/grap ---- yacc -d grap.y grap.y: warning: 44 shift/reduce conflicts [-Wconflicts-sr] grap.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c -o grap.o y.tab.c y.tab.c: In function 'yyparse': y.tab.c:1741:16: warning: implicit declaration of function 'yylex' [-Wimplicit-function-declaration] 1741 | yychar = yylex (); | ^~~~~ grap.y:46:78: warning: implicit declaration of function 'graph' [-Wimplicit-function-declaration] 46 | graphseq { if (codegen && !synerr) graph((char *) 0); } | ^ grap.y:57:77: warning: implicit declaration of function 'endstat' [-Wimplicit-function-declaration] 57 | GRAPH { graph($1); endstat(); } | ^ grap.y:77:71: warning: implicit declaration of function 'pic' [-Wimplicit-function-declaration] 77 | | PIC { codegen = 1; pic($1); } | ^ grap.y:81:68: warning: implicit declaration of function 'numlist' [-Wimplicit-function-declaration] 81 | | numlist { codegen = 1; numlist(); } | ^ grap.y:84:98: warning: implicit declaration of function 'freeattr' [-Wimplicit-function-declaration] 84 | | PRINT string { fprintf(stderr, "\t%s\n", $2->sval); freeattr($2); } | ^ grap.y:89:56: warning: implicit declaration of function 'savenum' [-Wimplicit-function-declaration] 89 | number { savenum(0, $1); $$ = 1; } | ^~~~ grap.y:100:63: warning: implicit declaration of function 'label' [-Wimplicit-function-declaration] 100 | LABEL optside stringlist lablist { label($2, $3); } | ^~~~ grap.y:108:55: warning: implicit declaration of function 'labelmove' [-Wimplicit-function-declaration] 108 | UP expr { labelmove($1, $2); } | ^ grap.y:111:52: warning: implicit declaration of function 'labelwid' [-Wimplicit-function-declaration] 111 | | WIDTH expr { labelwid($2); } | ^ grap.y:119:51: warning: implicit declaration of function 'frameht' [-Wimplicit-function-declaration] 119 | HEIGHT expr { frameht($2); } | ^ grap.y:120:52: warning: implicit declaration of function 'framewid' [-Wimplicit-function-declaration] 120 | | WIDTH expr { framewid($2); } | ^ grap.y:121:49: warning: implicit declaration of function 'frameside' [-Wimplicit-function-declaration] 121 | | side linedesc { frameside($1, $2); } | ^~~~~~ grap.y:144:49: warning: implicit declaration of function 'ticks' [-Wimplicit-function-declaration] 144 | TICKS tickdesc { ticks(); } | ^ grap.y:151:57: warning: implicit declaration of function 'tickside' [-Wimplicit-function-declaration] 151 | side { tickside($1); } | ^ grap.y:152:55: warning: implicit declaration of function 'tickdir' [-Wimplicit-function-declaration] 152 | | IN expr { tickdir(IN, $2, 1); } | ^ grap.y:156:44: warning: implicit declaration of function 'setlist' [-Wimplicit-function-declaration] 156 | | AT optname ticklist { setlist(); ticklist($2, AT); } | ^~~~~~~ grap.y:156:55: warning: implicit declaration of function 'ticklist' [-Wimplicit-function-declaration] 156 | | AT optname ticklist { setlist(); ticklist($2, AT); } | ^~~~~~~~ grap.y:158:54: warning: implicit declaration of function 'tickoff' [-Wimplicit-function-declaration] 158 | | side OFF { tickoff($1); } | ^ grap.y:167:57: warning: implicit declaration of function 'savetick' [-Wimplicit-function-declaration] 167 | expr { savetick($1, (char *) 0); } | ^~~~~ grap.y:172:48: warning: implicit declaration of function 'iterator' [-Wimplicit-function-declaration] 172 | { iterator($3, $6, $8, $9, $10); $$ = $2; } | ^~~~~~~~ grap.y:199:54: warning: implicit declaration of function 'griddesc' [-Wimplicit-function-declaration] 199 | | linedesc { griddesc($1); } | ^ grap.y:200:55: warning: implicit declaration of function 'gridlist' [-Wimplicit-function-declaration] 200 | | AT optname ticklist { setlist(); gridlist($2); } | ^~~~~~ grap.y:202:53: warning: implicit declaration of function 'gridtickoff' [-Wimplicit-function-declaration] 202 | | TICKS OFF { gridtickoff(); } | ^ grap.y:208:63: warning: implicit declaration of function 'line' [-Wimplicit-function-declaration] 208 | LINE FROM point TO point optdesc { line($1, $3, $5, $6); } | ^~~~ grap.y:212:67: warning: implicit declaration of function 'circle' [-Wimplicit-function-declaration] 212 | CIRCLE RADIUS expr AT point { circle($3, $5); } | ^ grap.y:238:57: warning: implicit declaration of function 'setjust' [-Wimplicit-function-declaration] 238 | JUST { setjust($1); } | ^ grap.y:239:48: warning: implicit declaration of function 'setsize' [-Wimplicit-function-declaration] 239 | | SIZE optop expr { setsize($2, $3); } | ^~~~~ grap.y:243:56: warning: implicit declaration of function 'coord' [-Wimplicit-function-declaration] 243 | COORD optname coordlist { coord($2); } | ^ grap.y:244:64: warning: implicit declaration of function 'resetcoord' [-Wimplicit-function-declaration] 244 | | COORD optname { resetcoord($2); } | ^ grap.y:251:39: warning: implicit declaration of function 'coordlog' [-Wimplicit-function-declaration] 251 | coordlog { coordlog($1); } | ^~~ grap.y:252:40: warning: implicit declaration of function 'coord_x' [-Wimplicit-function-declaration] 252 | | X point { coord_x($2); } | ^ grap.y:253:40: warning: implicit declaration of function 'coord_y' [-Wimplicit-function-declaration] 253 | | Y point { coord_y($2); } | ^ grap.y:268:59: warning: implicit declaration of function 'plot' [-Wimplicit-function-declaration] 268 | stringlist AT point { plot($1, $3); } | ^ grap.y:270:51: warning: implicit declaration of function 'plotnum' [-Wimplicit-function-declaration] 270 | | PLOT expr optstring AT point { plotnum($2, $3, $5); } | ^~~~~~~ grap.y:274:69: warning: implicit declaration of function 'drawdesc' [-Wimplicit-function-declaration] 274 | drawtype optname linedesc { drawdesc($1, $2, $3, (char *) 0); } | ^~~~~~~~ grap.y:284:65: warning: implicit declaration of function 'next' [-Wimplicit-function-declaration] 284 | NEXT optname AT point optdesc { next($2, $4, $5); } | ^~~~ grap.y:287:49: warning: implicit declaration of function 'copy' [-Wimplicit-function-declaration] 287 | COPY copylist { copy(); } | ^ grap.y:294:56: warning: implicit declaration of function 'copyfile' [-Wimplicit-function-declaration] 294 | STRING { copyfile($1); } | ^ grap.y:295:50: warning: implicit declaration of function 'copydef' [-Wimplicit-function-declaration] 295 | | THRU DEFNAME { copydef($2); } | ^ grap.y:296:50: warning: implicit declaration of function 'copyuntil' [-Wimplicit-function-declaration] 296 | | UNTIL STRING { copyuntil($2); } | ^ grap.y:301:33: warning: implicit declaration of function 'forloop'; did you mean 'floor'? [-Wimplicit-function-declaration] 301 | { forloop($2, $4, $6, $8, $9, $10); } | ^~~~~~~ | floor grap.y:316:59: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 316 | | STRING EQ STRING { $$ = strcmp($1,$3) == 0; free($1); free($3); } | ^~~~~~ grap.y:6:1: note: include '<string.h>' or provide a declaration of 'strcmp' 5 | #include "grap.h" +++ |+#include <string.h> 6 | %} rm -f y.tab.c cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c main.c main.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int] 34 | main(argc, argv) | ^~~~ main.c: In function 'main': main.c:34:1: warning: type of 'argc' defaults to 'int' [-Wimplicit-int] main.c:49:25: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 49 | unlink(tempfile); | ^~~~~~ main.c:59:9: warning: implicit declaration of function 'setdefaults' [-Wimplicit-function-declaration] 59 | setdefaults(); | ^~~~~~~~~~~ main.c:66:17: warning: implicit declaration of function 'pushsrc' [-Wimplicit-function-declaration] 66 | pushsrc(File, curfile->fname); | ^~~~~~~ main.c:67:17: warning: implicit declaration of function 'getdata' [-Wimplicit-function-declaration] 67 | getdata(); | ^~~~~~~ main.c: At top level: main.c:122:1: warning: return type defaults to 'int' [-Wimplicit-int] 122 | setdefaults() /* set default sizes for variables */ | ^~~~~~~~~~~ main.c:133:1: warning: return type defaults to 'int' [-Wimplicit-int] 133 | getdata() /* read input */ | ^~~~~~~ main.c: In function 'getdata': main.c:145:25: warning: implicit declaration of function 'setup'; did you mean 'setbuf'? [-Wimplicit-function-declaration] 145 | setup(); | ^~~~~ | setbuf cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c input.c input.c: In function 'delimstr': input.c:115:18: warning: implicit declaration of function 'baldelim' [-Wimplicit-function-declaration] 115 | rdelim = baldelim(delim, "{}"); /* could be "(){}[]`'" */ | ^~~~~~~~ input.c: In function 'dodef': input.c:162:37: warning: implicit declaration of function 'getarg'; did you mean 'getvar'? [-Wimplicit-function-declaration] 162 | for (p = ap->argval; (len = getarg(p)) != -1; p += len) { | ^~~~~~ | getvar input.c: In function 'dwb_input': input.c:222:13: warning: implicit declaration of function 'nextchar'; did you mean 'getchar'? [-Wimplicit-function-declaration] 222 | c = nextchar(); | ^~~~~~~~ | getchar input.c: At top level: input.c:452:1: warning: return type defaults to 'int' [-Wimplicit-int] 452 | yywrap() {;} | ^~~~~~ input.c:459:1: warning: return type defaults to 'int' [-Wimplicit-int] 459 | copyfile(s) /* remember file to start reading from */ | ^~~~~~~~ input.c:509:1: warning: return type defaults to 'int' [-Wimplicit-int] 509 | copyuntil(s) /* string that terminates a thru */ | ^~~~~~~~~ input.c:515:1: warning: return type defaults to 'int' [-Wimplicit-int] 515 | copy() /* begin input from file, etc. */ | ^~~~ input.c: In function 'eprint': input.c:446:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 446 | fgets(ebuf, sizeof ebuf, curfile->fin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ input.c: In function 'shell_exec': input.c:560:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 560 | system(shellbuf); | ^~~~~~~~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c print.c print.c:14:1: warning: return type defaults to 'int' [-Wimplicit-int] 14 | print() /* arrange final output */ | ^~~~~ print.c: In function 'print': print.c:105:17: warning: implicit declaration of function 'frame' [-Wimplicit-function-declaration] 105 | frame(); | ^~~~~ print.c:107:17: warning: implicit declaration of function 'do_autoticks' [-Wimplicit-function-declaration] 107 | do_autoticks(dfp); | ^~~~~~~~~~~~ print.c: At top level: print.c:117:1: warning: return type defaults to 'int' [-Wimplicit-int] 117 | endstat() /* clean up after each statement */ | ^~~~~~~ print.c:132:1: warning: return type defaults to 'int' [-Wimplicit-int] 132 | graph(s) /* graph statement */ | ^~~~~ print.c: In function 'graph': print.c:142:17: warning: implicit declaration of function 'reset'; did you mean 'memset'? [-Wimplicit-function-declaration] 142 | reset(); | ^~~~~ | memset print.c:146:17: warning: implicit declaration of function 'opentemp' [-Wimplicit-function-declaration] 146 | opentemp(); | ^~~~~~~~ print.c: At top level: print.c:163:1: warning: return type defaults to 'int' [-Wimplicit-int] 163 | setup() /* done at each .G1 */ | ^~~~~ print.c: In function 'setup': print.c:172:17: warning: implicit declaration of function 'do_first' [-Wimplicit-function-declaration] 172 | do_first(); | ^~~~~~~~ print.c: At top level: print.c:178:1: warning: return type defaults to 'int' [-Wimplicit-int] 178 | do_first() /* done at first .G1: definitions, etc. */ | ^~~~~~~~ print.c: In function 'do_first': print.c:184:43: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] 184 | sprintf(buf, "define pid /%d/\n", getpid()); | ^~~~~~ print.c:185:9: warning: implicit declaration of function 'pbstr' [-Wimplicit-function-declaration] 185 | pbstr(buf); | ^~~~~ print.c:187:21: warning: implicit declaration of function 'access' [-Wimplicit-function-declaration] 187 | if (access(lib_defines, 4) == 0) { | ^~~~~~ print.c: At top level: print.c:196:1: warning: return type defaults to 'int' [-Wimplicit-int] 196 | reset() /* done at each "graph ..." statement */ | ^~~~~ print.c: In function 'reset': print.c:216:25: warning: implicit declaration of function 'freeattr' [-Wimplicit-function-declaration] 216 | freeattr(p->attr); | ^~~~~~~~ print.c: At top level: print.c:223:1: warning: return type defaults to 'int' [-Wimplicit-int] 223 | opentemp() | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c frame.c frame.c:17:1: warning: return type defaults to 'int' [-Wimplicit-int] 17 | frame() /* pump out frame definition, reset for next */ | ^~~~~ frame.c:40:1: warning: return type defaults to 'int' [-Wimplicit-int] 40 | frameht(f) /* set height of frame */ | ^~~~~~~ frame.c:46:1: warning: return type defaults to 'int' [-Wimplicit-int] 46 | framewid(f) /* set width of frame */ | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c for.c for.c:18:1: warning: return type defaults to 'int' [-Wimplicit-int] 18 | forloop(var, from, to, op, by, str) /* set up a for loop */ | ^~~~~~~ for.c: In function 'forloop': for.c:34:9: warning: implicit declaration of function 'nextfor' [-Wimplicit-function-declaration] 34 | nextfor(); | ^~~~~~~ for.c: At top level: for.c:38:1: warning: return type defaults to 'int' [-Wimplicit-int] 38 | nextfor() /* do one iteration of a for loop */ | ^~~~~~~ for.c: In function 'nextfor': for.c:46:17: warning: implicit declaration of function 'pushsrc' [-Wimplicit-function-declaration] 46 | pushsrc(String, "\nEndfor\n"); | ^~~~~~~ for.c: At top level: for.c:51:1: warning: return type defaults to 'int' [-Wimplicit-int] 51 | endfor() /* end one iteration of for loop */ | ^~~~~~ cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c coord.c coord.c:15:1: warning: return type defaults to 'int' [-Wimplicit-int] 15 | coord_x(pt) /* remember x coord */ | ^~~~~~~ coord.c:23:1: warning: return type defaults to 'int' [-Wimplicit-int] 23 | coord_y(pt) | ^~~~~~~ coord.c:31:1: warning: return type defaults to 'int' [-Wimplicit-int] 31 | coordlog(n) /* remember log scaling */ | ^~~~~~~~ coord.c:37:1: warning: return type defaults to 'int' [-Wimplicit-int] 37 | coord(p) /* set coord range */ | ^~~~~ coord.c: In function 'coord': coord.c:43:27: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 43 | if (ncoord > 1 && strcmp(p->name, dflt_coord) == 0) { | ^~~~~~ coord.c:4:1: note: include '<string.h>' or provide a declaration of 'strcmp' 3 | #include "y.tab.h" +++ |+#include <string.h> 4 | coord.c: At top level: coord.c:70:1: warning: return type defaults to 'int' [-Wimplicit-int] 70 | resetcoord(p) /* reset current coordinate */ | ^~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c ticks.c ticks.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] 26 | savetick(f, s) /* remember tick location and label */ | ^~~~~~~~ ticks.c:37:1: warning: return type defaults to 'int' [-Wimplicit-int] 37 | dflt_tick(f) | ^~~~~~~~~ ticks.c:46:1: warning: return type defaults to 'int' [-Wimplicit-int] 46 | tickside(n) /* remember which side these ticks/gridlines go on */ | ^~~~~~~~ ticks.c:52:1: warning: return type defaults to 'int' [-Wimplicit-int] 52 | tickoff(side) /* remember explicit sides */ | ^~~~~~~ ticks.c:58:1: warning: return type defaults to 'int' [-Wimplicit-int] 58 | gridtickoff() /* turn grid ticks off on the side previously specified (ugh) */ | ^~~~~~~~~~~ ticks.c:63:1: warning: return type defaults to 'int' [-Wimplicit-int] 63 | setlist() /* remember that there was an explicit list */ | ^~~~~~~ ticks.c:68:1: warning: return type defaults to 'int' [-Wimplicit-int] 68 | tickdir(dir, val, explicit) /* remember in/out [expr] */ | ^~~~~~~ ticks.c:77:1: warning: return type defaults to 'int' [-Wimplicit-int] 77 | ticks() /* set autoticks after ticks statement */ | ^~~~~ ticks.c: In function 'do_autoticks': ticks.c:141:33: warning: implicit declaration of function 'logtick'; did you mean 'logit'? [-Wimplicit-function-declaration] 141 | logtick(x, xl, xu); | ^~~~~~~ | logit ticks.c: At top level: ticks.c:181:1: warning: return type defaults to 'int' [-Wimplicit-int] 181 | logtick(v, lb, ub) | ^~~~~~~ ticks.c:292:1: warning: return type defaults to 'int' [-Wimplicit-int] 292 | iterator(from, to, op, by, fmt) /* create an iterator */ | ^~~~~~~~ ticks.c: In function 'ticklist': ticks.c:346:9: warning: implicit declaration of function 'print_ticks' [-Wimplicit-function-declaration] 346 | print_ticks(TICKS, explicit, p, "ticklen", ""); | ^~~~~~~~~~~ ticks.c: At top level: ticks.c:349:1: warning: return type defaults to 'int' [-Wimplicit-int] 349 | print_ticks(type, explicit, p, lenstr, descstr) | ^~~~~~~~~~~ ticks.c: In function 'print_ticks': ticks.c:377:19: warning: implicit declaration of function 'sidelog' [-Wimplicit-function-declaration] 377 | logflag = sidelog(p->log, tside); | ^~~~~~~ ticks.c:380:17: warning: implicit declaration of function 'halfrange' [-Wimplicit-function-declaration] 380 | halfrange(p, tside, tv); | ^~~~~~~~~ ticks.c: In function 'maketick': ticks.c:462:17: warning: implicit declaration of function 'lab_adjust' [-Wimplicit-function-declaration] 462 | lab_adjust(); | ^~~~~~~~~~ ticks.c: At top level: ticks.c:469:1: warning: return type defaults to 'int' [-Wimplicit-int] 469 | griddesc(a) | ^~~~~~~~ ticks.c:475:1: warning: return type defaults to 'int' [-Wimplicit-int] 475 | gridlist(p) | ^~~~~~~~ ticks.c: In function 'gridlist': ticks.c:488:17: warning: implicit declaration of function 'freeattr' [-Wimplicit-function-declaration] 488 | freeattr(grid_desc); | ^~~~~~~~ ticks.c: At top level: ticks.c:512:1: warning: return type defaults to 'int' [-Wimplicit-int] 512 | sidelog(logflag, side) /* figure out whether to scale a side */ | ^~~~~~~ cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c plot.c plot.c:5:1: warning: return type defaults to 'int' [-Wimplicit-int] 5 | line(type, p1, p2, desc) /* draw a line segment */ | ^~~~ plot.c: In function 'line': plot.c:5:1: warning: type of 'type' defaults to 'int' [-Wimplicit-int] plot.c:13:9: warning: implicit declaration of function 'range' [-Wimplicit-function-declaration] 13 | range(p1); | ^~~~~ plot.c: At top level: plot.c:17:1: warning: return type defaults to 'int' [-Wimplicit-int] 17 | circle(r, pt) /* draw a circle */ | ^~~~~~ plot.c:48:1: warning: return type defaults to 'int' [-Wimplicit-int] 48 | pic(s) /* fire out pic stuff directly */ | ^~~ plot.c:58:1: warning: return type defaults to 'int' [-Wimplicit-int] 58 | numlist() /* print numbers in default way */ | ^~~~~~~ plot.c: In function 'numlist': plot.c:79:25: warning: implicit declaration of function 'plot' [-Wimplicit-function-declaration] 79 | plot(ap, pt); | ^~~~ plot.c:81:25: warning: implicit declaration of function 'next' [-Wimplicit-function-declaration] 81 | next(p, pt, p->attr); | ^~~~ plot.c: At top level: plot.c:86:1: warning: return type defaults to 'int' [-Wimplicit-int] 86 | plot(sl, pt) /* put stringlist sl at point pt */ | ^~~~ plot.c: In function 'plot': plot.c:92:9: warning: implicit declaration of function 'freeattr' [-Wimplicit-function-declaration] 92 | freeattr(sl); | ^~~~~~~~ plot.c: At top level: plot.c:95:1: warning: return type defaults to 'int' [-Wimplicit-int] 95 | plotnum(f, fmt, pt) /* plot value f at point */ | ^~~~~~~ plot.c:113:1: warning: return type defaults to 'int' [-Wimplicit-int] 113 | drawdesc(type, p, desc, s) /* set line description for p */ | ^~~~~~~~ plot.c:127:1: warning: return type defaults to 'int' [-Wimplicit-int] 127 | next(p, pt, desc) /* add component to a path */ | ^~~~ cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c label.c label.c:16:1: warning: return type defaults to 'int' [-Wimplicit-int] 16 | labelwid(amt) | ^~~~~~~~ label.c:22:1: warning: return type defaults to 'int' [-Wimplicit-int] 22 | labelmove(dir, amt) /* record direction & motion of position corr */ | ^~~~~~~~~ label.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int] 34 | label(label_side, stringlist) /* stick label on label_side */ | ^~~~~ label.c: In function 'label': label.c:54:9: warning: implicit declaration of function 'freeattr' [-Wimplicit-function-declaration] 54 | freeattr(stringlist); | ^~~~~~~~ label.c:70:9: warning: implicit declaration of function 'lab_adjust' [-Wimplicit-function-declaration] 70 | lab_adjust(); | ^~~~~~~~~~ label.c: At top level: label.c:75:1: warning: return type defaults to 'int' [-Wimplicit-int] 75 | lab_adjust() /* add a string to adjust labels, ticks, etc. */ | ^~~~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c misc.c misc.c:14:1: warning: return type defaults to 'int' [-Wimplicit-int] 14 | savenum(n, f) /* save f in num[n] */ | ^~~~~~~ misc.c:24:1: warning: return type defaults to 'int' [-Wimplicit-int] 24 | setjust(j) | ^~~~~~~ misc.c: In function 'setjust': misc.c:24:1: warning: type of 'j' defaults to 'int' [-Wimplicit-int] misc.c: At top level: misc.c:29:1: warning: return type defaults to 'int' [-Wimplicit-int] 29 | setsize(op, expr) | ^~~~~~~ misc.c:48:1: warning: return type defaults to 'int' [-Wimplicit-int] 48 | range(pt) /* update the range for point pt */ | ^~~~~ misc.c:67:1: warning: return type defaults to 'int' [-Wimplicit-int] 67 | halfrange(p, side, val) /* record max and min for one direction */ | ^~~~~~~~~ misc.c:181:1: warning: return type defaults to 'int' [-Wimplicit-int] 181 | freeattr(ap) /* free an attribute list */ | ^~~~~~~~ lex grapl.l cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -I/usr/pkg/include -c -o grapl.o lex.yy.c grapl.l: In function 'yylex': grapl.l:64:3: warning: implicit declaration of function 'endfor' [-Wimplicit-function-declaration] 64 | <A>do { yylval.p = delimstr("loop body"); BEGIN A; return(DOSTR); } | ^~~~~~~~~~~~~~~ grapl.l:120:10: warning: implicit declaration of function 'shell_init' [-Wimplicit-function-declaration] 120 | } | ^ grapl.l:126:25: warning: implicit declaration of function 'shell_exec' [-Wimplicit-function-declaration] 126 | BEGIN A; | ^~~~~~~~ grapl.l:134:34: warning: implicit declaration of function 'dodef'; did you mean 'def'? [-Wimplicit-function-declaration] 134 | else | ^~~ | def grapl.l:136:27: warning: implicit declaration of function 'pbstr'; did you mean 'str'? [-Wimplicit-function-declaration] 136 | } else | ^~~~ | str grapl.l:138:19: warning: implicit declaration of function 'shell_text' [-Wimplicit-function-declaration] 138 | } | ^ grapl.l:157:3: warning: implicit declaration of function 'definition' [-Wimplicit-function-declaration] 157 | | ^ rm -f lex.yy.c cc -pipe -O2 -I/usr/pkg/include -D'GRAPDEFINES="/home/pbulk/build/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/dwb/grap.defines"' -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o grap grap.o grapl.o main.o input.o print.o frame.o for.o coord.o ticks.o plot.o label.o misc.o -lm /bin/ld: main.o: in function `main': main.c:(.text.startup+0x240): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' ---- Making all in directory text/neqn ---- yacc -d e.y e.y: warning: 85 shift/reduce conflicts [-Wconflicts-sr] e.y: warning: 71 reduce/reduce conflicts [-Wconflicts-rr] e.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples sed -f yyval.sed <y.tab.c >e.c cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c e.c y.tab.c: In function 'yyparse': y.tab.c:1391:16: warning: implicit declaration of function 'yylex' [-Wimplicit-function-declaration] 1391 | yychar = yylex (); | ^~~~~ e.y:30:22: warning: implicit declaration of function 'putout' [-Wimplicit-function-declaration] 30 | stuff : eqn { putout($1); } | ^~~~~~ e.y:31:26: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 31 | | error { error(!FATAL, "syntax error"); } | ^~~~~ | perror e.y:36:40: warning: implicit declaration of function 'eqnbox' [-Wimplicit-function-declaration] 36 | | eqn box { eqnbox($1, $2, 0); } | ^~~~~~ e.y:38:41: warning: implicit declaration of function 'lineup'; did you mean 'linux'? [-Wimplicit-function-declaration] 38 | | LINEUP { lineup(0); } | ^ | linux e.y:50:40: warning: implicit declaration of function 'column' [-Wimplicit-function-declaration] 50 | column : lcol '{' list '}' { column('L', $1); } | ^~~~~~ e.y:68:32: warning: implicit declaration of function 'boverb' [-Wimplicit-function-declaration] 68 | box : box OVER box { boverb($1, $3); } | ^~~~~~ e.y:69:39: warning: implicit declaration of function 'mark' [-Wimplicit-function-declaration] 69 | | MARK box { mark($2); } | ^ e.y:70:60: warning: implicit declaration of function 'size' [-Wimplicit-function-declaration] 70 | | size box %prec SIZE { size($1, $2); } | ^ e.y:71:60: warning: implicit declaration of function 'font' [-Wimplicit-function-declaration] 71 | | font box %prec FONT { font($1, $2); } | ^ e.y:72:40: warning: implicit declaration of function 'fatbox' [-Wimplicit-function-declaration] 72 | | FAT box { fatbox($2); } | ^ e.y:74:45: warning: implicit declaration of function 'lpile'; did you mean 'tmpfile'? [-Wimplicit-function-declaration] 74 | | lpile '{' list '}' { lpile('L', $1, ct); ct = $1; } | ^~~~~ | tmpfile e.y:78:69: warning: implicit declaration of function 'shift2' [-Wimplicit-function-declaration] 78 | | box sub box sbox %prec SUB { shift2($1, $3, $4); } | ^~~ e.y:79:73: warning: implicit declaration of function 'bshiftb' [-Wimplicit-function-declaration] 79 | | box sub box %prec SUB { bshiftb($1, $2, $3); } | ^ e.y:81:69: warning: implicit declaration of function 'integral' [-Wimplicit-function-declaration] 81 | | int sub box sbox %prec SUB { integral($1, $3, $4); } | ^~~~~ e.y:85:49: warning: implicit declaration of function 'paren' [-Wimplicit-function-declaration] 85 | | left eqn right { paren($1, $2, $3); } | ^~~~~ e.y:87:67: warning: implicit declaration of function 'fromto' [-Wimplicit-function-declaration] 87 | | box from box tbox %prec FROM { fromto($1, $3, $4); fromflg=0; } | ^~~~~~ e.y:89:36: warning: implicit declaration of function 'diacrit' [-Wimplicit-function-declaration] 89 | | box diacrit { diacrit($1, $2); } | ^~~~~~~ e.y:90:63: warning: implicit declaration of function 'move'; did you mean 'remove'? [-Wimplicit-function-declaration] 90 | | fwd box %prec UP { move(FWD, $1, $2); } | ^ | remove e.y:94:57: warning: implicit declaration of function 'matrix' [-Wimplicit-function-declaration] 94 | | matrix '{' collist '}' { matrix($1); } | ^ e.y:97:25: warning: implicit declaration of function 'setintegral' [-Wimplicit-function-declaration] 97 | int : INT { setintegral(); } | ^~~~~~~~~~ e.y:100:52: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 100 | fwd : FWD text { $$ = atoi((char *) $2); } ; | ^~ e.y:143:54: warning: implicit declaration of function 'setsize' [-Wimplicit-function-declaration] 143 | size : SIZE text { $$ = ps; setsize((char *) $2); } | ^~~~~ e.y:146:37: warning: implicit declaration of function 'setfont' [-Wimplicit-function-declaration] 146 | font : ROMAN { setfont(ROM); } | ^~~~~ e.y:152:25: warning: implicit declaration of function 'shift' [-Wimplicit-function-declaration] 152 | sub : SUB { shift(SUB); } | ^~~~~ e.y:159:41: warning: implicit declaration of function 'text' [-Wimplicit-function-declaration] 159 | | QTEXT { text(QTEXT, (char *) $1); } | ^~~~ e.y:164:43: warning: implicit declaration of function 'funny' [-Wimplicit-function-declaration] 164 | | SUM { funny(SUM); } | ^ y.tab.c:2058:7: warning: implicit declaration of function 'yyerror'; did you mean 'yyerrok'? [-Wimplicit-function-declaration] 2058 | yyerror (YY_("syntax error")); | ^~~~~~~ | yyerrok cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c diacrit.c diacrit.c:4:1: warning: return type defaults to 'int' [-Wimplicit-int] 4 | diacrit(p1, type) int p1, type; { | ^~~~~~~ diacrit.c: In function 'diacrit': diacrit.c:7:13: warning: implicit declaration of function 'oalloc' [-Wimplicit-function-declaration] 7 | c = oalloc(); | ^~~~~~ diacrit.c:9:9: warning: implicit declaration of function 'nrwid' [-Wimplicit-function-declaration] 9 | nrwid(p1, ps, p1); | ^~~~~ diacrit.c:10:32: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration] 10 | printf(".nr 10 %du\n", max(eht[p1]-ebase[p1]-VERT(2),0)); | ^~~ diacrit.c:43:9: warning: implicit declaration of function 'ofree' [-Wimplicit-function-declaration] 43 | ofree(c); ofree(t); | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c eqnbox.c eqnbox.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | eqnbox(p1, p2, lu) { | ^~~~~~ eqnbox.c: In function 'eqnbox': eqnbox.c:6:1: warning: type of 'p1' defaults to 'int' [-Wimplicit-int] eqnbox.c:6:1: warning: type of 'p2' defaults to 'int' [-Wimplicit-int] eqnbox.c:6:1: warning: type of 'lu' defaults to 'int' [-Wimplicit-int] eqnbox.c:11:13: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration] 11 | b = max(ebase[p1], ebase[p2]); | ^~~ eqnbox.c:27:9: warning: implicit declaration of function 'ofree' [-Wimplicit-function-declaration] 27 | ofree(p2); | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c font.c font.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | setfont(ch1) char ch1; { | ^~~~~~~ font.c:21:1: warning: return type defaults to 'int' [-Wimplicit-int] 21 | font(p1, p2) int p1, p2; { | ^~~~ font.c:33:1: warning: return type defaults to 'int' [-Wimplicit-int] 33 | fatbox(p) int p; { | ^~~~~~ font.c: In function 'fatbox': font.c:38:9: warning: implicit declaration of function 'nrwid' [-Wimplicit-function-declaration] 38 | nrwid(p, ps, p); | ^~~~~ font.c: At top level: font.c:43:1: warning: return type defaults to 'int' [-Wimplicit-int] 43 | globfont() { | ^~~~~~~~ font.c: In function 'globfont': font.c:46:9: warning: implicit declaration of function 'getstr' [-Wimplicit-function-declaration] 46 | getstr(temp, 20); | ^~~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c fromto.c fromto.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | fromto(p1, p2, p3) int p1, p2, p3; { | ^~~~~~ fromto.c: In function 'fromto': fromto.c:8:23: warning: implicit declaration of function 'oalloc' [-Wimplicit-function-declaration] 8 | yyval.token = oalloc(); | ^~~~~~ fromto.c:15:9: warning: implicit declaration of function 'nrwid' [-Wimplicit-function-declaration] 15 | nrwid(p1, ps, p1); | ^~~~~ fromto.c:45:9: warning: implicit declaration of function 'ofree' [-Wimplicit-function-declaration] 45 | ofree(p1); | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c funny.c funny.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | funny(n) int n; { | ^~~~~ funny.c: In function 'funny': funny.c:9:23: warning: implicit declaration of function 'oalloc' [-Wimplicit-function-declaration] 9 | yyval.token = oalloc(); | ^~~~~~ funny.c:20:17: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 20 | error(FATAL, "funny type %d in funny", n); | ^~~~~ | perror cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c glob.c cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c integral.c integral.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | integral(p, p1, p2) { | ^~~~~~~~ integral.c: In function 'integral': integral.c:6:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int] integral.c:6:1: warning: type of 'p1' defaults to 'int' [-Wimplicit-int] integral.c:6:1: warning: type of 'p2' defaults to 'int' [-Wimplicit-int] integral.c:14:17: warning: implicit declaration of function 'shift2' [-Wimplicit-function-declaration] 14 | shift2(p, p1, p2); | ^~~~~~ integral.c:16:17: warning: implicit declaration of function 'bshiftb' [-Wimplicit-function-declaration] 16 | bshiftb(p, SUB, p1); | ^~~~~~~ integral.c: At top level: integral.c:24:1: warning: return type defaults to 'int' [-Wimplicit-int] 24 | setintegral() { | ^~~~~~~~~~~ integral.c: In function 'setintegral': integral.c:27:23: warning: implicit declaration of function 'oalloc' [-Wimplicit-function-declaration] 27 | yyval.token = oalloc(); | ^~~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c io.c io.c:12:1: warning: return type defaults to 'int' [-Wimplicit-int] 12 | main(argc,argv) int argc; char *argv[];{ | ^~~~ io.c: In function 'main': io.c:14:17: warning: implicit declaration of function 'eqn' [-Wimplicit-function-declaration] 14 | eqnexit(eqn(argc, argv)); | ^~~ io.c: At top level: io.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] 26 | eqn(argc,argv) int argc; char *argv[];{ | ^~~ io.c: In function 'eqn': io.c:29:9: warning: implicit declaration of function 'setfile' [-Wimplicit-function-declaration] 29 | setfile(argc,argv); | ^~~~~~~ io.c:30:9: warning: implicit declaration of function 'init_tbl' [-Wimplicit-function-declaration] 30 | init_tbl(); /* install keywords in tables */ | ^~~~~~~~ io.c:38:25: warning: implicit declaration of function 'init' [-Wimplicit-function-declaration] 38 | init(); | ^~~~ io.c:39:25: warning: implicit declaration of function 'yyparse' [-Wimplicit-function-declaration] 39 | yyparse(); | ^~~~~~~ io.c:56:48: warning: implicit declaration of function 'gtc'; did you mean 'getc'? [-Wimplicit-function-declaration] 56 | while (putchar(gtc()) != '\n'); | ^~~ | getc io.c: In function 'dwb_getline': io.c:67:18: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 67 | register c; | ^ io.c:70:25: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 70 | error( !FATAL, "input line too long: %.20s\n", in); | ^~~~~ | perror io.c: In function 'dwb_inline': io.c:84:14: warning: implicit declaration of function 'oalloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 84 | ds = oalloc(); | ^~~~~~ | valloc io.c:93:25: warning: implicit declaration of function 'ofree'; did you mean 'free'? [-Wimplicit-function-declaration] 93 | ofree(eqnreg); | ^~~~~ | free io.c: At top level: io.c:104:1: warning: return type defaults to 'int' [-Wimplicit-int] 104 | putout(p1) int p1; { | ^~~~~~ io.c:123:1: warning: return type defaults to 'int' [-Wimplicit-int] 123 | max(i,j) int i,j; { | ^~~ io.c:127:1: warning: return type defaults to 'int' [-Wimplicit-int] 127 | oalloc() { | ^~~~~~ io.c:135:1: warning: return type defaults to 'int' [-Wimplicit-int] 135 | ofree(n) int n; { | ^~~~~ io.c:139:1: warning: return type defaults to 'int' [-Wimplicit-int] 139 | setps(p) int p; { | ^~~~~ io.c:143:1: warning: return type defaults to 'int' [-Wimplicit-int] 143 | nrwid(n1, p, n2) int n1, p, n2; { | ^~~~~ io.c:147:1: warning: return type defaults to 'int' [-Wimplicit-int] 147 | setfile(argc, argv) int argc; char *argv[]; { | ^~~~~~~ io.c: In function 'setfile': io.c:167:28: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 167 | if (svargc <= 0 || strcmp(svargv[1], "-") == 0) { | ^~~~~~ io.c:3:1: note: include '<string.h>' or provide a declaration of 'strcmp' 2 | # include "e.h" +++ |+#include <string.h> 3 | #define MAXLINE 1200 /* maximum input line */ io.c: At top level: io.c:175:1: warning: return type defaults to 'int' [-Wimplicit-int] 175 | yyerror() {;} | ^~~~~~~ io.c:177:1: warning: return type defaults to 'int' [-Wimplicit-int] 177 | init() { | ^~~~ io.c:185:1: warning: return type defaults to 'int' [-Wimplicit-int] 185 | error(fatal, s1, s2) int fatal; char *s1, *s2; { | ^~~~~ io.c: In function 'dwb_getline': io.c:71:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 71 | in[MAXLINE] = '\0'; | ~~~~~~~~~~~~^~~~~~ io.c:5:9: note: at offset 1200 into destination object 'in' of size 1200 5 | char in[MAXLINE]; /* input buffer */ | ^~ In function 'dwb_getline', inlined from 'dwb_inline' at io.c:96:11: io.c:71:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 71 | in[MAXLINE] = '\0'; | ~~~~~~~~~~~~^~~~~~ io.c: In function 'dwb_inline': io.c:5:9: note: at offset 1200 into destination object 'in' of size 1200 5 | char in[MAXLINE]; /* input buffer */ | ^~ In function 'dwb_getline', inlined from 'eqn' at io.c:31:15: io.c:71:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 71 | in[MAXLINE] = '\0'; | ~~~~~~~~~~~~^~~~~~ io.c: In function 'eqn': io.c:5:9: note: at offset 1200 into destination object 'in' of size 1200 5 | char in[MAXLINE]; /* input buffer */ | ^~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c lex.c lex.c:21:1: warning: return type defaults to 'int' [-Wimplicit-int] 21 | gtc() { | ^~~ lex.c: In function 'gtc': lex.c:42:9: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 42 | error(FATAL, "can't open file %s", svargv[ifile]); | ^~~~~ | perror lex.c: At top level: lex.c:46:1: warning: return type defaults to 'int' [-Wimplicit-int] 46 | pbstr(str) | ^~~~~ lex.c:60:1: warning: return type defaults to 'int' [-Wimplicit-int] 60 | yylex() { | ^~~~~ lex.c: In function 'yylex': lex.c:118:17: warning: implicit declaration of function 'delim' [-Wimplicit-function-declaration] 118 | delim(); | ^~~~~ lex.c:120:17: warning: implicit declaration of function 'globsize' [-Wimplicit-function-declaration] 120 | globsize(); | ^~~~~~~~ lex.c:122:17: warning: implicit declaration of function 'globfont' [-Wimplicit-function-declaration] 122 | globfont(); | ^~~~~~~~ lex.c:124:17: warning: implicit declaration of function 'include' [-Wimplicit-function-declaration] 124 | include(); | ^~~~~~~ lex.c: At top level: lex.c:159:1: warning: return type defaults to 'int' [-Wimplicit-int] 159 | cstr(s, quote, maxs) char *s; int quote; { | ^~~~ lex.c: In function 'cstr': lex.c:159:1: warning: type of 'maxs' defaults to 'int' [-Wimplicit-int] lex.c: At top level: lex.c:212:1: warning: return type defaults to 'int' [-Wimplicit-int] 212 | include() { | ^~~~~~~ lex.c:216:1: warning: return type defaults to 'int' [-Wimplicit-int] 216 | delim() { | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c lookup.c lookup.c: In function 'lookup': lookup.c:190:21: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 190 | if (strcmp(name, p->name) == 0) { /* found it */ | ^~~~~~ lookup.c:4:1: note: include '<string.h>' or provide a declaration of 'strcmp' 3 | #include "y.tab.h" +++ |+#include <string.h> 4 | lookup.c:200:17: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 200 | error(FATAL, "out of space in lookup"); | ^~~~~ | perror lookup.c: At top level: lookup.c:208:1: warning: return type defaults to 'int' [-Wimplicit-int] 208 | init_tbl() /* initialize all tables */ | ^~~~~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c mark.c mark.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | mark(p1) int p1; { | ^~~~ mark.c:13:1: warning: return type defaults to 'int' [-Wimplicit-int] 13 | lineup(p1) { | ^~~~~~ mark.c: In function 'lineup': mark.c:13:1: warning: type of 'p1' defaults to 'int' [-Wimplicit-int] mark.c:16:31: warning: implicit declaration of function 'oalloc' [-Wimplicit-function-declaration] 16 | yyval.token = oalloc(); | ^~~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c matrix.c matrix.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | column(type, p1) int type, p1; { | ^~~~~~ matrix.c:19:1: warning: return type defaults to 'int' [-Wimplicit-int] 19 | matrix(p1) int p1; { | ^~~~~~ matrix.c: In function 'matrix': matrix.c:34:30: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration] 34 | hb = max(hb, eht[lp[j]]-ebase[lp[j]]); | ^~~ matrix.c:48:17: warning: implicit declaration of function 'lpile'; did you mean 'tmpfile'? [-Wimplicit-function-declaration] 48 | lpile(lp[j+lp[j]+1], j+1, j+lp[j]+1); | ^~~~~ | tmpfile matrix.c:52:23: warning: implicit declaration of function 'oalloc' [-Wimplicit-function-declaration] 52 | yyval.token = oalloc(); | ^~~~~~ matrix.c:61:17: warning: implicit declaration of function 'ofree' [-Wimplicit-function-declaration] 61 | ofree(val[i]); | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c move.c move.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | move(dir, amt, p) int dir, amt, p; { | ^~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c over.c over.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | boverb(p1, p2) int p1, p2; { | ^~~~~~ over.c: In function 'boverb': over.c:9:16: warning: implicit declaration of function 'oalloc' [-Wimplicit-function-declaration] 9 | treg = oalloc(); | ^~~~~~ over.c:16:9: warning: implicit declaration of function 'nrwid' [-Wimplicit-function-declaration] 16 | nrwid(p1, ps, p1); | ^~~~~ over.c:29:9: warning: implicit declaration of function 'ofree' [-Wimplicit-function-declaration] 29 | ofree(p2); | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c paren.c paren.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | paren(leftc, p1, rightc) int p1, leftc, rightc; { | ^~~~~ paren.c: In function 'paren': paren.c:10:13: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration] 10 | n = max(b1+VERT(1), h1-b1-VERT(1)) / VERT(1); | ^~~ paren.c:32:33: warning: implicit declaration of function 'brack' [-Wimplicit-function-declaration] 32 | brack(m, "\\(bv", "\\(bv", "\\(lf"); | ^~~~~ paren.c: At top level: paren.c:103:1: warning: return type defaults to 'int' [-Wimplicit-int] 103 | brack(m, t, c, b) int m; char *t, *c, *b; { | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c pile.c pile.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | lpile(type, p1, p2) int type, p1, p2; { | ^~~~~ pile.c: In function 'lpile': pile.c:8:23: warning: implicit declaration of function 'oalloc' [-Wimplicit-function-declaration] 8 | yyval.token = oalloc(); | ^~~~~~ pile.c:29:9: warning: implicit declaration of function 'nrwid' [-Wimplicit-function-declaration] 29 | nrwid(lp[p1], ps, lp[p1]); | ^~~~~ pile.c:63:17: warning: implicit declaration of function 'ofree' [-Wimplicit-function-declaration] 63 | ofree(lp[i]); | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c shift.c shift.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | bshiftb(p1, dir, p2) int p1, dir, p2; { | ^~~~~~~ shift.c: In function 'bshiftb': shift.c:18:43: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration] 18 | ebase[yyval.token] = b1 + max(0, h2-b1-d1); | ^~~ shift.c:32:9: warning: implicit declaration of function 'ofree' [-Wimplicit-function-declaration] 32 | ofree(p2); | ^~~~~ shift.c: At top level: shift.c:35:1: warning: return type defaults to 'int' [-Wimplicit-int] 35 | shift(p1) int p1; { | ^~~~~ shift.c:41:1: warning: return type defaults to 'int' [-Wimplicit-int] 41 | shift2(p1, p2, p3) int p1, p2, p3; { | ^~~~~~ shift.c: In function 'shift2': shift.c:45:16: warning: implicit declaration of function 'oalloc' [-Wimplicit-function-declaration] 45 | treg = oalloc(); | ^~~~~~ shift.c:62:9: warning: implicit declaration of function 'nrwid' [-Wimplicit-function-declaration] 62 | nrwid(p2, effps, p2); | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c size.c size.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | setsize(p) /* set size as found in p */ | ^~~~~~~ size.c: In function 'setsize': size.c:10:23: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 10 | ps += atoi(p+1); | ^~~~ size.c: At top level: size.c:18:1: warning: return type defaults to 'int' [-Wimplicit-int] 18 | size(p1, p2) int p1, p2; { | ^~~~ size.c:32:1: warning: return type defaults to 'int' [-Wimplicit-int] 32 | globsize() { | ^~~~~~~~ size.c: In function 'globsize': size.c:35:9: warning: implicit declaration of function 'getstr' [-Wimplicit-function-declaration] 35 | getstr(temp, 20); | ^~~~~~ size.c:43:9: warning: implicit declaration of function 'setps'; did you mean 'fsetpos'? [-Wimplicit-function-declaration] 43 | setps(gsize); | ^~~~~ | fsetpos cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c sqrt.c sqrt.c: In function 'dwb_sqrt': sqrt.c:8:9: warning: implicit declaration of function 'nrwid' [-Wimplicit-function-declaration] 8 | nrwid(p2, ps, p2); | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -I/usr/pkg/include -c text.c text.c:13:1: warning: return type defaults to 'int' [-Wimplicit-int] 13 | text(t,p1) int t; char *p1; { | ^~~~ text.c: In function 'text': text.c:19:23: warning: implicit declaration of function 'oalloc' [-Wimplicit-function-declaration] 19 | yyval.token = oalloc(); | ^~~~~~ text.c:36:30: warning: implicit declaration of function 'trans' [-Wimplicit-function-declaration] 36 | rf = trans(c, p1); | ^~~~~ text.c:40:33: warning: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 40 | error(FATAL,"converted token %.25s... too long",p1); | ^~~~~ | perror text.c: At top level: text.c:52:1: warning: return type defaults to 'int' [-Wimplicit-int] 52 | trans(c,p1) int c; char *p1; { | ^~~~~ text.c: In function 'trans': text.c:62:25: warning: implicit declaration of function 'shim' [-Wimplicit-function-declaration] 62 | shim(); | ^~~~ text.c:63:17: warning: implicit declaration of function 'roman' [-Wimplicit-function-declaration] 63 | roman(c); break; | ^~~~~ text.c:78:17: warning: implicit declaration of function 'name4' [-Wimplicit-function-declaration] 78 | name4('e','q'); | ^~~~~ text.c: At top level: text.c:157:1: warning: return type defaults to 'int' [-Wimplicit-int] 157 | shim() { | ^~~~ text.c:161:1: warning: return type defaults to 'int' [-Wimplicit-int] 161 | roman(c) int c; { | ^~~~~ text.c:167:1: warning: return type defaults to 'int' [-Wimplicit-int] 167 | name4(c1,c2) int c1,c2; { | ^~~~~ cc -pipe -O2 -I/usr/pkg/include -DNEQN -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o neqn diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o io.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o pile.o shift.o size.o sqrt.o text.o e.o /bin/ld: eqnbox.o: in function `eqnbox': eqnbox.c:(.text+0x29): undefined reference to `yyval' /bin/ld: eqnbox.c:(.text+0x64): undefined reference to `yyval' /bin/ld: eqnbox.c:(.text+0xad): undefined reference to `yyval' /bin/ld: font.o: in function `setfont': font.c:(.text+0x2a): undefined reference to `yyval' /bin/ld: font.o: in function `font': font.c:(.text+0x97): undefined reference to `yyval' /bin/ld: font.o:font.c:(.text+0x134): more undefined references to `yyval' follow collect2: error: ld returned 1 exit status *** Error code 1 Stop. bmake[2]: stopped making "all" in /home/pbulk/build/textproc/DWB/work/DWB3.3-20150517/text/neqn *** Error code 1 Stop. bmake[1]: stopped making "all" in /home/pbulk/build/textproc/DWB/work/DWB3.3-20150517/text *** Error code 1 Stop. bmake: stopped making "all" in /home/pbulk/build/textproc/DWB/work/DWB3.3-20150517 *** Error code 1 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/textproc/DWB *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/textproc/DWB