* 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 * 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 -j5 CC=clang clang -O2 -pipe -march=native -fno-diagnostics-color -I. -Dsin=sin_x -c -o main.o main.c clang -O2 -pipe -march=native -fno-diagnostics-color -I. -Dsin=sin_x -c -o tftp.o tftp.c clang -O2 -pipe -march=native -fno-diagnostics-color -I. -Dsin=sin_x -c -o tftpsubs.o tftpsubs.c tftpsubs.c:65:42: warning: passing arguments to 'rw_init' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct tftphdr *w_init() { return rw_init(0); } /* write-behind */ ^ tftpsubs.c:66:42: warning: passing arguments to 'rw_init' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct tftphdr *r_init() { return rw_init(1); } /* read-ahead */ ^ tftpsubs.c:69:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rw_init(x) /* init for either read-ahead or write-behind */ ^ tftpsubs.c:63:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] struct tftphdr *rw_init(); ^ tftpsubs.c:85:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] readit(file, dpp, convert) ^ int tftpsubs.c:97:3: error: call to undeclared function 'read_ahead'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] read_ahead(file, convert); /* fill it */ ^ tftpsubs.c:98:41: warning: '/*' within block comment [-Wcomment] /* assert(b->counter != BF_FREE); /* check */ ^ tftpsubs.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readit(file, dpp, convert) ^ tftpsubs.c:107:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] read_ahead(file, convert) ^ int tftpsubs.c:128:8: error: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] i = read(fileno(file), dp->th_data + b->counter, ^ tftpsubs.c:128:8: note: did you mean 'fread'? /usr/include/bits/stdio2.h:206:1: note: 'fread' declared here fread (void *__restrict __ptr, size_t __size, size_t __n, ^ tftpsubs.c:107:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] read_ahead(file, convert) ^ tftpsubs.c:163:20: error: parameter 'ct' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] writeit(file, dpp, ct, convert) ^ tftpsubs.c:163:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] writeit(file, dpp, ct, convert) ^ int tftpsubs.c:171:3: error: call to undeclared function 'write_behind'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_behind(file, convert); /* flush it */ ^ tftpsubs.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writeit(file, dpp, ct, convert) ^ tftpsubs.c:183:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] write_behind(file, convert) ^ int tftpsubs.c:208:10: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return write(fileno(file), buf, count); ^ tftpsubs.c:208:10: note: did you mean 'fwrite'? /usr/include/stdio.h:739:15: note: 'fwrite' declared here extern size_t fwrite (const void *__restrict __ptr, size_t __size, ^ tftpsubs.c:183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_behind(file, convert) ^ tftpsubs.c:256:31: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] (struct sockaddr *)&from, &fromlen); ^~~~~~~~ /usr/include/bits/socket2.h:62:49: note: passing argument to parameter '__addr_len' here __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) ^ tftpsubs.c:242:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] synchnet(f) ^ 11 warnings and 9 errors generated. tftp.c:75:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] parseoack(cp, sz) ^ int tftp.c:75:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tftp.c:109:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] sendfile(fd, name, mode, linkpass) ^ int tftp.c:125:2: error: call to undeclared function 'startclock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] startclock(); /* start stat's clock */ ^ tftp.c:134:11: error: call to undeclared function 'makerequest'; ISOmain.c :C99 114and: 7 :later warning: doa notfunction supportdeclaration implicitwithout functiona declarationsprototype is[-Wimplicit-function-declaration] deprecated in all versions size = makerequest(WRQ, name, dp, mode, linkpass) - 4;of ^C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *index(); ^ main.c:115:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *rindex(); ^ main.c:117:10: error: parameter 'argc' was not declared, defaults to 'int'; ISO C99 and later do not support implicit inttftp.c :[-Wimplicit-int]137 :11:int main(argc, argv) error: ^call to undeclared function 'readit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] size = readit(file, &dp, convert); ^ tftp.c:137:11: note: did you mean 'read'? /usr/include/bits/unistd.h:26:1: note: 'read' declared here read (int __fd, void *__buf, size_t __nbytes) ^ main.c:144:10: warning: passing arguments to 'setpeer' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setpeer(argc, argv); ^ tftp.c:139:5: error: call to undeclared function 'nak'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nak(errno + 100); ^ tftp.c:149:4: error: call to undeclared function 'tpacket'; ISO C99 and later do not supportmain.c:149:3: error: call implicitto undeclared functionfunction 'command'; ISO C99 and later declarationsdo not support implicit function declarations [-Wimplicit-function-declaration] [-Wimplicit-function-declaration] command(top); ^ tpacket("sent", dp, size + 4); ^ main.c:117:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc, argv) ^ main.c:154:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setpeer(argc, argv) ^ int tftp.c:158:4: error: call to undeclared function 'read_ahead'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] read_ahead(file, convert); ^ tftp.c:main.c:171:25: error: call to undeclared function 'inet_addr'; ISO C99 and later do165 not support: implicit function11 declarations :[-Wimplicit-function-declaration] sin.sin_addr.s_addr = inet_addr(argv[1]); ^ warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointersmain.c:154:1: warning: to integer a functiontypes with definition without a prototype different sign is [-Wpointer-sign] deprecated &fromlen); ^~~~~~~~ in /usr/include/bits/socket2.h:62:all versions of C and is not supported in C2x49: [-Wdeprecated-non-prototype] setpeer(argc, argv) note: passing ^ main.cargument to :parameter '__addr_len' here68:23: warning: a function declaration without __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) ^ a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int get(), put(), setpeer(), modecmd(), setrexmt(), settimeout(); ^ main.c:204:9: error: parameter 'argc' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] modecmd(argc, argv) ^ main.ctftp.c:200:9:204:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] modecmd(argc, argv) ^ int: error: call to undeclared function 'synchnet'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] j = synchnet(f); ^ tftp.c:214:15: warning: incompatible pointer types passing 'char (*)[0]' to parameter of type 'char *' [-Wincompatible-pointer-types] parseoack(&ap->th_stuff, n - 2); ^~~~~~~~~~~~~ tftp.c:226:2: error: call to undeclared function 'stopclock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] stopclock(); ^ main.c:219:4: error: call to undeclared function 'setmode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] setmode(p->m_mode); ^ main.c:204:1: warning: a function definition tftp.cwithout: 228a: 3prototype: iserror: calldeprecated to inundeclared allfunction versions'printstats'; ofISO CC99 andand islater not dosupported notin supportC2x implicit [-Wdeprecated-non-prototype]function declarations [-Wimplicit-function-declaration] modecmd(argc, argv) ^ main.c: printstats("Sent", amount);68 : ^34 : warning: a function declaration without a prototype is deprecated in all versions of C and istftp.c :treated109 :as1 :a warning: zero-parametera prototypefunction indefinition C2x,without aconflicting prototypewith isa deprecatedsubsequent definitionin [-Wdeprecated-non-prototype]all versions of C and is not supported in int get(), put(), setpeer(), modecmd(), setrexmt(), settimeout();C2x ^ [-Wdeprecated-non-prototype] sendfile(fd, name, mode, linkpass) ^ main.c:237:11: error: parameter 'argc' was tftp.c:234:not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setbinary(argc, argv) ^ main.c:237:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setbinary(argc, argv) ^ int main.c:239:9: error: call to undeclared function 'setmode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] { setmode("octet");1: ^ main.c:237:1: warning: a function definitionerror: type specifier without a prototype is deprecated in all versions missing, defaults of to 'int'; ISOC C99 and and later do not support isimplicit not supported in int [-Wimplicit-int] C2x [-Wdeprecated-non-prototype] setbinary(argc, argv) ^ main.crecvfile(fd, name, mode, linkpass) ^ int:69:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int setbinary(), banner(), setascii(), setblocksize(); ^ main.c:242:10: error: parameter 'argc' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setascii(argc, argv) ^ main.c:242:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setascii(argc, argv) ^ int main.c tftp.c:251:2: error: call to undeclared function 'startclock'; ISO C99 and later do not support implicit function:244:9: declarations [-Wimplicit-function-declaration] error: call to undeclared function 'setmode'; ISO C99 and startclock(); ^ tftp.c:264:11: error: call to undeclared function later 'makerequest'; ISO do C99 and laternot support implicit do not support function implicitdeclarations [-Wimplicit-function-declaration] function{ setmode("netascii"); ^ declarations [-Wimplicit-function-declaration] main.c:242:1: size = makerequest(RRQ, name, ap, mode, linkpass); ^ warning: a function definition without a prototype is deprecated tftp.c:276:4: in error: call to undeclared function 'tpacket';all ISO C99 and later do notversions of support implicit Cfunction declarations and is [-Wimplicit-function-declaration] not tpacket("sent", ap, size); ^ supported in C2x [-Wdeprecated-non-prototype] setascii(argc, argv) ^ main.c:69:32: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int setbinary(), banner(), setascii(), setblocksize(); ^ main.ctftp.c:284:4: error: call to undeclared function 'write_behind'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] :247:1: error: type write_behind(file, convert); ^ tftp.cspecifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setmode(newmode) ^ :290:35: warning: passingint 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') make: *** [: tftpsubs.o] Error 1 make: *** Waiting for unfinished jobs.... converts between pointers to integer types with different sign [-Wpointer-sign] (struct sockaddr *)&from, &fromlen); ^~~~~~~~ /usr/include/bits/socket2.h:62:49: note: passing argument to parameter '__addr_len' main.c:247:here __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) ^ 1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x tftp.c:325:9: error: call to undeclared function 'synchnet'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] j = synchnet(f); ^ [-Wdeprecated-non-prototype] main.c:259:5tftp.c:339:: 15: warning: incompatible pointer typeserror: parameter passing 'char (*)[0]''argc' was to not declared, defaults toparameter of type 'char *' 'int';[-Wincompatible-pointer-types] ISO C99 and later do not support implicit int [-Wimplicit-int] put(argc, argv) ^ parseoack(&dp->th_stuff, n - 2); ^~~~~~~~~~~~~ main.c:259:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] put(argc, argv) ^ int tftp.c:347:10: error: call to undeclared function 'writeit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] size = writeit(file, &dp, n - 4, convert); ^ tftp.c:347:10: note: did you mean 'write'? /usr/include/unistd.h:378:16: note: 'write' declared here extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur ^ tftp.c:349:4: error: call to undeclared function 'nak'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nak(errno + 100); ^ main.c:267:3: error: call to undeclared function 'putusage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] putusage(argv[0]);fatal error: too ^ many errors emitted, stopping now [-ferror-limit=] main.c:285:16: error: incompatible pointer to integer conversion passing 'char *' to parameter of type 'int' [-Wint-conversion] sendfile(fd, cp, mode, linkpass); ^~ /usr/include/sys/sendfile.h:33:44: note: passing argument to parameter '__in_fd' here extern ssize_t sendfile (int __out_fd, int __in_fd, off_t *__offset, ^ main.c:285:20: warning: incompatible pointer types passing 'char[32]' to parameter of type 'off_t *' (aka 'long *') [-Wincompatible-pointer-types] sendfile(fd, cp, mode, linkpass); ^~~~ /usr/include/sys/sendfile.h:33:60: note: passing argument to parameter '__offset' here extern ssize_t sendfile (int __out_fd, int __in_fd, off_t *__offset, ^ main.c:285:26: error: incompatible pointer to integer conversion passing 'char *' to parameter of type 'size_t' (aka 'unsigned long') [-Wint-conversion] sendfile(fd, cp, mode, linkpass); ^~~~~~~~ /usr/include/sys/sendfile.h:34:12: note: passing argument to parameter '__count' here size_t __count) __THROW; ^ main.c:259:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] put(argc, argv) ^ main.c:68:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int get(), put(), setpeer(), modecmd(), setrexmt(), settimeout(); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 6 warnings and 20 errors generated. 16 warnings and 20 errors generated. make: *** [: tftp.o] Error 1 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:20230903-160205.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'