* Package: net-misc/vmnet-0.4:0 * Repository: gentoo * Maintainer: robbat2@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking vmnet-0.4.tar.gz to /var/tmp/portage/net-misc/vmnet-0.4/work >>> Unpacking vmnet_0.4-1.diff.gz to /var/tmp/portage/net-misc/vmnet-0.4/work >>> Source unpacked in /var/tmp/portage/net-misc/vmnet-0.4/work >>> Preparing source in /var/tmp/portage/net-misc/vmnet-0.4/work/vmnet-0.4 ... * Applying vmnet_0.4-1.diff ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-misc/vmnet-0.4/work/vmnet-0.4 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-misc/vmnet-0.4/work/vmnet-0.4 ... make -j4 clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,now vmnet.c -o vmnet vmnet.c:104:2: error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] memset(&sa, 0, sizeof(sa)); ^ vmnet.c:104:2: note: include the header or explicitly provide a declaration for 'memset' vmnet.c:122:7: error: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] r = read(fd, &buf[n], 1); ^ vmnet.c:122:7: note: did you mean 'fread'? /usr/include/stdio.h:675:15: note: 'fread' declared here extern size_t fread (void *__restrict __ptr, size_t __size, ^ vmnet.c:162:8: error: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if (!strcmp(username, cfg->username) ^ vmnet.c:162:8: note: include the header or explicitly provide a declaration for 'strcmp' vmnet.c:176:16: error: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] pw = getpwuid(getuid()); ^ vmnet.c:176:16: note: did you mean 'getpwuid'? /usr/include/pwd.h:110:23: note: 'getpwuid' declared here extern struct passwd *getpwuid (__uid_t __uid); ^ vmnet.c:177:2: error: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] strncpy(sc->username, pw->pw_name, sizeof(sc->username)-1); ^ vmnet.c:177:2: note: include the header or explicitly provide a declaration for 'strncpy' vmnet.c:197:11: error: call to undeclared function 'getpt'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] master = getpt(); ^ vmnet.c:202:6: error: call to undeclared function 'grantpt'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if (grantpt(master) < 0 || unlockpt(master) < 0) { ^ vmnet.c:202:29: error: call to undeclared function 'unlockpt'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if (grantpt(master) < 0 || unlockpt(master) < 0) { ^ vmnet.c:203:3: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] close(master); ^ vmnet.c:207:6: error: call to undeclared function 'ptsname_r'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if (ptsname_r(master, name, sizeof(name)) < 0) { ^ vmnet.c:208:3: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] close(master); ^ vmnet.c:214:3: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] close(master); ^ vmnet.c:288:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ vmnet.c:297:15: error: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] sprintf(buf+strlen(buf), " && %s up '%s' '%s'", ^ vmnet.c:297:15: note: include the header or explicitly provide a declaration for 'strlen' vmnet.c:336:2: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] close(sc->masterfd); ^ vmnet.c:348:13: error: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] buf->len = read(fd, buf->data, sizeof(buf->data)); ^ vmnet.c:361:6: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] r = write(fd, buf->ptr, buf->len); ^ vmnet.c:361:6: note: did you mean 'fwrite'? /usr/include/stdio.h:681:15: note: 'fwrite' declared here extern size_t fwrite (const void *__restrict __ptr, size_t __size, ^ vmnet.c:380:2: error: call to undeclared function 'setuid'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] setuid(0); /* set real uid to 0 for some ifconfig's */ ^ 1 warning and 17 errors generated. make: *** [: vmnet] Error 1 * ERROR: net-misc/vmnet-0.4::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/vmnet-0.4::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/vmnet-0.4::gentoo'`. * The complete build log is located at '/var/log/portage/net-misc:vmnet-0.4:20220918-084953.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-misc/vmnet-0.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/vmnet-0.4/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/vmnet-0.4/work/vmnet-0.4' * S: '/var/tmp/portage/net-misc/vmnet-0.4/work/vmnet-0.4'