+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/nettest-92.11.09/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/nettest-92.11.09/work.log 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:146:1: error: return type defaults to 'int' [-Wimplicit-int] 146 | main(argc, argv) | ^~~~ nettest.c: In function 'main': 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:56:1: note: include '' or provide a declaration of 'strcmp' 55 | #include +++ |+#include 56 | #include 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 (*)()' from incompatible pointer type 'ssize_t (*)(int, void *, size_t, int)' {aka 'long int (*)(int, void *, long unsigned int, int)'} [-Wincompatible-pointer-types] 290 | rfunc = recv; | ^ 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 nettest.c:405:25: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 405 | close(s2); | ^~~~~ | pclose 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] nettest.c:429:17: note: include '' or provide a declaration of 'strcpy' 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: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] --- nettestd --- nettestd.c:67:1: error: return type defaults to 'int' [-Wimplicit-int] 67 | dochild() | ^~~~~~~ --- nettest --- 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 * In file included from nettest.h:42, from nettest.c:42: /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); | ^~~~~~~~~~~~~~~~~~~~~~~ --- nettestd --- nettestd.c:119:1: error: return type defaults to 'int' [-Wimplicit-int] 119 | main(argc, argv) | ^~~~ --- nettest --- nettest.c: In function 'do_children': 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: In function 'main': 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: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:176:33: error: implicit declaration of function 'usage' [-Wimplicit-function-declaration] 176 | usage(); | ^~~~~ --- 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()) { | ^~~~ nettest.c:705:41: error: implicit declaration of function 'killpg' [-Wimplicit-function-declaration] 705 | killpg(sync_children, SIGCONT); | ^~~~~~ --- nettestd --- nettestd.c:283:21: error: implicit declaration of function 'setpgrp' [-Wimplicit-function-declaration] 283 | if (setpgrp() < 0) | ^~~~~~~ --- nettest --- nettest.c:726:37: error: implicit declaration of function 'extract_times' [-Wimplicit-function-declaration] 726 | gottimes += extract_times(buf, &n, &tms2, &start, &end, | ^~~~~~~~~~~~~ --- nettestd --- nettestd.c:287:31: error: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration] 287 | (void)ioctl(c, TIOCNOTTY, (char *)0); | ^~~~~ --- nettest --- 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:288:31: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 288 | (void)close(c); | ^~~~~ | pclose --- nettest --- nettest.c: In function 'extract_times': --- nettestd --- nettestd.c:290:25: error: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 290 | switch (fork()) { | ^~~~ --- nettest --- 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 nettest.c:819:9: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] 819 | bcopy(c1, (char *)&tms, sizeof(tms)); | ^~~~~ nettest.c: In function 'do_stream': nettest.c:932:9: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch] 932 | bzero(cnts, (chunksize+1)*sizeof(long)); | ^~~~~ --- nettestd --- nettestd.c:299:26: error: implicit declaration of function 'getdtablesize' [-Wimplicit-function-declaration] 299 | for (c = getdtablesize(); c >= 0; --c) | ^~~~~~~~~~~~~ --- nettest --- nettest.c:951:17: error: implicit declaration of function 'kill' [-Wimplicit-function-declaration] 951 | kill(getpid(), SIGSTOP); /* suspend ourself */ | ^~~~ 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:314:25: error: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 314 | unlink(buf); | ^~~~~~ --- nettest --- nettest.c: In function 'do_dgram': nettest.c:1167:9: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch] 1167 | bzero((char *)&outmsg, sizeof(outmsg)); | ^~~~~ --- nettestd --- nettestd.c:316:33: error: implicit declaration of function 'error'; did you mean 'perror'? [-Wimplicit-function-declaration] 316 | error("mknod"); | ^~~~~ | perror --- nettest --- nettest.c: In function 'sourceroute': 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:335:25: error: implicit declaration of function 'data_stream' [-Wimplicit-function-declaration] 335 | data_stream(s2, s); | ^~~~~~~~~~~ nettestd.c:356:25: error: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] 356 | sleep(1); | ^~~~~ 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' nettestd.c:434:25: error: implicit declaration of function 'do_dgram' [-Wimplicit-function-declaration] 434 | do_dgram(s); | ^~~~~~~~ nettestd.c:436:25: error: implicit declaration of function 'do_stream' [-Wimplicit-function-declaration] 436 | do_stream(s); | ^~~~~~~~~ nettestd.c: At top level: nettestd.c:442:1: error: return type defaults to 'int' [-Wimplicit-int] 442 | do_stream(s) | ^~~~~~~~~ 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; | ^~ nettestd.c:524:14: error: type defaults to 'int' in declaration of 'out' [-Wimplicit-int] 524 | register in, out; | ^~~ 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' nettestd.c:579:25: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 579 | strcat(buf, " Cannot set buffers sizes."); | ^~~~~~ 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 (*)()' from incompatible pointer type 'ssize_t (*)(int, void *, size_t, int)' {aka 'long int (*)(int, void *, long unsigned int, int)'} [-Wincompatible-pointer-types] 597 | rfunc = 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: At top level: nettestd.c:690:1: error: return type defaults to 'int' [-Wimplicit-int] 690 | do_dgram(s) | ^~~~~~~~ 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) | ^~~~~ --- nettest --- *** [nettest] Error code 1 make[2]: stopped making "objs" in /home/pbulk/build/benchmarks/nettest/work --- nettestd --- *** [nettestd] Error code 1 make[2]: stopped making "objs" in /home/pbulk/build/benchmarks/nettest/work make[2]: 2 errors make[2]: stopped making "objs" in /home/pbulk/build/benchmarks/nettest/work *** [SunOS] Error code 2 make[1]: stopped making "SunOS" in /home/pbulk/build/benchmarks/nettest/work make[1]: 1 error make[1]: stopped making "SunOS" in /home/pbulk/build/benchmarks/nettest/work *** [all] Error code 2 bmake: stopped making "all" in /home/pbulk/build/benchmarks/nettest/work bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/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