* Package: net-ftp/linksys-tftp-1.2.1-r3:0 * Repository: gentoo * Maintainer: embedded@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking linksys-tftp-1.2.1.tar.bz2 to /var/tmp/portage/net-ftp/linksys-tftp-1.2.1-r3/work >>> Source unpacked in /var/tmp/portage/net-ftp/linksys-tftp-1.2.1-r3/work >>> Preparing source in /var/tmp/portage/net-ftp/linksys-tftp-1.2.1-r3/work/linksys-tftp-1.2.1 ... * Applying linksys-tftp-1.2.1-r1-header.patch ... [ ok ] * Applying linksys-tftp-1.2.1-r1-Makefile.patch ... [ ok ] * Applying linksys-tftp-1.2.1-r1-fno-common.patch ... [ ok ] * Applying linksys-tftp-1.2.1-r1-clang.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-ftp/linksys-tftp-1.2.1-r3/work/linksys-tftp-1.2.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-ftp/linksys-tftp-1.2.1-r3/work/linksys-tftp-1.2.1 ... make -j4 CC=x86_64-pc-linux-gnu-gcc x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I. -Dsin=sin_x -c -o main.o main.c x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I. -Dsin=sin_x -c -o tftp.o tftp.c x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I. -Dsin=sin_x -c -o tftpsubs.o tftpsubs.c tftpsubs.c:85:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 85 | readit(file, dpp, convert) | ^~~~~~ tftpsubs.c: In function ‘readit’: tftpsubs.c:97:17: error: implicit declaration of function ‘read_ahead’ [-Werror=implicit-function-declaration] 97 | read_ahead(file, convert); /* fill it */ | ^~~~~~~~~~ tftpsubs.c: At top level: tftpsubs.c:107:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 107 | read_ahead(file, convert) | ^~~~~~~~~~ tftpsubs.c: In function ‘read_ahead’: tftpsubs.c:128:29: error: implicit declaration of function ‘read’; did you mean ‘fread’? [-Werror=implicit-function-declaration] 128 | i = read(fileno(file), dp->th_data + b->counter, | ^~~~ | fread tftpsubs.c: At top level: tftpsubs.c:163:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 163 | writeit(file, dpp, ct, convert) | ^~~~~~~ tftpsubs.c: In function ‘writeit’: tftpsubs.c:163:1: error: type of ‘ct’ defaults to ‘int’ [-Werror=implicit-int] tftpsubs.c:171:17: error: implicit declaration of function ‘write_behind’ [-Werror=implicit-function-declaration] 171 | write_behind(file, convert); /* flush it */ | ^~~~~~~~~~~~ tftpsubs.c: At top level: tftpsubs.c:183:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 183 | write_behind(file, convert) | ^~~~~~~~~~~~ tftpsubs.c: In function ‘write_behind’: tftpsubs.c:208:24: error: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Werror=implicit-function-declaration] 208 | return write(fileno(file), buf, count); | ^~~~~ | fwrite tftp.c:75:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 75 | parseoack(cp, sz) | ^~~~~~~~~ tftp.c:109:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 109 | sendfile(fd, name, mode, linkpass) | ^~~~~~~~ tftp.c: In function ‘sendfile’: tftp.c:125:9: error: implicit declaration of function ‘startclock’; did you mean ‘strtok’? [-Werror=implicit-function-declaration] 125 | startclock(); /* start stat's clock */ | ^~~~~~~~~~ | strtok tftp.c:134:32: error: implicit declaration of function ‘makerequest’ [-Werror=implicit-function-declaration] 134 | size = makerequest(WRQ, name, dp, mode, linkpass) - 4; | ^~~~~~~~~~~ tftp.c:137:32: error: implicit declaration of function ‘readit’; did you mean ‘read’? [-Werror=implicit-function-declaration] 137 | size = readit(file, &dp, convert); | ^~~~~~ | read tftp.c:139:33: error: implicit declaration of function ‘nak’ [-Werror=implicit-function-declaration] 139 | nak(errno + 100); | ^~~ tftp.c:149:25: error: implicit declaration of function ‘tpacket’ [-Werror=implicit-function-declaration] 149 | tpacket("sent", dp, size + 4); | ^~~~~~~ tftp.c:158:25: error: implicit declaration of function ‘read_ahead’ [-Werror=implicit-function-declaration] 158 | read_ahead(file, convert); | ^~~~~~~~~~ tftp.c:200:37: error: implicit declaration of function ‘synchnet’ [-Werror=implicit-function-declaration] 200 | j = synchnet(f); | ^~~~~~~~ tftp.c:226:9: error: implicit declaration of function ‘stopclock’ [-Werror=implicit-function-declaration] 226 | stopclock(); | ^~~~~~~~~ tftp.c:228:17: error: implicit declaration of function ‘printstats’ [-Werror=implicit-function-declaration] 228 | printstats("Sent", amount); | ^~~~~~~~~~ tftp.c: At top level: tftp.c:234:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 234 | recvfile(fd, name, mode, linkpass) | ^~~~~~~~ tftp.c: In function ‘recvfile’: main.c: In function ‘main’: tftp.c:284:25: error: implicit declaration of function ‘write_behind’ [-Werror=implicit-function-declaration] 284 | write_behind(file, convert); | ^~~~~~~~~~~~ main.c:117:5: error: type of ‘argc’ defaults to ‘int’ [-Werror=implicit-int] 117 | int main(argc, argv) | ^~~~ tftp.c:347:24: error: implicit declaration of function ‘writeit’; did you mean ‘write’? [-Werror=implicit-function-declaration] 347 | size = writeit(file, &dp, n - 4, convert); | ^~~~~~~ | write tftp.c: At top level: tftp.c:365:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 365 | makerequest(request, name, tp, mode, linkpass) | ^~~~~~~~~~~ tftp.c:407:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 407 | nak(error) | ^~~ tftp.c:434:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 434 | topts(cp, sz) | ^~~~~ main.c:149:17: error: implicit declaration of function ‘command’ [-Werror=implicit-function-declaration] 149 | command(top); | ^~~~~~~ main.c: At top level: main.c:154:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 154 | setpeer(argc, argv) | ^~~~~~~ tftp.c:457:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 457 | tpacket(s, tp, n) | ^~~~~~~ tftp.c:508:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 508 | startclock() { | ^~~~~~~~~~ tftp.c:512:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 512 | stopclock() { | ^~~~~~~~~ tftp.c:516:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 516 | printstats(direction, amount) | ^~~~~~~~~~ main.c: In function ‘setpeer’: main.c:171:39: error: implicit declaration of function ‘inet_addr’ [-Werror=implicit-function-declaration] 171 | sin.sin_addr.s_addr = inet_addr(argv[1]); | ^~~~~~~~~ main.c: At top level: main.c:204:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 204 | modecmd(argc, argv) | ^~~~~~~ main.c: In function ‘modecmd’: main.c:204:1: error: type of ‘argc’ defaults to ‘int’ [-Werror=implicit-int] main.c:219:25: error: implicit declaration of function ‘setmode’ [-Werror=implicit-function-declaration] 219 | setmode(p->m_mode); | ^~~~~~~ main.c: At top level: main.c:237:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 237 | setbinary(argc, argv) | ^~~~~~~~~ main.c: In function ‘setbinary’: main.c:237:1: error: type of ‘argc’ defaults to ‘int’ [-Werror=implicit-int] main.c: At top level: main.c:242:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 242 | setascii(argc, argv) | ^~~~~~~~ main.c: In function ‘setascii’: main.c:242:1: error: type of ‘argc’ defaults to ‘int’ [-Werror=implicit-int] main.c: At top level: main.c:247:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 247 | setmode(newmode) | ^~~~~~~ main.c:259:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 259 | put(argc, argv) | ^~~ main.c: In function ‘put’: main.c:259:1: error: type of ‘argc’ defaults to ‘int’ [-Werror=implicit-int] main.c:267:17: error: implicit declaration of function ‘putusage’ [-Werror=implicit-function-declaration] 267 | putusage(argv[0]); | ^~~~~~~~ main.c:285:30: warning: passing argument 2 of ‘sendfile’ makes integer from pointer without a cast [-Wint-conversion] 285 | sendfile(fd, cp, mode, linkpass); | ^~ | | | char * In file included from main.c:46: /usr/include/sys/sendfile.h:33:44: note: expected ‘int’ but argument is of type ‘char *’ 33 | extern ssize_t sendfile (int __out_fd, int __in_fd, off_t *__offset, | ~~~~^~~~~~~ main.c:285:34: warning: passing argument 3 of ‘sendfile’ from incompatible pointer type [-Wincompatible-pointer-types] 285 | sendfile(fd, cp, mode, linkpass); | ^~~~ | | | char * /usr/include/sys/sendfile.h:33:60: note: expected ‘off_t *’ {aka ‘long int *’} but argument is of type ‘char *’ 33 | extern ssize_t sendfile (int __out_fd, int __in_fd, off_t *__offset, | ~~~~~~~^~~~~~~~ main.c:285:40: warning: passing argument 4 of ‘sendfile’ makes integer from pointer without a cast [-Wint-conversion] 285 | sendfile(fd, cp, mode, linkpass); | ^~~~~~~~ | | | char * /usr/include/sys/sendfile.h:34:33: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘char *’ 34 | size_t __count) __THROW; | ~~~~~~~^~~~~~~ main.c: At top level: main.c:289:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 289 | putusage(s) | ^~~~~~~~ main.c:299:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 299 | get(argc, argv) | ^~~ main.c: In function ‘get’: main.c:299:1: error: type of ‘argc’ defaults to ‘int’ [-Werror=implicit-int] main.c:307:17: error: implicit declaration of function ‘getusage’; did you mean ‘putusage’? [-Werror=implicit-function-declaration] 307 | getusage(argv[0]); | ^~~~~~~~ | putusage main.c:325:17: error: implicit declaration of function ‘recvfile’ [-Werror=implicit-function-declaration] 325 | recvfile(fd, cp, mode, linkpass); | ^~~~~~~~ main.c: At top level: main.c:330:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 330 | getusage(s) | ^~~~~~~~ main.c:338:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 338 | setrexmt(argc, argv) | ^~~~~~~~ main.c: In function ‘setrexmt’: main.c:338:1: error: type of ‘argc’ defaults to ‘int’ [-Werror=implicit-int] main.c:347:17: error: implicit declaration of function ‘makeargv’ [-Werror=implicit-function-declaration] 347 | makeargv(); | ^~~~~~~~ main.c: At top level: main.c:364:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 364 | settimeout(argc, argv) | ^~~~~~~~~~ main.c: In function ‘settimeout’: main.c:364:1: error: type of ‘argc’ defaults to ‘int’ [-Werror=implicit-int] main.c: At top level: main.c:388:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 388 | status(argc, argv) | ^~~~~~ main.c: In function ‘status’: main.c:388:1: error: type of ‘argc’ defaults to ‘int’ [-Werror=implicit-int] main.c: At top level: main.c:411:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 411 | command(top) | ^~~~~~~ main.c:476:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 476 | makeargv() | ^~~~~~~~ main.c:499:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 499 | quit() | ^~~~ main.c:507:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 507 | help(argc, argv) | ^~~~ main.c: In function ‘help’: main.c:516:35: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] 516 | printf("%-*s\t%s\n", HELPINDENT, c->name, c->help); | ~~^~ | | | int main.c: At top level: main.c:533:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 533 | settrace() | ^~~~~~~~ main.c:540:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 540 | setverbose() | ^~~~~~~~~~ main.c:546:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 546 | setblocksize(argc, argv) | ^~~~~~~~~~~~ main.c: In function ‘setblocksize’: main.c:546:1: error: type of ‘argc’ defaults to ‘int’ [-Werror=implicit-int] main.c: At top level: main.c:569:1: error: return type defaults to ‘int’ [-Werror=implicit-int] 569 | banner() { | ^~~~~~ main.c: In function ‘setrexmt’: main.c:346:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 346 | fgets(&line[strlen(line)], sizeof(line) - strlen(line) - 1, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c: In function ‘settimeout’: main.c:372:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 372 | fgets(&line[strlen(line)], sizeof(line) - strlen(line) - 1, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c: In function ‘setblocksize’: main.c:554:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 554 | fgets(&line[strlen(line)], sizeof(line) - strlen(line) - 1, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make: *** [: tftpsubs.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from /usr/include/string.h:535, from tftp.c:39: In function ‘strcpy’, inlined from ‘nak’ at tftp.c:425:2: /usr/include/bits/string_fortified.h:79:10: warning: ‘__builtin___strcpy_chk’ writing 1 or more bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 79 | return __builtin___strcpy_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make: *** [: tftp.o] Error 1 cc1: some warnings being treated as errors make: *** [: main.o] Error 1 * ERROR: net-ftp/linksys-tftp-1.2.1-r3::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-ftp/linksys-tftp-1.2.1-r3::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-ftp/linksys-tftp-1.2.1-r3::gentoo'`. * The complete build log is located at '/var/log/portage/net-ftp:linksys-tftp-1.2.1-r3:20221003-081516.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-ftp/linksys-tftp-1.2.1-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-ftp/linksys-tftp-1.2.1-r3/temp/environment'. * Working directory: '/var/tmp/portage/net-ftp/linksys-tftp-1.2.1-r3/work/linksys-tftp-1.2.1' * S: '/var/tmp/portage/net-ftp/linksys-tftp-1.2.1-r3/work/linksys-tftp-1.2.1'