=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/benchmarks/nettest", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for nettest-92.11.09 --- all --- --- SunOS --- make objs INCLUDE="-I." DEFINES="-DSYSV -DWAIT3CODE -DNAMEDPIPES -DNO_ISO" LIBS="-lsocket -lnsl" OPT="-O" --- nettestd --- --- nettest --- --- nettestd --- gcc -O -I. -DSYSV -DWAIT3CODE -DNAMEDPIPES -DNO_ISO nettestd.c -o nettestd -lsocket -lnsl --- nettest --- gcc -O -I. -DSYSV -DWAIT3CODE -DNAMEDPIPES -DNO_ISO nettest.c -o nettest -lsocket -lnsl nettest.c:102:9: error: conflicting types for 'times'; have 'long int(void)' 102 | long times(); | ^~~~~ In file included from nettest.h:46, from nettest.c:42: /usr/include/sys/times.h:62:9: note: previous declaration of 'times' with type 'clock_t(struct tms *)' {aka 'long int(struct tms *)'} 62 | clock_t times(struct tms *); | ^~~~~ nettest.c:141:9: error: conflicting types for 'recv'; have 'ssize_t(void)' {aka 'long int(void)'} 141 | ssize_t recv(); | ^~~~ In file included from nettest.h:42: /usr/include/sys/socket.h:560:16: note: previous declaration of 'recv' with type 'ssize_t(int, void *, size_t, int)' {aka 'long int(int, void *, long unsigned int, int)'} 560 | extern ssize_t recv(int, void *, size_t, int); | ^~~~ nettest.c:146:1: error: return type defaults to 'int' [-Wimplicit-int] 146 | main(argc, argv) | ^~~~ nettest.c: In function 'main': nettest.c:146:1: warning: old-style function definition [-Wold-style-definition] nettest.c:151:26: error: conflicting types for 'gethostbyname'; have 'struct hostent *(void)' 151 | struct hostent *gethostbyname(), *hp; | ^~~~~~~~~~~~~ In file included from nettest.h:43: /usr/include/netdb.h:269:18: note: previous declaration of 'gethostbyname' with type 'struct hostent *(const char *)' 269 | struct hostent *gethostbyname(const char *); | ^~~~~~~~~~~~~ nettest.c:159:25: warning: conflicting types for built-in function 'strrchr'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 159 | char *srp = 0, *strrchr(); | ^~~~~~~ nettest.c:56:1: note: 'strrchr' is declared in header '' 55 | #include +++ |+#include 56 | #include nettest.c:181:23: error: implicit declaration of function 'getdtablesize' [-Wimplicit-function-declaration] 181 | maxchildren = getdtablesize() - 4; | ^~~~~~~~~~~~~ nettest.c:186:36: error: implicit declaration of function 'atoval'; did you mean 'atoll'? [-Wimplicit-function-declaration] 186 | kbufsize = atoval(optarg); | ^~~~~~ | atoll nettest.c:225:30: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 225 | if (!strcmp(optarg, "tcp")) { | ^~~~~~ nettest.c:225:30: note: include '' or provide a declaration of 'strcmp' nettest.c:273:36: error: implicit declaration of function 'parsetos' [-Wimplicit-function-declaration] 273 | if ((tos = parsetos(optarg, "*")) < 0) { | ^~~~~~~~ nettest.c:290:31: error: assignment to 'int (*)(void)' from incompatible pointer type 'ssize_t (*)(void)' {aka 'long int (*)(void)'} [-Wincompatible-pointer-types] 290 | rfunc = recv; | ^ nettest.c:141:9: note: 'recv' declared here 141 | ssize_t recv(); | ^~~~ --- nettestd --- nettestd.c:67:1: error: return type defaults to 'int' [-Wimplicit-int] 67 | dochild() | ^~~~~~~ --- nettest --- nettest.c:398:27: error: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] 398 | if ((s2 = open(myname, 1)) < 0) { | ^~~~ | popen --- nettestd --- nettestd.c:115:9: error: conflicting types for 'recv'; have 'ssize_t(void)' {aka 'long int(void)'} 115 | ssize_t recv(); | ^~~~ --- nettest --- nettest.c:405:25: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 405 | close(s2); | ^~~~~ | pclose --- nettestd --- In file included from nettest.h:42, from nettestd.c:41: /usr/include/sys/socket.h:560:16: note: previous declaration of 'recv' with type 'ssize_t(int, void *, size_t, int)' {aka 'long int(int, void *, long unsigned int, int)'} 560 | extern ssize_t recv(int, void *, size_t, int); | ^~~~ --- nettest --- nettest.c:429:17: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 429 | strcpy(name.d_unix.sun_path, portname); | ^~~~~~ nettest.c:429:17: note: include '' or provide a declaration of 'strcpy' nettest.c:429:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] --- nettestd --- nettestd.c:119:1: error: return type defaults to 'int' [-Wimplicit-int] 119 | main(argc, argv) | ^~~~ --- nettest --- nettest.c:429:17: note: include '' or provide a declaration of 'strcpy' --- nettestd --- nettestd.c: In function 'main': nettestd.c:119:1: warning: old-style function definition [-Wold-style-definition] nettestd.c:164:30: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 164 | if (!strcmp(optarg, "unix")) { | ^~~~~~ nettestd.c:65:1: note: include '' or provide a declaration of 'strcmp' 64 | #include +++ |+#include 65 | --- nettest --- nettest.c:441:17: error: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] 441 | gethostname(_myname, sizeof(_myname)); | ^~~~~~~~~~~ | gethostbyname nettest.c:445:41: error: too many arguments to function 'strrchr'; expected 0, have 2 445 | if ((destname = strrchr(hisname, ':')) == NULL) | ^~~~~~~ ~~~~~~~ nettest.c:159:25: note: declared here 159 | char *srp = 0, *strrchr(); | ^~~~~~~ nettest.c:446:44: error: too many arguments to function 'strrchr'; expected 0, have 2 446 | destname = strrchr(hisname, '@'); | ^~~~~~~ ~~~~~~~ nettest.c:159:25: note: declared here 159 | char *srp = 0, *strrchr(); | ^~~~~~~ nettest.c:449:32: error: too many arguments to function 'sourceroute'; expected 0, have 3 449 | temp = sourceroute(hisname, &srp, &srlen); | ^~~~~~~~~~~ ~~~~~~~ nettest.c:160:23: note: declared here 160 | unsigned long sourceroute(), srlen; | ^~~~~~~~~~~ nettest.c:470:35: error: too many arguments to function 'gethostbyname'; expected 0, have 1 470 | if ((hp = gethostbyname(hisname)) == NULL) { | ^~~~~~~~~~~~~ ~~~~~~~ nettest.c:151:26: note: declared here 151 | struct hostent *gethostbyname(), *hp; | ^~~~~~~~~~~~~ --- nettestd --- nettestd.c:176:33: error: implicit declaration of function 'usage' [-Wimplicit-function-declaration] 176 | usage(); | ^~~~~ --- nettest --- nettest.c:473:39: error: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration] 473 | tmp = inet_addr(hisname); | ^~~~~~~~~ nettest.c:485:33: error: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 485 | bcopy(hp->h_addr, (char *)&name.d_inet.sin_addr, | ^~~~~ nettest.c:485:33: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] nettest.c:516:25: error: too many arguments to function 'do_children'; expected 0, have 1 516 | do_children(nconnections); | ^~~~~~~~~~~ ~~~~~~~~~~~~ nettest.c:135:6: note: declared here 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^~~~~~~~~~~ nettest.c:562:25: error: too many arguments to function 'do_dgram'; expected 0, have 1 562 | do_dgram(s); | ^~~~~~~~ ~ nettest.c:135:43: note: declared here 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^~~~~~~~ nettest.c:569:32: error: passing argument 2 of 'connect' from incompatible pointer type [-Wincompatible-pointer-types] 569 | if (connect(s, (char *)&name, namesize) < 0) { | ^~~~~~~~~~~~~ | | | char * /usr/include/sys/socket.h:554:25: note: expected 'const struct sockaddr *' but argument is of type 'char *' 554 | extern int connect(int, const struct sockaddr *, socklen_t); | ^~~~~~~~~~~~~~~~~~~~~~~ nettest.c:584:9: error: too many arguments to function 'do_stream'; expected 0, have 2 584 | do_stream(s, s2); | ^~~~~~~~~ ~ nettest.c:135:21: note: declared here 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^~~~~~~~~ --- nettestd --- nettestd.c:283:21: error: implicit declaration of function 'setpgrp' [-Wimplicit-function-declaration] 283 | if (setpgrp() < 0) | ^~~~~~~ --- nettest --- nettest.c: In function 'do_children': nettest.c:616:1: warning: old-style function definition [-Wold-style-definition] 616 | do_children(nconnections) | ^~~~~~~~~~~ nettest.c:618:1: error: number of arguments doesn't match prototype 618 | { | ^ nettest.c:135:6: error: prototype declaration 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^~~~~~~~~~~ nettest.c:629:9: error: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 629 | bzero((char *)&start, sizeof(start)); | ^~~~~ nettest.c:629:9: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch] --- nettestd --- nettestd.c:288:31: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 288 | (void)close(c); | ^~~~~ | pclose nettestd.c:290:25: error: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 290 | switch (fork()) { | ^~~~ --- nettest --- nettest.c:634:25: error: implicit declaration of function 'getpid'; did you mean 'getpw'? [-Wimplicit-function-declaration] 634 | sync_children = getpid(); | ^~~~~~ | getpw nettest.c:636:30: error: implicit declaration of function 'getpgrp'; did you mean 'getpw'? [-Wimplicit-function-declaration] 636 | if (sync_children != getpgrp()) { | ^~~~~~~ | getpw --- nettestd --- nettestd.c:299:26: error: implicit declaration of function 'getdtablesize' [-Wimplicit-function-declaration] 299 | for (c = getdtablesize(); c >= 0; --c) | ^~~~~~~~~~~~~ --- nettest --- nettest.c:637:24: error: implicit declaration of function 'setpgid' [-Wimplicit-function-declaration] 637 | (void) setpgid(sync_children, sync_children); | ^~~~~~~ nettest.c:650:21: error: implicit declaration of function 'pipe' [-Wimplicit-function-declaration] 650 | if (pipe(&CHILD_READ(i)) < 0) { | ^~~~ nettest.c:655:28: error: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 655 | switch(n = fork()) { | ^~~~ --- nettestd --- nettestd.c:314:25: error: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 314 | unlink(buf); | ^~~~~~ nettestd.c:316:33: error: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 316 | error("mknod"); | ^~~~~ | perror --- nettest --- nettest.c:705:41: error: implicit declaration of function 'killpg' [-Wimplicit-function-declaration] 705 | killpg(sync_children, SIGCONT); | ^~~~~~ nettest.c:725:29: error: too many arguments to function 'read'; expected 0, have 3 725 | while ((n = read(CHILD_READ(i), buf, sizeof(buf))) > 0) { | ^~~~ nettest.c:137:5: note: declared here 137 | int read(); | ^~~~ nettest.c:726:37: error: implicit declaration of function 'extract_times' [-Wimplicit-function-declaration] 726 | gottimes += extract_times(buf, &n, &tms2, &start, &end, | ^~~~~~~~~~~~~ nettest.c:729:40: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 729 | (void) write(1, buf, n); | ^~~~~ | fwrite --- nettestd --- nettestd.c:335:25: error: implicit declaration of function 'data_stream' [-Wimplicit-function-declaration] 335 | data_stream(s2, s); | ^~~~~~~~~~~ --- nettest --- nettest.c:752:9: error: too many arguments to function 'prtimes'; expected 0, have 6 752 | prtimes(&start, &end, 0, &tms1, &tms2, 0); | ^~~~~~~ ~~~~~~ nettest.c:135:55: note: declared here 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^~~~~~~ nettest.c: In function 'extract_times': nettest.c:788:1: warning: old-style function definition [-Wold-style-definition] 788 | extract_times(buf, np, tmsp, startp, endp, cstartp, cendp) | ^~~~~~~~~~~~~ nettest.c:807:21: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 807 | if (strncmp(c1, UT_MAGIC, 8) == 0) { | ^~~~~~~ nettest.c:807:21: note: include '' or provide a declaration of 'strncmp' nettest.c:807:43: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 807 | if (strncmp(c1, UT_MAGIC, 8) == 0) { | ^ : note: built-in 'strncmp' declared here --- nettestd --- nettestd.c:356:25: error: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] 356 | sleep(1); | ^~~~~ --- nettest --- nettest.c:819:9: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] 819 | bcopy(c1, (char *)&tms, sizeof(tms)); | ^~~~~ --- nettestd --- nettestd.c:364:17: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 364 | strcpy(name.d_unix.sun_path, portname); | ^~~~~~ nettestd.c:364:17: note: include '' or provide a declaration of 'strcpy' nettestd.c:364:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] nettestd.c:364:17: note: include '' or provide a declaration of 'strcpy' --- nettest --- nettest.c: In function 'atoval': nettest.c:852:1: warning: old-style function definition [-Wold-style-definition] 852 | atoval(s) | ^~~~~~ nettest.c: In function 'do_stream': nettest.c:866:1: warning: old-style function definition [-Wold-style-definition] 866 | do_stream(in, out) | ^~~~~~~~~ nettest.c:868:1: error: number of arguments doesn't match prototype 868 | { | ^ nettest.c:135:21: error: prototype declaration 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^~~~~~~~~ nettest.c:905:21: error: too many arguments to function 'read'; expected 0, have 3 905 | i = read(in, cp, 1); | ^~~~ ~~ nettest.c:137:5: note: declared here 137 | int read(); | ^~~~ nettest.c:932:9: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch] 932 | bzero(cnts, (chunksize+1)*sizeof(long)); | ^~~~~ nettest.c:951:17: error: implicit declaration of function 'kill' [-Wimplicit-function-declaration] 951 | kill(getpid(), SIGSTOP); /* suspend ourself */ | ^~~~ nettest.c:108:29: error: too many arguments to function 'times'; expected 0, have 1 108 | #define GETTIMES(a, b) a = times(&b); | ^~~~~ nettest.c:953:9: note: in expansion of macro 'GETTIMES' 953 | GETTIMES(start, tms1); | ^~~~~~~~ nettest.c:102:9: note: declared here 102 | long times(); | ^~~~~ --- nettestd --- nettestd.c:434:25: error: implicit declaration of function 'do_dgram' [-Wimplicit-function-declaration] 434 | do_dgram(s); | ^~~~~~~~ --- nettest --- nettest.c:108:29: error: too many arguments to function 'times'; expected 0, have 1 108 | #define GETTIMES(a, b) a = times(&b); | ^~~~~ nettest.c:979:9: note: in expansion of macro 'GETTIMES' 979 | GETTIMES(turnaround, tms2); | ^~~~~~~~ nettest.c:102:9: note: declared here 102 | long times(); | ^~~~~ nettest.c:990:27: error: too many arguments to function 'rfunc'; expected 0, have 4 990 | if ((t = (*rfunc)(in, data, chunksize, waitall)) < 0) { | ~^~~~~~~ ~~ nettest.c:1016:44: error: too many arguments to function 'rfunc'; expected 0, have 4 1016 | if ((t2 = (*rfunc)(in, data+t, chunksize-t, | ~^~~~~~~ ~~ nettest.c:108:29: error: too many arguments to function 'times'; expected 0, have 1 108 | #define GETTIMES(a, b) a = times(&b); | ^~~~~ nettest.c:1082:9: note: in expansion of macro 'GETTIMES' 1082 | GETTIMES(end, tms3); | ^~~~~~~~ nettest.c:102:9: note: declared here 102 | long times(); | ^~~~~ nettest.c:1098:17: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 1098 | strncpy(td.mt_magic, UT_MAGIC, 8); | ^~~~~~~ nettest.c:1098:17: note: include '' or provide a declaration of 'strncpy' nettest.c:1098:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] nettest.c:1098:17: note: include '' or provide a declaration of 'strncpy' --- nettestd --- nettestd.c:436:25: error: implicit declaration of function 'do_stream' [-Wimplicit-function-declaration] 436 | do_stream(s); | ^~~~~~~~~ --- nettest --- nettest.c:1108:9: error: too many arguments to function 'prtimes'; expected 0, have 6 1108 | prtimes(&start, &turnaround, &end, &tms1, &tms2, &tms3); | ^~~~~~~ ~~~~~~ nettest.c:135:55: note: declared here 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^~~~~~~ --- nettestd --- nettestd.c: At top level: nettestd.c:442:1: error: return type defaults to 'int' [-Wimplicit-int] 442 | do_stream(s) | ^~~~~~~~~ nettestd.c: In function 'do_stream': nettestd.c:442:1: warning: old-style function definition [-Wold-style-definition] --- nettest --- nettest.c: In function 'do_dgram': nettest.c:1149:1: warning: old-style function definition [-Wold-style-definition] 1149 | do_dgram(s) | ^~~~~~~~ --- nettestd --- nettestd.c: At top level: --- nettest --- nettest.c:1151:1: error: number of arguments doesn't match prototype 1151 | { | ^ --- nettestd --- nettestd.c:523:1: error: return type defaults to 'int' [-Wimplicit-int] 523 | data_stream(in, out) | ^~~~~~~~~~~ nettestd.c: In function 'data_stream': nettestd.c:524:10: error: type defaults to 'int' in declaration of 'in' [-Wimplicit-int] 524 | register in, out; | ^~ --- nettest --- nettest.c:135:43: error: prototype declaration 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^~~~~~~~ --- nettestd --- nettestd.c:524:14: error: type defaults to 'int' in declaration of 'out' [-Wimplicit-int] 524 | register in, out; | ^~~ nettestd.c:523:1: warning: old-style function definition [-Wold-style-definition] 523 | data_stream(in, out) | ^~~~~~~~~~~ nettestd.c:543:21: error: too many arguments to function 'read'; expected 0, have 3 543 | i = read(in, cp, 1); | ^~~~ ~~ nettestd.c:111:5: note: declared here 111 | int read(); | ^~~~ --- nettest --- nettest.c:1167:9: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch] 1167 | bzero((char *)&outmsg, sizeof(outmsg)); | ^~~~~ nettest.c:108:29: error: too many arguments to function 'times'; expected 0, have 1 108 | #define GETTIMES(a, b) a = times(&b); | ^~~~~ nettest.c:1172:9: note: in expansion of macro 'GETTIMES' 1172 | GETTIMES(start, tms1); | ^~~~~~~~ nettest.c:102:9: note: declared here 102 | long times(); | ^~~~~ nettest.c:108:29: error: too many arguments to function 'times'; expected 0, have 1 108 | #define GETTIMES(a, b) a = times(&b); | ^~~~~ nettest.c:1192:9: note: in expansion of macro 'GETTIMES' 1192 | GETTIMES(end, tms2); | ^~~~~~~~ nettest.c:102:9: note: declared here 102 | long times(); | ^~~~~ nettest.c:1197:9: error: too many arguments to function 'prtimes'; expected 0, have 6 1197 | prtimes(&start, &end, &end, &tms1, &tms2, &tms2); | ^~~~~~~ ~~~~~~ nettest.c:135:55: note: declared here 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^~~~~~~ --- nettestd --- nettestd.c:568:17: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 568 | write(out, buf, strlen(buf)); | ^~~~~ | fwrite nettestd.c:571:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 571 | strcpy(buf, "1"); | ^~~~~~ nettestd.c:571:9: note: include '' or provide a declaration of 'strcpy' --- nettest --- nettest.c: In function 'prtimes': nettest.c:1201:1: warning: old-style function definition [-Wold-style-definition] 1201 | prtimes(p0, p1, p2, tms1, tms2, tms3) | ^~~~~~~ nettest.c:1204:1: error: number of arguments doesn't match prototype 1204 | { | ^ --- nettestd --- nettestd.c:579:25: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 579 | strcat(buf, " Cannot set buffers sizes."); | ^~~~~~ --- nettest --- nettest.c:135:55: error: prototype declaration 135 | void do_children(), do_stream(), usage(), do_dgram(), prtimes(); | ^~~~~~~ --- nettestd --- nettestd.c:579:25: note: include '' or provide a declaration of 'strcat' nettestd.c:579:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] nettestd.c:579:25: note: include '' or provide a declaration of 'strcat' nettestd.c:585:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 585 | strcat(buf, " Cannot set TOS bits."); | ^~~~~~ nettestd.c:585:25: note: include '' or provide a declaration of 'strcat' nettestd.c:592:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 592 | strcat(buf, " Cannot set TCP_NODELAY."); | ^~~~~~ nettestd.c:592:25: note: include '' or provide a declaration of 'strcat' nettestd.c:597:23: error: assignment to 'int (*)(void)' from incompatible pointer type 'ssize_t (*)(void)' {aka 'long int (*)(void)'} [-Wincompatible-pointer-types] 597 | rfunc = recv; | ^ nettestd.c:115:9: note: 'recv' declared here 115 | ssize_t recv(); | ^~~~ nettestd.c:603:9: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 603 | strcat(buf, " \n"); | ^~~~~~ nettestd.c:603:9: note: include '' or provide a declaration of 'strcat' nettestd.c:607:27: error: too many arguments to function 'rfunc'; expected 0, have 4 607 | if ((t = (*rfunc)(in, data + offset, chunksize, waitall)) < 0) { | ~^~~~~~~ ~~ nettestd.c:626:31: error: too many arguments to function 'rfunc'; expected 0, have 4 626 | t2 = (*rfunc)(in, data+t, chunksize-t, waitall); | ~^~~~~~~ ~~ --- nettest --- nettest.c: In function 'sourceroute': nettest.c:160:23: warning: old-style function definition [-Wold-style-definition] 160 | unsigned long sourceroute(), srlen; | ^~~~~~~~~~~ nettest.c:1296:1: error: number of arguments doesn't match prototype 1296 | { | ^ nettest.c:160:23: error: prototype declaration 160 | unsigned long sourceroute(), srlen; | ^~~~~~~~~~~ nettest.c:1298:41: warning: conflicting types for built-in function 'index'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 1298 | char *cp, *cp2, *lsrp, *lsrep, *index(); | ^~~~~ nettest.c:1370:25: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 1370 | memcpy((caddr_t)&sin_addr, | ^~~~~~ nettest.c:1370:25: note: include '' or provide a declaration of 'memcpy' nettest.c:1370:25: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] nettest.c:1370:25: note: include '' or provide a declaration of 'memcpy' nettest.c:1379:17: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 1379 | memcpy(lsrp, (char *)&sin_addr, 4); | ^~~~~~ nettest.c:1379:17: note: include '' or provide a declaration of 'memcpy' --- nettestd --- nettestd.c: At top level: nettestd.c:690:1: error: return type defaults to 'int' [-Wimplicit-int] 690 | do_dgram(s) | ^~~~~~~~ nettestd.c: In function 'do_dgram': nettestd.c:690:1: warning: old-style function definition [-Wold-style-definition] --- nettest --- nettest.c: In function 'parsetos': nettest.c:1408:1: warning: old-style function definition [-Wold-style-definition] 1408 | parsetos(name, proto) | ^~~~~~~~ --- nettestd --- nettestd.c:745:30: error: too many arguments to function 'inet_ntoa'; expected 0, have 1 745 | cp = inet_ntoa(name.d_inet.sin_addr); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ nettestd.c:696:34: note: declared here 696 | char *inet_ntoa(); | ^~~~~~~~~ nettestd.c: At top level: nettestd.c:752:1: error: return type defaults to 'int' [-Wimplicit-int] 752 | usage() | ^~~~~ nettestd.c:769:1: error: return type defaults to 'int' [-Wimplicit-int] 769 | error(string) | ^~~~~ nettestd.c: In function 'error': nettestd.c:769:1: warning: old-style function definition [-Wold-style-definition] *** [nettestd] Error code 1 make[2]: stopped making "objs" in /tmp/work/benchmarks/nettest/work --- nettest --- *** [nettest] Error code 1 make[2]: stopped making "objs" in /tmp/work/benchmarks/nettest/work make[2]: 2 errors make[2]: stopped making "objs" in /tmp/work/benchmarks/nettest/work *** [SunOS] Error code 2 make[1]: stopped making "SunOS" in /tmp/work/benchmarks/nettest/work make[1]: 1 error make[1]: stopped making "SunOS" in /tmp/work/benchmarks/nettest/work *** [all] Error code 2 bmake: stopped making "all" in /tmp/work/benchmarks/nettest/work bmake: 1 error bmake: stopped making "all" in /tmp/work/benchmarks/nettest/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/benchmarks/nettest *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/benchmarks/nettest