=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/benchmarks/ttcp", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for ttcp-1.12nb3 cd /tmp/work/benchmarks/ttcp/work && gcc ttcp.c -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wl,-R/opt/pkg/lib -lsocket -lnsl -o ttcp && nroff -man ttcp.1 >ttcp.cat1 ttcp.c: In function 'main': ttcp.c:153:5: warning: old-style function definition [-Wold-style-definition] 153 | int main(argc,argv) | ^~~~ ttcp.c:232:17: error: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 232 | bzero((char *)&sinhim, sizeof(sinhim)); | ^~~~~ ttcp.c:232:17: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch] ttcp.c:245:33: error: too many arguments to function 'err'; expected 0, have 1 245 | err("bad hostname"); | ^~~ ~~~~~~~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:247:25: error: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 247 | bcopy(addr->h_addr,(char*)&addr_tmp, addr->h_length); | ^~~~~ ttcp.c:247:25: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] ttcp.c:267:17: error: too many arguments to function 'err'; expected 0, have 1 267 | err("malloc"); | ^~~ ~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:288:17: error: too many arguments to function 'err'; expected 0, have 1 288 | err("socket"); | ^~~ ~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:289:9: error: too many arguments to function 'mes'; expected 0, have 1 289 | mes("socket"); | ^~~ ~~~~~~~~ ttcp.c:138:6: note: declared here 138 | void mes(); | ^~~ ttcp.c:293:17: error: too many arguments to function 'err'; expected 0, have 1 293 | err("bind"); | ^~~ ~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:300:25: error: too many arguments to function 'err'; expected 0, have 1 300 | err("setsockopt: sndbuf"); | ^~~ ~~~~~~~~~~~~~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:301:17: error: too many arguments to function 'mes'; expected 0, have 1 301 | mes("sndbuf"); | ^~~ ~~~~~~~~ ttcp.c:138:6: note: declared here 138 | void mes(); | ^~~ ttcp.c:305:25: error: too many arguments to function 'err'; expected 0, have 1 305 | err("setsockopt: rcvbuf"); | ^~~ ~~~~~~~~~~~~~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:306:17: error: too many arguments to function 'mes'; expected 0, have 1 306 | mes("rcvbuf"); | ^~~ ~~~~~~~~ ttcp.c:138:6: note: declared here 138 | void mes(); | ^~~ ttcp.c:312:29: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 312 | signal(SIGPIPE, sigpipe); | ^~~~~~~ | | | void (*)(void) In file included from /usr/include/signal.h:42, from ttcp.c:53: /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ ttcp.c:149:1: note: 'sigpipe' declared here 149 | sigpipe() | ^~~~~~~ ttcp.c:321:33: error: too many arguments to function 'err'; expected 0, have 1 321 | err("setsockopt"); | ^~~ ~~~~~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:329:33: error: too many arguments to function 'err'; expected 0, have 1 329 | err("setsockopt: nodelay"); | ^~~ ~~~~~~~~~~~~~~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:330:25: error: too many arguments to function 'mes'; expected 0, have 1 330 | mes("nodelay"); | ^~~ ~~~~~~~~~ ttcp.c:138:6: note: declared here 138 | void mes(); | ^~~ ttcp.c:334:25: error: too many arguments to function 'err'; expected 0, have 1 334 | err("connect"); | ^~~ ~~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:335:17: error: too many arguments to function 'mes'; expected 0, have 1 335 | mes("connect"); | ^~~ ~~~~~~~~~ ttcp.c:138:6: note: declared here 138 | void mes(); | ^~~ ttcp.c:351:33: error: too many arguments to function 'err'; expected 0, have 1 351 | err("setsockopt"); | ^~~ ~~~~~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:356:25: error: too many arguments to function 'err'; expected 0, have 1 356 | err("accept"); | ^~~ ~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:361:25: error: too many arguments to function 'err'; expected 0, have 1 361 | err("getpeername"); | ^~~ ~~~~~~~~~~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:373:25: error: too many arguments to function 'pattern'; expected 0, have 2 373 | pattern( buf, buflen ); | ^~~~~~~ ~~~ ttcp.c:139:5: note: declared here 139 | int pattern(); | ^~~~~~~ ttcp.c:374:40: error: too many arguments to function 'Nwrite'; expected 0, have 3 374 | if(udp) (void)Nwrite( fd, buf, 4 ); /* rcvr start */ | ^~~~~~ ~~ ttcp.c:143:5: note: declared here 143 | int Nwrite(); | ^~~~~~ ttcp.c:375:42: error: too many arguments to function 'Nwrite'; expected 0, have 3 375 | while (nbuf-- && Nwrite(fd,buf,buflen) == buflen) | ^~~~~~ ~~ ttcp.c:143:5: note: declared here 143 | int Nwrite(); | ^~~~~~ ttcp.c:377:40: error: too many arguments to function 'Nwrite'; expected 0, have 3 377 | if(udp) (void)Nwrite( fd, buf, 4 ); /* rcvr end */ | ^~~~~~ ~~ ttcp.c:143:5: note: declared here 143 | int Nwrite(); | ^~~~~~ ttcp.c:380:41: error: too many arguments to function 'Nread'; expected 0, have 3 380 | while ((cnt=Nread(fd,buf,buflen)) > 0) { | ^~~~~ ~~ ttcp.c:142:5: note: declared here 142 | int Nread(); | ^~~~~ ttcp.c:392:41: error: too many arguments to function 'Nread'; expected 0, have 3 392 | while ((cnt=Nread(fd,buf,buflen)) > 0) { | ^~~~~ ~~ ttcp.c:142:5: note: declared here 142 | int Nread(); | ^~~~~ ttcp.c:401:29: error: too many arguments to function 'Nwrite'; expected 0, have 3 401 | Nwrite(fd,buf,cnt) == cnt) | ^~~~~~ ~~ ttcp.c:143:5: note: declared here 143 | int Nwrite(); | ^~~~~~ ttcp.c:404:36: error: too many arguments to function 'Nread'; expected 0, have 3 404 | while((cnt=Nread(fd,buf,buflen)) > 0 && | ^~~~~ ~~ ttcp.c:142:5: note: declared here 142 | int Nread(); | ^~~~~ ttcp.c:409:19: error: too many arguments to function 'err'; expected 0, have 1 409 | if(errno) err("IO"); | ^~~ ~~~~ ttcp.c:137:6: note: declared here 137 | void err(); | ^~~ ttcp.c:410:15: error: too many arguments to function 'read_timer'; expected 0, have 2 410 | (void)read_timer(stats,sizeof(stats)); | ^~~~~~~~~~ ~~~~~ ttcp.c:141:8: note: declared here 141 | double read_timer(); | ^~~~~~~~~~ ttcp.c:412:23: error: too many arguments to function 'Nwrite'; expected 0, have 3 412 | (void)Nwrite( fd, buf, 4 ); /* rcvr end */ | ^~~~~~ ~~ ttcp.c:143:5: note: declared here 143 | int Nwrite(); | ^~~~~~ ttcp.c:413:23: error: too many arguments to function 'Nwrite'; expected 0, have 3 413 | (void)Nwrite( fd, buf, 4 ); /* rcvr end */ | ^~~~~~ ~~ ttcp.c:143:5: note: declared here 143 | int Nwrite(); | ^~~~~~ ttcp.c:414:23: error: too many arguments to function 'Nwrite'; expected 0, have 3 414 | (void)Nwrite( fd, buf, 4 ); /* rcvr end */ | ^~~~~~ ~~ ttcp.c:143:5: note: declared here 143 | int Nwrite(); | ^~~~~~ ttcp.c:415:23: error: too many arguments to function 'Nwrite'; expected 0, have 3 415 | (void)Nwrite( fd, buf, 4 ); /* rcvr end */ | ^~~~~~ ~~ ttcp.c:143:5: note: declared here 143 | int Nwrite(); | ^~~~~~ ttcp.c:422:32: error: too many arguments to function 'outfmt'; expected 0, have 1 422 | nbytes, realt, outfmt(nbytes/realt)); | ^~~~~~ ~~~~~~~~~~~~ ttcp.c:146:7: note: declared here 146 | char *outfmt(); | ^~~~~~ ttcp.c:427:31: error: too many arguments to function 'outfmt'; expected 0, have 1 427 | nbytes, cput, outfmt(nbytes/cput)); | ^~~~~~ ~~~~~~~~~~~ ttcp.c:146:7: note: declared here 146 | char *outfmt(); | ^~~~~~ ttcp.c: In function 'err': ttcp.c:450:1: warning: old-style function definition [-Wold-style-definition] 450 | err(s) | ^~~ ttcp.c:452:1: error: number of arguments doesn't match prototype 452 | { | ^ ttcp.c:137:6: error: prototype declaration 137 | void err(); | ^~~ ttcp.c: In function 'mes': ttcp.c:460:1: warning: old-style function definition [-Wold-style-definition] 460 | mes(s) | ^~~ ttcp.c:462:1: error: number of arguments doesn't match prototype 462 | { | ^ ttcp.c:138:6: error: prototype declaration 138 | void mes(); | ^~~ ttcp.c: In function 'pattern': ttcp.c:466:5: warning: old-style function definition [-Wold-style-definition] 466 | int pattern( cp, cnt ) | ^~~~~~~ ttcp.c:469:1: error: number of arguments doesn't match prototype 469 | { | ^ ttcp.c:139:5: error: prototype declaration 139 | int pattern(); | ^~~~~~~ ttcp.c: In function 'outfmt': ttcp.c:479:1: warning: old-style function definition [-Wold-style-definition] 479 | outfmt(b) | ^~~~~~ ttcp.c:481:1: error: number of arguments doesn't match prototype 481 | { | ^ ttcp.c:146:7: error: prototype declaration 146 | char *outfmt(); | ^~~~~~ ttcp.c: In function 'read_timer': ttcp.c:559:1: warning: old-style function definition [-Wold-style-definition] 559 | read_timer(str,len) | ^~~~~~~~~~ ttcp.c:562:1: error: number of arguments doesn't match prototype 562 | { | ^ ttcp.c:141:8: error: prototype declaration 141 | double read_timer(); | ^~~~~~~~~~ ttcp.c:571:9: error: too many arguments to function 'prusage'; expected 0, have 5 571 | prusage(&ru0, &ru1, &timedol, &time0, line); | ^~~~~~~ ~~~~ ttcp.c:510:13: note: declared here 510 | static void prusage(); | ^~~~~~~ ttcp.c:575:9: error: too many arguments to function 'tvsub'; expected 0, have 3 575 | tvsub( &td, &timedol, &time0 ); | ^~~~~ ~~~ ttcp.c:512:13: note: declared here 512 | static void tvsub(); | ^~~~~ ttcp.c:579:9: error: too many arguments to function 'tvadd'; expected 0, have 3 579 | tvadd( &tend, &ru1.ru_utime, &ru1.ru_stime ); | ^~~~~ ~~~~~ ttcp.c:511:13: note: declared here 511 | static void tvadd(); | ^~~~~ ttcp.c:580:9: error: too many arguments to function 'tvadd'; expected 0, have 3 580 | tvadd( &tstart, &ru0.ru_utime, &ru0.ru_stime ); | ^~~~~ ~~~~~~~ ttcp.c:511:13: note: declared here 511 | static void tvadd(); | ^~~~~ ttcp.c:581:9: error: too many arguments to function 'tvsub'; expected 0, have 3 581 | tvsub( &td, &tend, &tstart ); | ^~~~~ ~~~ ttcp.c:512:13: note: declared here 512 | static void tvsub(); | ^~~~~ ttcp.c: In function 'prusage': ttcp.c:588:1: warning: old-style function definition [-Wold-style-definition] 588 | prusage(r0, r1, e, b, outp) | ^~~~~~~ ttcp.c:621:25: error: too many arguments to function 'tvsub'; expected 0, have 3 621 | tvsub(&tdiff, &r1->ru_utime, &r0->ru_utime); | ^~~~~ ~~~~~~ ttcp.c:512:13: note: declared here 512 | static void tvsub(); | ^~~~~ ttcp.c:627:25: error: too many arguments to function 'tvsub'; expected 0, have 3 627 | tvsub(&tdiff, &r1->ru_stime, &r0->ru_stime); | ^~~~~ ~~~~~~ ttcp.c:512:13: note: declared here 512 | static void tvsub(); | ^~~~~ ttcp.c:633:25: error: too many arguments to function 'psecs'; expected 0, have 2 633 | psecs(ms / 100, outp); | ^~~~~ ~~~~~~~~ ttcp.c:513:13: note: declared here 513 | static void psecs(); | ^~~~~ ttcp.c: In function 'tvadd': ttcp.c:703:1: warning: old-style function definition [-Wold-style-definition] 703 | tvadd(tsum, t0, t1) | ^~~~~ ttcp.c: In function 'tvsub': ttcp.c:714:1: warning: old-style function definition [-Wold-style-definition] 714 | tvsub(tdiff, t1, t0) | ^~~~~ ttcp.c: In function 'psecs': ttcp.c:725:1: warning: old-style function definition [-Wold-style-definition] 725 | psecs(l,cp) | ^~~~~ ttcp.c: In function 'Nread': ttcp.c:752:1: warning: old-style function definition [-Wold-style-definition] 752 | Nread( fd, buf, count ) | ^~~~~ ttcp.c:756:1: error: number of arguments doesn't match prototype 756 | { | ^ ttcp.c:142:5: error: prototype declaration 142 | int Nread(); | ^~~~~ ttcp.c:765:31: error: too many arguments to function 'mread'; expected 0, have 3 765 | cnt = mread( fd, buf, count ); /* fill buf */ | ^~~~~ ~~ ttcp.c:145:5: note: declared here 145 | int mread(); | ^~~~~ ttcp.c: In function 'Nwrite': ttcp.c:784:1: warning: old-style function definition [-Wold-style-definition] 784 | Nwrite( fd, buf, count ) | ^~~~~~ ttcp.c:788:1: error: number of arguments doesn't match prototype 788 | { | ^ ttcp.c:143:5: error: prototype declaration 143 | int Nwrite(); | ^~~~~~ ttcp.c:795:25: error: too many arguments to function 'delay'; expected 0, have 1 795 | delay(18000); | ^~~~~ ~~~~~ ttcp.c:144:6: note: declared here 144 | void delay(); | ^~~~~ ttcp.c: At top level: ttcp.c:807:1: error: conflicting types for 'delay'; have 'void(int)' 807 | delay(int us) | ^~~~~ ttcp.c:144:6: note: previous declaration of 'delay' with type 'void(void)' 144 | void delay(); | ^~~~~ ttcp.c: In function 'mread': ttcp.c:826:1: warning: old-style function definition [-Wold-style-definition] 826 | mread(fd, bufp, n) | ^~~~~ ttcp.c:830:1: error: number of arguments doesn't match prototype 830 | { | ^ ttcp.c:145:5: error: prototype declaration 145 | int mread(); | ^~~~~ *** Error code 1 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/benchmarks/ttcp *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/benchmarks/ttcp