* Package: sys-apps/netkit-base-0.17-r9 * Repository: gentoo * Maintainer: base-system@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking netkit-base-0.17.tar.gz to /var/tmp/portage/sys-apps/netkit-base-0.17-r9/work >>> Source unpacked in /var/tmp/portage/sys-apps/netkit-base-0.17-r9/work >>> Preparing source in /var/tmp/portage/sys-apps/netkit-base-0.17-r9/work/netkit-base-0.17 ... * Applying 003_all_netkit-base-0.17-gcc4.patch ... [ ok ] * Applying 004_all_netkit-base-0.17-misc-fixes.patch ... [ ok ] * Applying 005_all_netkit-base-0.17-no-rpc.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-apps/netkit-base-0.17-r9/work/netkit-base-0.17 ... Directories: /bin /usr/bin /usr/sbin /usr/man Checking if C compiler works... yes Checking if x86_64-gentoo-linux-musl-gcc accepts gcc warnings... yes Checking if x86_64-gentoo-linux-musl-gcc accepts -O2... yes Checking for BSD signal semantics... yes Checking for socklen_t... yes Checking for snprintf declaration... ok Checking for snprintf implementation... ok Generating MCONFIG... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-apps/netkit-base-0.17-r9/work/netkit-base-0.17 ... make -j4 (cd inetd && make) (cd ping && make) make[1]: Entering directory '/var/tmp/portage/sys-apps/netkit-base-0.17-r9/work/netkit-base-0.17/inetd' x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline inetd.c -c x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline servtab.c -c x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline builtins.c -c make[1]: Entering directory '/var/tmp/portage/sys-apps/netkit-base-0.17-r9/work/netkit-base-0.17/ping' x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline ping.c -c builtins.c: In function 'chargen_stream': builtins.c:144:25: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 144 | bcopy(rs, text, LINESIZ); | ^~~~~ builtins.c:144:25: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] builtins.c:146:25: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] 146 | bcopy(rs, text, len); | ^~~~~ builtins.c: In function 'chargen_dg': builtins.c:187:17: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] 187 | bcopy(rs, text, LINESIZ); | ^~~~~ inetd.c: In function 'discard_stupid_environment': builtins.c:189:17: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] 189 | bcopy(rs, text, len); | ^~~~~ servtab.c: In function 'find_same_service': inetd.c:253:19: error: '__environ' undeclared (first use in this function) 253 | for (i=0; __environ[i]; i++) { | ^~~~~~~~~ inetd.c:253:19: note: each undeclared identifier is reported only once for each function it appears in servtab.c:107:21: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 107 | if (strcmp(sep->se_service, cp->se_service)) continue; | ^~~~~~ servtab.c:51:1: note: include '' or provide a declaration of 'strcmp' 50 | #include "mysleep.h" +++ |+#include 51 | servtab.c: In function 'dostrdup': servtab.c:185:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 185 | strcpy(x, cp); | ^~~~~~ servtab.c:185:9: note: include '' or provide a declaration of 'strcpy' servtab.c:185:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] servtab.c:185:9: note: include '' or provide a declaration of 'strcpy' inetd.c: In function 'launch': inetd.c:467:17: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration] 467 | fcntl(sep->se_fd, F_SETFL, O_NDELAY); | ^~~~~ inetd.c:467:17: warning: nested extern declaration of 'fcntl' [-Wnested-externs] servtab.c: In function 'assemble_entry': servtab.c:446:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 446 | memset(sep, 0, sizeof(*sep)); | ^~~~~~ servtab.c:446:9: note: include '' or provide a declaration of 'memset' servtab.c:446:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] inetd.c:467:35: error: 'F_SETFL' undeclared (first use in this function) 467 | fcntl(sep->se_fd, F_SETFL, O_NDELAY); | ^~~~~~~ servtab.c:446:9: note: include '' or provide a declaration of 'memset' servtab.c:448:13: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] 448 | s = strchr(fields[0], '@'); | ^~~~~~ servtab.c:448:13: note: include '' or provide a declaration of 'strchr' servtab.c:448:13: warning: incompatible implicit declaration of built-in function 'strchr' [-Wbuiltin-declaration-mismatch] servtab.c:448:13: note: include '' or provide a declaration of 'strchr' inetd.c:467:44: error: 'O_NDELAY' undeclared (first use in this function); did you mean 'LOG_NDELAY'? 467 | fcntl(sep->se_fd, F_SETFL, O_NDELAY); | ^~~~~~~~ | LOG_NDELAY servtab.c:454:17: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 454 | memcpy(&service_home, hp->h_addr, sizeof(service_home)); | ^~~~~~ servtab.c:454:17: note: include '' or provide a declaration of 'memcpy' servtab.c:454:17: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] servtab.c:454:17: note: include '' or provide a declaration of 'memcpy' servtab.c:474:22: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 474 | if (!strncmp(sep->se_proto, "rpc/", 4)) { | ^~~~~~~ servtab.c:474:22: note: include '' or provide a declaration of 'strncmp' servtab.c:474:53: 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] 474 | if (!strncmp(sep->se_proto, "rpc/", 4)) { | ^ : note: built-in 'strncmp' declared here servtab.c:439:19: warning: unused variable 't' [-Wunused-variable] 439 | char *s, *t; | ^ servtab.c: In function 'nexttoken': servtab.c:556:13: warning: implicit declaration of function 'strtok'; did you mean 'strtol'? [-Wimplicit-function-declaration] 556 | s = strtok(NULL, " \t\n"); | ^~~~~~ | strtol servtab.c:556:13: warning: nested extern declaration of 'strtok' [-Wnested-externs] servtab.c:556:11: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 556 | s = strtok(NULL, " \t\n"); | ^ servtab.c:565:14: warning: incompatible implicit declaration of built-in function 'strchr' [-Wbuiltin-declaration-mismatch] 565 | if (!strchr(" \t", linebuf[2])) { | ^~~~~~ servtab.c:565:14: note: include '' or provide a declaration of 'strchr' servtab.c:571:11: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 571 | s = strtok(linebuf+2, " \t\n"); | ^ servtab.c: In function 'loadconfigent': servtab.c:748:41: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 748 | strcpy(tmp, cp->se_service); | ^~~~~~ servtab.c:748:41: note: include '' or provide a declaration of 'strcpy' servtab.c:824:17: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 824 | strncpy(sep->se_ctrladdr_un.sun_path, | ^~~~~~~ servtab.c:824:17: note: include '' or provide a declaration of 'strncpy' servtab.c:824:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] servtab.c:824:17: note: include '' or provide a declaration of 'strncpy' servtab.c:840:38: warning: implicit declaration of function 'getrpcbyname'; did you mean 'getnetbyname'? [-Wimplicit-function-declaration] 840 | rp = getrpcbyname(sep->se_service); | ^~~~~~~~~~~~ | getnetbyname make[1]: *** [../MRULES:4: inetd.o] Error 1 make[1]: *** Waiting for unfinished jobs.... servtab.c:840:38: warning: nested extern declaration of 'getrpcbyname' [-Wnested-externs] servtab.c:840:36: warning: assignment to 'struct rpcent *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 840 | rp = getrpcbyname(sep->se_service); | ^ servtab.c:847:53: error: invalid use of undefined type 'struct rpcent' 847 | sep->se_rpcprog = rp->r_number; | ^~ make[1]: *** [../MRULES:4: servtab.o] Error 1 In file included from ping.c:68: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from ping.c:103: pingpack.h:47:8: error: redefinition of 'struct ip' 47 | struct ip { | ^~ In file included from ping.c:71: /usr/include/netinet/ip.h:43:8: note: originally defined here 43 | struct ip { | ^~ In file included from ping.c:103: pingpack.h:49:9: error: unknown type name 'u_int8_t' 49 | u_int8_t ip_hl:4; /* header length */ | ^~~~~~~~ pingpack.h:50:9: error: unknown type name 'u_int8_t' 50 | u_int8_t ip_v:4; /* version */ | ^~~~~~~~ pingpack.h:57:9: error: unknown type name 'u_int8_t' 57 | u_int8_t ip_tos; /* type of service */ | ^~~~~~~~ pingpack.h:58:9: error: unknown type name 'u_int16_t' 58 | u_int16_t ip_len; /* total length */ | ^~~~~~~~~ pingpack.h:59:9: error: unknown type name 'u_int16_t' 59 | u_int16_t ip_id; /* identification */ | ^~~~~~~~~ pingpack.h:60:9: error: unknown type name 'u_int16_t' 60 | u_int16_t ip_off; /* fragment offset field */ | ^~~~~~~~~ pingpack.h:61:9: error: unknown type name 'u_int8_t' 61 | u_int8_t ip_ttl; /* time to live */ | ^~~~~~~~ pingpack.h:62:9: error: unknown type name 'u_int8_t' 62 | u_int8_t ip_p; /* protocol */ | ^~~~~~~~ pingpack.h:63:9: error: unknown type name 'u_int16_t' 63 | u_int16_t ip_sum; /* checksum */ | ^~~~~~~~~ pingpack.h:68:8: error: redefinition of 'struct icmp' 68 | struct icmp { | ^~~~ In file included from ping.c:72: /usr/include/netinet/ip_icmp.h:78:8: note: originally defined here 78 | struct icmp { | ^~~~ In file included from ping.c:103: pingpack.h:69:9: error: unknown type name 'u_int8_t' 69 | u_int8_t icmp_type; /* type of message, see below */ | ^~~~~~~~ pingpack.h:70:9: error: unknown type name 'u_int8_t' 70 | u_int8_t icmp_code; /* type sub code */ | ^~~~~~~~ pingpack.h:71:9: error: unknown type name 'u_int16_t' 71 | u_int16_t icmp_cksum; /* ones complement checksum of struct */ | ^~~~~~~~~ pingpack.h:74:24: error: redefinition of 'struct ih_idseq' 74 | struct ih_idseq { /* echo datagram */ | ^~~~~~~~ In file included from ping.c:72: /usr/include/netinet/ip_icmp.h:85:24: note: originally defined here 85 | struct ih_idseq { | ^~~~~~~~ In file included from ping.c:103: pingpack.h:75:25: error: unknown type name 'u_int16_t' 75 | u_int16_t icd_id; | ^~~~~~~~~ pingpack.h:76:25: error: unknown type name 'u_int16_t' 76 | u_int16_t icd_seq; | ^~~~~~~~~ pingpack.h:83:9: error: unknown type name 'u_int8_t' 83 | u_int8_t icmp_data[1]; | ^~~~~~~~ In file included from ping.c:72: pingpack.h:83:21: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 83 | u_int8_t icmp_data[1]; | ^~~~~~~~~ ping.c:184:8: error: unknown type name 'u_int8_t' 184 | static u_int8_t inpack[IP_MAXPACKET]; | ^~~~~~~~ ping.c:206:8: error: unknown type name 'u_int8_t' 206 | static u_int8_t outpack[IP_MAXPACKET]; | ^~~~~~~~ ping.c:226:8: error: unknown type name 'u_long' 226 | static u_long tsum; /* sum of all times, for doing average */ | ^~~~~~ ping.c:236:1: error: unknown type name 'u_int16_t' 236 | u_int16_t | ^~~~~~~~~ ping.c:237:10: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 237 | in_cksum(u_int16_t *addr, int len) | ^~~~~~~~~ | uint16_t ping.c:317:9: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 317 | pr_addr(u_int32_t l) | ^~~~~~~~~ | uint32_t ping.c: In function 'pr_iph': ping.c:348:9: error: unknown type name 'u_int'; did you mean 'int'? 348 | u_int hlen; | ^~~~~ | int ping.c:349:9: error: unknown type name 'u_char'; did you mean 'char'? 349 | u_char *cp; | ^~~~~~ | char ping.c:352:16: error: 'u_char' undeclared (first use in this function); did you mean 'putchar'? 352 | cp = ((u_char *)ip) + sizeof(struct ip); /* point to options */ | ^~~~~~ | putchar ping.c:352:16: note: each undeclared identifier is reported only once for each function it appears in ping.c:352:24: error: expected expression before ')' token 352 | cp = ((u_char *)ip) + sizeof(struct ip); /* point to options */ | ^ ping.c: In function 'pr_retip': ping.c:378:9: error: unknown type name 'u_char'; did you mean 'char'? 378 | u_char *cp; | ^~~~~~ | char ping.c:387:15: error: 'u_char' undeclared (first use in this function); did you mean 'putchar'? 387 | cp = (u_char *)ip + hlen; | ^~~~~~ | putchar ping.c:387:23: error: expected expression before ')' token 387 | cp = (u_char *)ip + hlen; | ^ ping.c:377:13: warning: variable 'hlen' set but not used [-Wunused-but-set-variable] 377 | int hlen; | ^~~~ In file included from ping.c:72: ping.c: In function 'pr_icmph': ping.c:468:44: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 468 | pr_retip((struct ip *)icp->icmp_data); | ^~~~~~~~~ ping.c:472:44: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 472 | pr_retip((struct ip *)icp->icmp_data); | ^~~~~~~~~ ping.c:493:44: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 493 | pr_retip((struct ip *)icp->icmp_data); | ^~~~~~~~~ ping.c:512:44: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 512 | pr_retip((struct ip *)icp->icmp_data); | ^~~~~~~~~ ping.c:517:44: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 517 | pr_retip((struct ip *)icp->icmp_data); | ^~~~~~~~~ ping.c: In function 'pr_opts': ping.c:558:9: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 558 | u_int32_t addr; | ^~~~~~~~~ | uint32_t ping.c:559:9: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 559 | u_int8_t *cp = INPACK_OPTS; | ^~~~~~~~ | uint8_t ping.c:572:56: warning: implicit declaration of function 'pr_addr'; did you mean 'h_addr'? [-Wimplicit-function-declaration] 572 | printf("\t%s", pr_addr(ntohl(addr))); | ^~~~~~~ | h_addr ping.c:572:56: warning: nested extern declaration of 'pr_addr' [-Wnested-externs] ping.c:572:52: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 572 | printf("\t%s", pr_addr(ntohl(addr))); | ~^ ~~~~~~~~~~~~~~~~~~~~ | | | | | int | char * | %d ping.c:609:44: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 609 | printf("\t%s", pr_addr(ntohl(addr))); | ~^ ~~~~~~~~~~~~~~~~~~~~ | | | | | int | char * | %d ping.c: In function 'check_packet_data': ping.c:636:9: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 636 | u_int8_t *cp, *dp; | ^~~~~~~~ | uint8_t In file included from ping.c:72: ping.c:190:39: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 190 | #define INPACK_PAYLOAD (INPACK_ICMP->icmp_data) | ^~~~~~~~~ ping.c:639:14: note: in expansion of macro 'INPACK_PAYLOAD' 639 | cp = INPACK_PAYLOAD; | ^~~~~~~~~~~~~~ ping.c:210:40: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 210 | #define OUTPACK_PAYLOAD (OUTPACK_ICMP->icmp_data) | ^~~~~~~~~ ping.c:640:14: note: in expansion of macro 'OUTPACK_PAYLOAD' 640 | dp = OUTPACK_PAYLOAD; | ^~~~~~~~~~~~~~~ ping.c: In function 'pr_pack': ping.c:725:53: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 725 | tp = (struct timeval *)icp->icmp_data; | ^~~~~~~~~ ping.c:779:41: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 779 | printf("%d octets from %s: ", packlen, | ~^ | | | char * | %d 780 | pr_addr(from->sin_addr.s_addr)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int In file included from ping.c:72: ping.c: In function 'pinger': ping.c:210:40: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 210 | #define OUTPACK_PAYLOAD (OUTPACK_ICMP->icmp_data) | ^~~~~~~~~ ping.c:211:44: note: in expansion of macro 'OUTPACK_PAYLOAD' 211 | #define OUTPACK_TIME ((struct timeval *)OUTPACK_PAYLOAD) | ^~~~~~~~~~~~~~~ ping.c:868:24: note: in expansion of macro 'OUTPACK_TIME' 868 | memcpy(OUTPACK_TIME, &tmptm, sizeof(tmptm)); | ^~~~~~~~~~~~ ping.c:210:40: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 210 | #define OUTPACK_PAYLOAD (OUTPACK_ICMP->icmp_data) | ^~~~~~~~~ ping.c:872:30: note: in expansion of macro 'OUTPACK_PAYLOAD' 872 | packlen = datalen + (OUTPACK_PAYLOAD - outpack); | ^~~~~~~~~~~~~~~ ping.c:875:27: warning: implicit declaration of function 'in_cksum' [-Wimplicit-function-declaration] 875 | icp->icmp_cksum = in_cksum((u_short *)outpack, packlen); | ^~~~~~~~ ping.c:875:27: warning: nested extern declaration of 'in_cksum' [-Wnested-externs] ping.c:875:37: error: 'u_short' undeclared (first use in this function); did you mean 'qsort'? 875 | icp->icmp_cksum = in_cksum((u_short *)outpack, packlen); | ^~~~~~~ | qsort ping.c:875:46: error: expected expression before ')' token 875 | icp->icmp_cksum = in_cksum((u_short *)outpack, packlen); | ^ ping.c: In function 'secure_startup': ping.c:1105:9: error: '__environ' undeclared (first use in this function) 1105 | __environ = &null; | ^~~~~~~~~ ping.c: In function 'main': ping.c:1162:9: error: unknown type name 'u_char'; did you mean 'char'? 1162 | u_char ttl=0, loop; | ^~~~~~ | char make[1]: Leaving directory '/var/tmp/portage/sys-apps/netkit-base-0.17-r9/work/netkit-base-0.17/inetd' make: *** [Makefile:9: inetd.build] Error 2 make: *** Waiting for unfinished jobs.... ping.c:1301:17: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1301 | u_int8_t *ptr = OUTPACK_PAYLOAD; | ^~~~~~~~ | uint8_t In file included from ping.c:72: ping.c:210:40: error: 'struct icmp' has no member named 'icmp_dun'; did you mean 'icmp_hun'? 210 | #define OUTPACK_PAYLOAD (OUTPACK_ICMP->icmp_data) | ^~~~~~~~~ ping.c:1301:33: note: in expansion of macro 'OUTPACK_PAYLOAD' 1301 | u_int8_t *ptr = OUTPACK_PAYLOAD; | ^~~~~~~~~~~~~~~ ping.c:1162:23: warning: variable 'loop' set but not used [-Wunused-but-set-variable] 1162 | u_char ttl=0, loop; | ^~~~ make[1]: *** [../MRULES:4: ping.o] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-apps/netkit-base-0.17-r9/work/netkit-base-0.17/ping' make: *** [Makefile:9: ping.build] Error 2 * ERROR: sys-apps/netkit-base-0.17-r9::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-apps/netkit-base-0.17-r9::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-apps/netkit-base-0.17-r9::gentoo'`. * The complete build log is located at '/var/log/portage/sys-apps:netkit-base-0.17-r9:20211215-084300.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-apps/netkit-base-0.17-r9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/netkit-base-0.17-r9/temp/environment'. * Working directory: '/var/tmp/portage/sys-apps/netkit-base-0.17-r9/work/netkit-base-0.17' * S: '/var/tmp/portage/sys-apps/netkit-base-0.17-r9/work/netkit-base-0.17'