* Package: net-misc/uftp-4.9.4 * Repository: gentoo * Maintainer: azamat.hackimov@gmail.com proxy-maint@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux server ssl userland_GNU * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking uftp-4.9.4.tar.gz to /var/tmp/portage/net-misc/uftp-4.9.4/work >>> Source unpacked in /var/tmp/portage/net-misc/uftp-4.9.4/work >>> Preparing source in /var/tmp/portage/net-misc/uftp-4.9.4/work/uftp-4.9.4 ... * Applying uftp-4.9.4_makefile.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-misc/uftp-4.9.4/work/uftp-4.9.4 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-misc/uftp-4.9.4/work/uftp-4.9.4 ... make -j1 CC=x86_64-pc-linux-gnu-gcc uftp uftp_keymgt x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c uftp_common.c uftp_common.c: In function ‘multicast_join’: uftp_common.c:1636:17: warning: ‘level’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (setsockopt(s, level, MCAST_JOIN_GROUP, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (char *)&greq, sizeof(greq)) == -1) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uftp_common.c: In function ‘multicast_leave’: uftp_common.c:1700:21: warning: ‘level’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (setsockopt(s, level, MCAST_LEAVE_SOURCE_GROUP, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (char *)&gsreq, sizeof(gsreq)) == -1) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c encrypt_openssl.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c server_announce.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c server_transfer.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c server_send.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c server_phase.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c server_common.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c server_config.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c server_init.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c server_main.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -o uftp uftp_common.o encrypt_openssl.o server_announce.o server_transfer.o server_send.o server_phase.o server_common.o server_config.o server_init.o server_main.o -lm -lcrypto -lpthread x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c uftp_keymgt.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -o uftp_keymgt uftp_keymgt.o uftp_common.o encrypt_openssl.o -lm -lcrypto make -j1 CC=x86_64-pc-linux-gnu-gcc uftpd uftpproxyd x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c client_loop.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c client_announce.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c client_fileinfo.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c client_transfer.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c client_common.c client_common.c: In function ‘file_cleanup’: client_common.c:452:68: warning: ‘%s’ directive output may be truncated writing up to 299 bytes into a region of size 283 [-Wformat-truncation=] snprintf(filepath, sizeof(filepath), "%s%c_group_%08X%c%s", tempdir, ^~ In file included from /usr/include/stdio.h:862:0, from uftp_common.h:34, from client.h:34, from client_common.c:61: /usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output 18 or more bytes (assuming 317) into a destination of size 300 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c client_config.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c client_init.c client_init.c: In function ‘daemonize’: client_init.c:219:9: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] chdir("/"); ^~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c client_main.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c heartbeat_send.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -o uftpd uftp_common.o encrypt_openssl.o client_loop.o client_announce.o client_fileinfo.o client_transfer.o client_common.o client_config.o client_init.o client_main.o heartbeat_send.o -lm -lcrypto x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c proxy_loop.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c proxy_upstream.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c proxy_downstream.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c proxy_common.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c proxy_config.c x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c proxy_init.c proxy_init.c: In function ‘daemonize’: proxy_init.c:209:9: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] chdir("/"); ^~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c proxy_main.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -o uftpproxyd uftp_common.o encrypt_openssl.o proxy_loop.o proxy_upstream.o proxy_downstream.o proxy_common.o proxy_config.o proxy_init.o proxy_main.o heartbeat_send.o -lm -lcrypto >>> Source compiled. >>> Test phase: net-misc/uftp-4.9.4 make -j1 test cc -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2 -Wwrite-strings -Wpointer-arith -Wcast-qual -Wshadow -Wno-missing-field-initializers -Wstrict-prototypes -Winline -Wbad-function-cast -DHAS_GETIFADDRS -O2 -pipe -march=native -Wall `getconf LFS_CFLAGS` -c testclient_multi.c testclient_multi.c: In function ‘send_register’: testclient_multi.c:74:15: error: ‘struct uftp_h’ has no member named ‘uftp_id’ header->uftp_id = UFTP_VER_NUM; ^~ testclient_multi.c:76:17: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? header->blsize = htons(sizeof(struct register_h) + ^~~~~~ gsize testclient_multi.c:79:17: error: ‘struct uftp_h’ has no member named ‘srcaddr’; did you mean ‘src_id’? header->srcaddr = destlist[i].addr.s_addr; ^~~~~~~ src_id testclient_multi.c:80:15: error: ‘struct uftp_h’ has no member named ‘destaddr’ header->destaddr = sin.sin_addr.s_addr; ^~ testclient_multi.c:82:12: error: ‘struct register_h’ has no member named ‘destcount’ reg->destcount = 0; ^~ testclient_multi.c:86:12: error: ‘struct register_h’ has no member named ‘premaster_len’ reg->premaster_len = htons(destlist[i].premaster_enc_len); ^~ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:279, from testclient_multi.c:2: testclient_multi.c:87:69: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? if (sendto(sock, buf, sizeof(struct uftp_h) + ntohs(header->blsize), ^ In file included from testclient_multi.c:24:0: uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:89:13: note: in expansion of macro ‘sockerror’ sockerror(0,0,"sendto failed for REGISTER"); ^~~~~~~~~ testclient_multi.c:89:27: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"sendto failed for REGISTER"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ testclient_multi.c: In function ‘handle_announce’: testclient_multi.c:133:26: error: ‘struct announce_h’ has no member named ‘rand1’ memcpy(rand1,announce->rand1,sizeof(announce->rand1)); ^~ testclient_multi.c:133:49: error: ‘struct announce_h’ has no member named ‘rand1’ memcpy(rand1,announce->rand1,sizeof(announce->rand1)); ^~ In file included from testclient_multi.c:16:0: testclient_multi.c:134:28: error: ‘struct announce_h’ has no member named ‘keyexp’ keyexp = ntohl(announce->keyexp); ^ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:279, from testclient_multi.c:2: testclient_multi.c:135:30: error: ‘struct announce_h’ has no member named ‘keylen’; did you mean ‘hlen’? modlen = ntohs(announce->keylen); ^ testclient_multi.c:136:34: warning: passing argument 2 of ‘import_RSA_key’ makes pointer from integer without a cast [-Wint-conversion] if (!import_RSA_key(&rsakey, keyexp, keymod, modlen)) { ^~~~~~ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:171:5: note: expected ‘const unsigned char *’ but argument is of type ‘uint32_t {aka unsigned int}’ int import_RSA_key(RSA_key_t *rsa, const unsigned char *keyblob, ^~~~~~~~~~~~~~ testclient_multi.c:136:42: warning: passing argument 3 of ‘import_RSA_key’ makes integer from pointer without a cast [-Wint-conversion] if (!import_RSA_key(&rsakey, keyexp, keymod, modlen)) { ^~~~~~ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:171:5: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘unsigned char *’ int import_RSA_key(RSA_key_t *rsa, const unsigned char *keyblob, ^~~~~~~~~~~~~~ testclient_multi.c:136:10: error: too many arguments to function ‘import_RSA_key’ if (!import_RSA_key(&rsakey, keyexp, keymod, modlen)) { ^~~~~~~~~~~~~~ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:171:5: note: declared here int import_RSA_key(RSA_key_t *rsa, const unsigned char *keyblob, ^~~~~~~~~~~~~~ testclient_multi.c:141:25: error: ‘struct announce_h’ has no member named ‘keytype’; did you mean ‘cc_type’? keytype = announce->keytype; ^~~~~~~ cc_type testclient_multi.c:142:26: error: ‘struct announce_h’ has no member named ‘hashtype’; did you mean ‘cc_type’? hashtype = announce->hashtype; ^~~~~~~~ cc_type In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:279, from testclient_multi.c:2: testclient_multi.c:145:33: error: ‘struct announce_h’ has no member named ‘mtu’ payloadsize = ntohs(announce->mtu) - 28 - sizeof(struct uftp_h); ^ testclient_multi.c:151:40: error: ‘struct announce_h’ has no member named ‘privatemcast’ multi.imr_multiaddr.s_addr=announce->privatemcast; ^~ testclient_multi.c:167:26: error: ‘struct announce_h’ has no member named ‘privatemcast’ &announce->privatemcast, ^~ testclient_multi.c:168:32: error: ‘struct announce_h’ has no member named ‘privatemcast’ sizeof(announce->privatemcast)); ^~ testclient_multi.c:169:49: error: ‘struct announce_h’ has no member named ‘privatemcast’ destlist[i].verifylen += sizeof(announce->privatemcast); ^~ testclient_multi.c:181:17: warning: pointer targets in passing argument 5 of ‘RSA_encrypt’ differ in signedness [-Wpointer-sign] &destlist[i].premaster_enc_len)) { ^ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:146:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int RSA_encrypt(RSA_key_t rsa, const unsigned char *from, unsigned int fromlen, ^~~~~~~~~~~ testclient_multi.c: In function ‘send_infoack’: testclient_multi.c:212:12: error: dereferencing pointer to incomplete type ‘struct infoack_h’ infoack->func = INFO_ACK; ^~ testclient_multi.c:212:21: error: ‘INFO_ACK’ undeclared (first use in this function); did you mean ‘KEYINFO_ACK’? infoack->func = INFO_ACK; ^~~~~~~~ KEYINFO_ACK testclient_multi.c:212:21: note: each undeclared identifier is reported only once for each function it appears in testclient_multi.c:230:5: error: too many arguments to function ‘build_iv’ build_iv(iv, groupiv, ivlen, htonl(groupid), ^~~~~~~~ In file included from testclient_multi.c:24:0: uftp_common.h:197:6: note: declared here void build_iv(uint8_t *iv, const uint8_t *salt, int ivlen, uint64_t ivctr, ^~~~~~~~ testclient_multi.c:233:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct infoack_h’ sizeof(struct infoack_h), enc_payload, &len)) { ^~~~~~ testclient_multi.c:233:52: warning: passing argument 7 of ‘encrypt_block’ makes integer from pointer without a cast [-Wint-conversion] sizeof(struct infoack_h), enc_payload, &len)) { ^ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:121:5: note: expected ‘unsigned int’ but argument is of type ‘unsigned int *’ int encrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c:232:10: error: too few arguments to function ‘encrypt_block’ if (!encrypt_block(keytype, iv, groupkey, data, ^~~~~~~~~~~~~ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:121:5: note: declared here int encrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c:238:11: error: ‘struct uftp_h’ has no member named ‘uftp_id’ header->uftp_id = UFTP_VER_NUM; ^~ testclient_multi.c:240:13: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? header->blsize = htons(sizeof(struct encrypted_h) + hashlen + len); ^~~~~~ gsize testclient_multi.c:242:13: error: ‘struct uftp_h’ has no member named ‘srcaddr’; did you mean ‘src_id’? header->srcaddr = destlist[dest].addr.s_addr; ^~~~~~~ src_id testclient_multi.c:243:11: error: ‘struct uftp_h’ has no member named ‘destaddr’ header->destaddr = sin.sin_addr.s_addr; ^~ testclient_multi.c:244:14: error: ‘struct encrypted_h’ has no member named ‘tstamp_sec’ encrypted->tstamp_sec = htonl(tv.tv_sec); ^~ testclient_multi.c:245:14: error: ‘struct encrypted_h’ has no member named ‘tstamp_usec’ encrypted->tstamp_usec = htonl(tv.tv_usec); ^~ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:279, from testclient_multi.c:2: testclient_multi.c:250:51: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? sizeof(struct uftp_h) + ntohs(header->blsize), hmac, &len); ^ testclient_multi.c:257:65: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? if (sendto(sock, buf, sizeof(struct uftp_h) + ntohs(header->blsize), ^ In file included from testclient_multi.c:24:0: uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:259:9: note: in expansion of macro ‘sockerror’ sockerror(0,0,"sendto failed for INFO_ACK"); ^~~~~~~~~ testclient_multi.c:259:23: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"sendto failed for INFO_ACK"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ testclient_multi.c: In function ‘handle_keyinfo’: testclient_multi.c:279:23: error: ‘struct keyinfo_h’ has no member named ‘destcount’ for (j=0;jdestcount;j++) { ^~ testclient_multi.c:281:25: error: ‘struct destkey’ has no member named ‘destaddr’; did you mean ‘dest_id’? if (dkey[j].destaddr==destlist[i].addr.s_addr) { ^~~~~~~~ dest_id testclient_multi.c:294:69: error: ‘struct uftp_h’ has no member named ‘srcaddr’; did you mean ‘src_id’? build_iv(iv, destlist[i].iv, ivlen, htonl(groupid), header->srcaddr, ^~~~~~~ src_id testclient_multi.c:295:25: error: ‘struct keyinfo_h’ has no member named ‘tstamp_sec’ keyinfo->tstamp_sec, keyinfo->tstamp_usec); ^~ testclient_multi.c:295:46: error: ‘struct keyinfo_h’ has no member named ‘tstamp_usec’ keyinfo->tstamp_sec, keyinfo->tstamp_usec); ^~ testclient_multi.c:294:9: error: too many arguments to function ‘build_iv’ build_iv(iv, destlist[i].iv, ivlen, htonl(groupid), header->srcaddr, ^~~~~~~~ In file included from testclient_multi.c:24:0: uftp_common.h:197:6: note: declared here void build_iv(uint8_t *iv, const uint8_t *salt, int ivlen, uint64_t ivctr, ^~~~~~~~ testclient_multi.c:297:24: error: ‘struct keyinfo_h’ has no member named ‘groupmaster_len’ keyinfo->groupmaster_len, dec_groupmaster, &len)) { ^~ testclient_multi.c:297:60: warning: passing argument 7 of ‘decrypt_block’ makes integer from pointer without a cast [-Wint-conversion] keyinfo->groupmaster_len, dec_groupmaster, &len)) { ^ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:127:5: note: expected ‘unsigned int’ but argument is of type ‘unsigned int *’ int decrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c:296:14: error: too few arguments to function ‘decrypt_block’ if (!decrypt_block(keytype, iv, destlist[i].key, dkey[j].groupmaster, ^~~~~~~~~~~~~ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:127:5: note: declared here int decrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c:302:34: error: ‘struct uftp_h’ has no member named ‘uftp_id’ groupmaster[0]=header->uftp_id; ^~ In file included from testclient_multi.c:16:0: testclient_multi.c: In function ‘handle_fileinfo’: testclient_multi.c:352:33: error: ‘struct fileinfo_h’ has no member named ‘block_total’ block_count = ntohl(fileinfo->block_total); ^ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:279, from testclient_multi.c:2: testclient_multi.c:353:35: error: ‘struct fileinfo_h’ has no member named ‘section_total’ section_count = ntohs(fileinfo->section_total); ^ testclient_multi.c:355:30: error: ‘struct fileinfo_h’ has no member named ‘destcount’ for (j=0;jdestcount);j++) { ^ testclient_multi.c: At top level: testclient_multi.c:376:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void announce_phase() ^~~~~~~~~~~~~~ In file included from testclient_multi.c:24:0: testclient_multi.c: In function ‘announce_phase’: uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:418:13: note: in expansion of macro ‘sockerror’ sockerror(0,0,"Error receiving"); ^~~~~~~~~ testclient_multi.c:418:27: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"Error receiving"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ testclient_multi.c:421:19: error: ‘struct uftp_h’ has no member named ‘uftp_id’ if (header->uftp_id!=UFTP_VER_NUM) { ^~ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:279, from testclient_multi.c:2: testclient_multi.c:425:58: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? if (recv_lenblsize)) { ^ testclient_multi.c:457:66: error: ‘struct uftp_h’ has no member named ‘srcaddr’; did you mean ‘src_id’? build_iv(iv, groupiv, ivlen, htonl(groupid), header->srcaddr, ^~~~~~~ src_id testclient_multi.c:458:31: error: ‘struct encrypted_h’ has no member named ‘tstamp_sec’ encrypted->tstamp_sec, encrypted->tstamp_usec); ^~ testclient_multi.c:458:54: error: ‘struct encrypted_h’ has no member named ‘tstamp_usec’ encrypted->tstamp_sec, encrypted->tstamp_usec); ^~ testclient_multi.c:457:13: error: too many arguments to function ‘build_iv’ build_iv(iv, groupiv, ivlen, htonl(groupid), header->srcaddr, ^~~~~~~~ In file included from testclient_multi.c:24:0: uftp_common.h:197:6: note: declared here void build_iv(uint8_t *iv, const uint8_t *salt, int ivlen, uint64_t ivctr, ^~~~~~~~ testclient_multi.c:460:58: warning: passing argument 7 of ‘decrypt_block’ makes integer from pointer without a cast [-Wint-conversion] ntohs(encrypted->payload_len), data, &len)) { ^ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:127:5: note: expected ‘unsigned int’ but argument is of type ‘unsigned int *’ int decrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c:459:18: error: too few arguments to function ‘decrypt_block’ if (!decrypt_block(keytype, iv, groupkey, enc_payload, ^~~~~~~~~~~~~ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:127:5: note: declared here int decrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c: In function ‘send_status’: testclient_multi.c:519:11: error: ‘struct status_h’ has no member named ‘pass’ status->pass = pass; ^~ testclient_multi.c:521:11: error: ‘struct status_h’ has no member named ‘nak_count’ status->nak_count = ntohl(nak_count); ^~ testclient_multi.c:529:5: error: too many arguments to function ‘build_iv’ build_iv(iv, groupiv, ivlen, htonl(groupid), ^~~~~~~~ In file included from testclient_multi.c:24:0: uftp_common.h:197:6: note: declared here void build_iv(uint8_t *iv, const uint8_t *salt, int ivlen, uint64_t ivctr, ^~~~~~~~ testclient_multi.c:531:72: warning: passing argument 7 of ‘encrypt_block’ makes integer from pointer without a cast [-Wint-conversion] if (!encrypt_block(keytype, iv, groupkey, data, dlen, enc_payload, &len)) { ^ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:121:5: note: expected ‘unsigned int’ but argument is of type ‘unsigned int *’ int encrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c:531:10: error: too few arguments to function ‘encrypt_block’ if (!encrypt_block(keytype, iv, groupkey, data, dlen, enc_payload, &len)) { ^~~~~~~~~~~~~ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:121:5: note: declared here int encrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c:536:11: error: ‘struct uftp_h’ has no member named ‘uftp_id’ header->uftp_id = UFTP_VER_NUM; ^~ testclient_multi.c:538:13: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? header->blsize = htons(sizeof(struct encrypted_h) + hashlen + len); ^~~~~~ gsize testclient_multi.c:540:13: error: ‘struct uftp_h’ has no member named ‘srcaddr’; did you mean ‘src_id’? header->srcaddr = destlist[dest].addr.s_addr; ^~~~~~~ src_id testclient_multi.c:541:11: error: ‘struct uftp_h’ has no member named ‘destaddr’ header->destaddr = sin.sin_addr.s_addr; ^~ testclient_multi.c:542:14: error: ‘struct encrypted_h’ has no member named ‘tstamp_sec’ encrypted->tstamp_sec = htonl(tv.tv_sec); ^~ testclient_multi.c:543:14: error: ‘struct encrypted_h’ has no member named ‘tstamp_usec’ encrypted->tstamp_usec = htonl(tv.tv_usec); ^~ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:279, from testclient_multi.c:2: testclient_multi.c:548:51: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? sizeof(struct uftp_h) + ntohs(header->blsize), hmac, &len); ^ testclient_multi.c:555:65: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? if (sendto(sock, buf, sizeof(struct uftp_h) + ntohs(header->blsize), ^ In file included from testclient_multi.c:24:0: uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:557:9: note: in expansion of macro ‘sockerror’ sockerror(0,0,"sendto failed for STATUS"); ^~~~~~~~~ testclient_multi.c:557:23: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"sendto failed for STATUS"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ testclient_multi.c: In function ‘send_complete’: testclient_multi.c:585:5: error: too many arguments to function ‘build_iv’ build_iv(iv, groupiv, ivlen, htonl(groupid), ^~~~~~~~ In file included from testclient_multi.c:24:0: uftp_common.h:197:6: note: declared here void build_iv(uint8_t *iv, const uint8_t *salt, int ivlen, uint64_t ivctr, ^~~~~~~~ testclient_multi.c:588:53: warning: passing argument 7 of ‘encrypt_block’ makes integer from pointer without a cast [-Wint-conversion] sizeof(struct complete_h), enc_payload, &len)) { ^ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:121:5: note: expected ‘unsigned int’ but argument is of type ‘unsigned int *’ int encrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c:587:10: error: too few arguments to function ‘encrypt_block’ if (!encrypt_block(keytype, iv, groupkey, data, ^~~~~~~~~~~~~ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:121:5: note: declared here int encrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c:593:11: error: ‘struct uftp_h’ has no member named ‘uftp_id’ header->uftp_id = UFTP_VER_NUM; ^~ testclient_multi.c:595:13: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? header->blsize = htons(sizeof(struct encrypted_h) + hashlen + len); ^~~~~~ gsize testclient_multi.c:597:13: error: ‘struct uftp_h’ has no member named ‘srcaddr’; did you mean ‘src_id’? header->srcaddr = destlist[dest].addr.s_addr; ^~~~~~~ src_id testclient_multi.c:598:11: error: ‘struct uftp_h’ has no member named ‘destaddr’ header->destaddr = sin.sin_addr.s_addr; ^~ testclient_multi.c:599:14: error: ‘struct encrypted_h’ has no member named ‘tstamp_sec’ encrypted->tstamp_sec = htonl(tv.tv_sec); ^~ testclient_multi.c:600:14: error: ‘struct encrypted_h’ has no member named ‘tstamp_usec’ encrypted->tstamp_usec = htonl(tv.tv_usec); ^~ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:279, from testclient_multi.c:2: testclient_multi.c:605:51: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? sizeof(struct uftp_h) + ntohs(header->blsize), hmac, &len); ^ testclient_multi.c:612:65: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? if (sendto(sock, buf, sizeof(struct uftp_h) + ntohs(header->blsize), ^ In file included from testclient_multi.c:24:0: uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:614:9: note: in expansion of macro ‘sockerror’ sockerror(0,0,"sendto failed for COMPLETE"); ^~~~~~~~~ testclient_multi.c:614:23: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"sendto failed for COMPLETE"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ testclient_multi.c: At top level: testclient_multi.c:619:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void recv_data() ^~~~~~~~~ In file included from testclient_multi.c:24:0: testclient_multi.c: In function ‘recv_data’: uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:662:13: note: in expansion of macro ‘sockerror’ sockerror(0,0,"Error receiving message"); ^~~~~~~~~ testclient_multi.c:662:27: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"Error receiving message"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ testclient_multi.c:665:19: error: ‘struct uftp_h’ has no member named ‘uftp_id’ if (header->uftp_id!=UFTP_VER_NUM) { ^~ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:279, from testclient_multi.c:2: testclient_multi.c:669:59: error: ‘struct uftp_h’ has no member named ‘blsize’; did you mean ‘gsize’? if (recv_len!=sizeof(struct uftp_h)+htons(header->blsize)) { ^ testclient_multi.c:694:62: error: ‘struct uftp_h’ has no member named ‘srcaddr’; did you mean ‘src_id’? build_iv(iv, groupiv, ivlen, htonl(groupid), header->srcaddr, ^~~~~~~ src_id testclient_multi.c:695:27: error: ‘struct encrypted_h’ has no member named ‘tstamp_sec’ encrypted->tstamp_sec, encrypted->tstamp_usec); ^~ testclient_multi.c:695:50: error: ‘struct encrypted_h’ has no member named ‘tstamp_usec’ encrypted->tstamp_sec, encrypted->tstamp_usec); ^~ testclient_multi.c:694:9: error: too many arguments to function ‘build_iv’ build_iv(iv, groupiv, ivlen, htonl(groupid), header->srcaddr, ^~~~~~~~ In file included from testclient_multi.c:24:0: uftp_common.h:197:6: note: declared here void build_iv(uint8_t *iv, const uint8_t *salt, int ivlen, uint64_t ivctr, ^~~~~~~~ testclient_multi.c:697:54: warning: passing argument 7 of ‘decrypt_block’ makes integer from pointer without a cast [-Wint-conversion] ntohs(encrypted->payload_len), data, &decodelen)) { ^ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:127:5: note: expected ‘unsigned int’ but argument is of type ‘unsigned int *’ int decrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ testclient_multi.c:696:14: error: too few arguments to function ‘decrypt_block’ if (!decrypt_block(keytype, iv, groupkey, enc_payload, ^~~~~~~~~~~~~ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:127:5: note: declared here int decrypt_block(int keytype, const unsigned char *IV, ^~~~~~~~~~~~~ In file included from testclient_multi.c:16:0: testclient_multi.c:703:36: error: ‘struct fileseg_h’ has no member named ‘seq_num’ int seq = ntohl(fileseg->seq_num); ^ testclient_multi.c:711:24: error: ‘struct done_h’ has no member named ‘pass’ pass = done->pass; ^~ testclient_multi.c:729:21: warning: implicit declaration of function ‘log’ [-Wimplicit-function-declaration] log(0, 0, "NAK for %d", nakidx); ^~~ testclient_multi.c:729:21: warning: incompatible implicit declaration of built-in function ‘log’ testclient_multi.c:729:21: note: include ‘’ or provide a declaration of ‘log’ testclient_multi.c:729:21: error: too many arguments to function ‘log’ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:279, from testclient_multi.c:2: testclient_multi.c:735:34: error: ‘struct done_h’ has no member named ‘destcount’ for (j=0;jdestcount);j++) { ^ testclient_multi.c:629:22: warning: variable ‘cnt’ set but not used [-Wunused-but-set-variable] int i, j, found, cnt, addr_len, recv_len; ^~~ testclient_multi.c:628:20: warning: variable ‘decdata’ set but not used [-Wunused-but-set-variable] unsigned char *decdata, iv[MAXIV], naklist[BLOCKSIZE]; ^~~~~~~ testclient_multi.c:626:24: warning: variable ‘doneconf’ set but not used [-Wunused-but-set-variable] struct doneconf_h *doneconf; ^~~~~~~~ In file included from testclient_multi.c:24:0: testclient_multi.c: In function ‘main’: uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:797:9: note: in expansion of macro ‘sockerror’ sockerror(0,0,"Error creating socket"); ^~~~~~~~~ testclient_multi.c:797:23: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"Error creating socket"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:803:9: note: in expansion of macro ‘sockerror’ sockerror(0,0,"Error setting receive buffer size"); ^~~~~~~~~ testclient_multi.c:803:23: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"Error setting receive buffer size"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:809:9: note: in expansion of macro ‘sockerror’ sockerror(0,0,"Error setting send buffer size"); ^~~~~~~~~ testclient_multi.c:809:23: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"Error setting send buffer size"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:814:9: note: in expansion of macro ‘sockerror’ sockerror(0,0,"Error binding socket"); ^~~~~~~~~ testclient_multi.c:814:23: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"Error binding socket"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ uftp_common.h:151:80: error: expected expression before ‘)’ token logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^ testclient_multi.c:822:9: note: in expansion of macro ‘sockerror’ sockerror(0,0,"Error joining multicast group"); ^~~~~~~~~ testclient_multi.c:822:23: warning: passing argument 3 of ‘logfunc’ makes integer from pointer without a cast [-Wint-conversion] sockerror(0,0,"Error joining multicast group"); ^ uftp_common.h:151:34: note: in definition of macro ‘sockerror’ logfunc(group_id,group_inst, file_id, 0, showtime, 1, errno, 1, __VA_ARGS__) ^~~~~~~ uftp_common.h:64:6: note: expected ‘uint16_t {aka short unsigned int}’ but argument is of type ‘const char *’ void logfunc(uint32_t group_id, uint8_t group_inst, uint16_t file_id, ^~~~~~~ testclient_multi.c:832:5: error: too few arguments to function ‘crypto_init’ crypto_init(); ^~~~~~~~~~~ In file included from uftp_common.h:49:0, from testclient_multi.c:24: encryption.h:107:6: note: declared here void crypto_init(int set_sys_key); ^~~~~~~~~~~ make: *** [makefile:195: testclient_multi.o] Error 1 * ERROR: net-misc/uftp-4.9.4::gentoo failed (test phase): * Make test failed. See above for details. * * Call stack: * ebuild.sh, line 124: Called src_test * environment, line 970: Called default * phase-functions.sh, line 853: Called default_src_test * phase-functions.sh, line 882: Called __eapi0_src_test * phase-helpers.sh, line 768: Called die * The specific snippet of code: * $emake_cmd ${internal_opts} test || \ * die "Make test failed. See above for details." * * If you need support, post the output of `emerge --info '=net-misc/uftp-4.9.4::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/uftp-4.9.4::gentoo'`. * The complete build log is located at '/var/log/portage/net-misc:uftp-4.9.4:20180115-054140.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-misc/uftp-4.9.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/uftp-4.9.4/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/uftp-4.9.4/work/uftp-4.9.4' * S: '/var/tmp/portage/net-misc/uftp-4.9.4/work/uftp-4.9.4'