* Package: net-vpn/vtun-3.0.3-r2:0 * Repository: gentoo * USE: abi_x86_64 amd64 elibc_glibc kernel_linux ssl userland_GNU zlib * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Checking for suitable kernel configuration options ... [ ok ] >>> Unpacking source... >>> Unpacking vtun-3.0.3.tar.gz to /var/tmp/portage/net-vpn/vtun-3.0.3-r2/work >>> Source unpacked in /var/tmp/portage/net-vpn/vtun-3.0.3-r2/work >>> Preparing source in /var/tmp/portage/net-vpn/vtun-3.0.3-r2/work/vtun-3.0.3 ... * Applying vtun-3.0.3-includes.patch ... [ ok ] * Applying vtun-3.0.2-remove-config-presence-check.patch ... [ ok ] * Applying vtun-3.0.3-gcc5.patch ... [ ok ] * Applying vtun-libssl-1.1.patch ... [ ok ] * Applying vtun-3.0.3-fno-common.patch ... [ ok ] * Applying vtun-3.0.3-C99-inline.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-vpn/vtun-3.0.3-r2/work/vtun-3.0.3 ... * econf: updating vtun-3.0.3/config.sub with /usr/share/gnuconfig/config.sub * econf: updating vtun-3.0.3/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --enable-ssl --enable-zlib --disable-lzo --disable-socks --enable-shaper checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for bison... bison -y checking for x86_64-pc-linux-gnu-gcc... clang checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether clang accepts -g... yes checking for clang option to accept ANSI C... none needed checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for x86_64-pc-linux-gnu-gcc... (cached) clang checking whether we are using the GNU C compiler... (cached) yes checking whether clang accepts -g... (cached) yes checking for clang option to accept ANSI C... (cached) none needed checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c checking for an ANSI C-conforming const... yes checking for inline... inline checking how to run the C preprocessor... clang -E checking for egrep... grep -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking sched.h usability... yes checking sched.h presence... yes checking for sched.h... yes checking resolv.h usability... yes checking resolv.h presence... yes checking for resolv.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/ip.h usability... yes checking netinet/ip.h presence... yes checking for netinet/ip.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking libutil.h usability... no checking libutil.h presence... no checking for libutil.h... no checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking for library containing socket... none required checking for library containing inet_ntoa... none required checking for library containing gethostbyname... none required checking for library containing nanosleep... none required checking for library containing setproctitle... -lbsd configure: checking for ZLIB Library and Header files ... ... checking for deflate in -lz... yes configure: checking for md5 Library and Header files ... ... checking "for md5.h"... (/usr/include/openssl) yes configure: checking for blowfish Library and Header files ... ... checking "for blowfish.h"... (/usr/include/openssl) yes checking for BF_set_key in -lcrypto... yes configure: checking for AES Library and Header files ... ... checking "for aes.h"... (/usr/include/openssl) yes checking for AES_set_encrypt_key in -lcrypto... yes configure: checking for EVP Library and Header files ... ... checking "for evp.h"... (/usr/include/openssl) yes checking for EVP_EncryptInit in -lcrypto... yes checking for getpt... yes checking for grantpt... yes checking for unlockpt... yes checking for ptsname... yes checking linux/if_tun.h usability... yes checking linux/if_tun.h presence... yes checking for linux/if_tun.h... yes creating driver and protocol links ... linking linux/tun_dev.c to tun_dev.c linking linux/tap_dev.c to tap_dev.c linking generic/pty_dev.c to pty_dev.c linking generic/pipe_dev.c to pipe_dev.c linking generic/tcp_proto.c to tcp_proto.c linking generic/udp_proto.c to udp_proto.c configure: creating ./config.status config.status: creating Makefile config.status: creating config.h >>> Source configured. '/var/tmp/portage/net-vpn/vtun-3.0.3-r2/temp/clang14.log' -> '/var/tmp/clang/net-vpn/vtun-3.0.3-r2/clang14.log' '/var/tmp/portage/net-vpn/vtun-3.0.3-r2/temp/clang15.log' -> '/var/tmp/clang/net-vpn/vtun-3.0.3-r2/clang15.log' >>> Compiling source in /var/tmp/portage/net-vpn/vtun-3.0.3-r2/work/vtun-3.0.3 ... make -j4 clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/lib/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/lib/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lib/lock/vtund\" -c main.c bison -y -d -b cfg_file cfg_file.y clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/lib/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/lib/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lib/lock/vtund\" -c server.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -I/usr/include/openssl -DVTUN_CONFIG_FILE=\"/etc/vtund.conf\" -DVTUN_PID_FILE=\"/var/lib/run/vtund.pid\" -DVTUN_STAT_DIR=\"/var/lib/log/vtund\" -DVTUN_LOCK_DIR=\"/var/lib/lock/vtund\" -c client.c cfg_file.y:72.1-7: warning: POSIX Yacc does not support %expect [8;id=da89796e0005ea49f1d7575c00000000;https://www.gnu.org/software/bison/manual/html_node/Diagnostics.html#Wyacc\-Wyacc8;;\] 72 | %expect 20 | ^~~~~~~ In file included from main.c:38: ./vtun.h:234:13: warning: inline function 'clear_nat_hack_flags' is not defined [-Wundefined-inline] inline void clear_nat_hack_flags(int svr); ^ main.c:142:2: note: used here clear_nat_hack_flags(svr); ^ client.c:90:2: error: call to undeclared function 'setproctitle'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] set_title("%s init initializing", host->host); ^ ./lib.h:40:21: note: expanded from macro 'set_title' #define set_title setproctitle ^ server.c:70:58: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if( getpeername(sock, (struct sockaddr *) &cl_addr, &opt) ){ ^~~~ /usr/include/sys/socket.h:131:26: note: passing argument to parameter '__len' here socklen_t *__restrict __len) __THROW; ^ server.c:75:58: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if( getsockname(sock, (struct sockaddr *) &my_addr, &opt) < 0 ){ ^~~~ /usr/include/sys/socket.h:117:26: note: passing argument to parameter '__len' here socklen_t *__restrict __len) __THROW; ^ 1 error generated. server.c:155:6: error: call to undeclared function 'setproctitle'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] set_title("waiting for connections on port %d", vtun.bind_addr.port); ^ ./lib.h:40:21: note: expanded from macro 'set_title' #define set_title setproctitle ^ server.c:159:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if( (s1=accept(s,(struct sockaddr *)&cl_addr,&opt)) < 0 ) ^~~~ /usr/include/sys/socket.h:307:28: note: passing argument to parameter '__addr_len' here socklen_t *__restrict __addr_len); ^ 3 warnings and 1 error generated. make: *** [Makefile:59: client.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:59: server.o] Error 1 1 warning generated. * ERROR: net-vpn/vtun-3.0.3-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-vpn/vtun-3.0.3-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-vpn/vtun-3.0.3-r2::gentoo'`. * The complete build log is located at '/var/log/portage/net-vpn:vtun-3.0.3-r2:20221005-135627.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-vpn/vtun-3.0.3-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-vpn/vtun-3.0.3-r2/temp/environment'. * Working directory: '/var/tmp/portage/net-vpn/vtun-3.0.3-r2/work/vtun-3.0.3' * S: '/var/tmp/portage/net-vpn/vtun-3.0.3-r2/work/vtun-3.0.3'