* Package: net-analyzer/nstats-0.4-r3 * Repository: gentoo * Maintainer: netmon@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking nstats-0.4.tar.gz to /var/tmp/portage/net-analyzer/nstats-0.4-r3/work >>> Source unpacked in /var/tmp/portage/net-analyzer/nstats-0.4-r3/work >>> Preparing source in /var/tmp/portage/net-analyzer/nstats-0.4-r3/work/nstats-0.4 ... * Applying nstats-0.4-glibc24.patch ... [ ok ] * Applying nstats-0.4-makefile.patch ... [ ok ] * Applying nstats-0.4-tinfo.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/net-analyzer/nstats-0.4-r3/work/nstats-0.4' ... * Running aclocal ... [ ok ] * This package has a configure.in file which has long been deprecated. Please * update it to use configure.ac instead as newer versions of autotools will die * when it finds this file. See https://bugs.gentoo.org/426262 for details. * Running autoconf --force ... [ ok ] * Running autoheader ... [ ok ] * Running elibtoolize in: nstats-0.4/ >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-analyzer/nstats-0.4-r3/work/nstats-0.4 ... * econf: updating nstats-0.4/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-gentoo-linux-musl --host=x86_64-gentoo-linux-musl --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/nstats-0.4-r3 --htmldir=/usr/share/doc/nstats-0.4-r3/html --libdir=/usr/lib configure: loading site script /usr/share/config.site checking for x86_64-gentoo-linux-musl-gcc... x86_64-gentoo-linux-musl-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-gentoo-linux-musl-gcc accepts -g... yes checking for x86_64-gentoo-linux-musl-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... x86_64-gentoo-linux-musl-gcc -E checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c checking for an ANSI C-conforming const... yes checking return type of signal handlers... void checking for x86_64-gentoo-linux-musl-pkg-config... /usr/bin/x86_64-gentoo-linux-musl-pkg-config checking pkg-config is at least version 0.9.0... yes checking for ncurses... yes checking for initscr in -lncurses... yes checking for pcap_open_live in -lpcap... yes configure: creating ./config.status config.status: creating Makefile.opts config.status: WARNING: 'Makefile.opts.in' seems to ignore the --datarootdir setting config.status: creating config.h *** WARNING *** nstats is in development and may not work, crash or push your coffee cup from the table. Status of each component: * bmon: Should be working quite well, there might be a display error from time to time but you can redraw the screen with ^l. * cmon: It seems to display something, I don't know if it's correct. It's definitly not completly correct as fragmented packets aren't correctly. handled. * nstats: As I said, fragmented packets are not handled correctly and I think nmon: there are some other bugs. * imon: Did you create imon.c? Cool, well the iptables stuff is broken until i find a way to clearly identify the ipt_entry structure. Good luck. >>> Source configured. >>> Compiling source in /var/tmp/portage/net-analyzer/nstats-0.4-r3/work/nstats-0.4 ... make -j1 x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -fcommon -Wall -c -o src/nstats.o src/nstats.c src/nstats.c: In function ‘main’: src/nstats.c:100:38: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] 100 | char filter[4096], device[256], *dev; | ^~~ src/nstats.c:124:17: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 124 | strncpy(cf, optarg, sizeof(cf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/nstats.c:194:17: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 194 | strncpy(device, optarg, sizeof(device)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/nstats.c:191:17: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 191 | strncpy(filter, optarg, sizeof(filter)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -fcommon -Wall -c -o src/pcap.o src/pcap.c src/pcap.c: In function ‘start_pcap’: src/pcap.c:48:13: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 48 | if ( !(dev = pcap_lookupdev(err)) ) | ^~ In file included from /usr/include/pcap.h:43, from src/pcap.c:10: /usr/include/pcap/pcap.h:328:16: note: declared here 328 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -fcommon -Wall -c -o src/packet.o src/packet.c src/packet.c: In function ‘handle_tcp’: src/packet.c:49:20: error: ‘struct tcphdr’ has no member named ‘source’ 49 | sp = ntohs(tptr->source); | ^~ src/packet.c:50:20: error: ‘struct tcphdr’ has no member named ‘dest’ 50 | dp = ntohs(tptr->dest); | ^~ src/packet.c:54:13: error: ‘struct tcphdr’ has no member named ‘urg’ 54 | if (tptr->urg) { | ^~ src/packet.c:59:13: error: ‘struct tcphdr’ has no member named ‘ack’ 59 | if (tptr->ack) { | ^~ src/packet.c:64:13: error: ‘struct tcphdr’ has no member named ‘psh’ 64 | if (tptr->psh) { | ^~ src/packet.c:69:13: error: ‘struct tcphdr’ has no member named ‘rst’ 69 | if (tptr->rst) { | ^~ src/packet.c:74:13: error: ‘struct tcphdr’ has no member named ‘syn’ 74 | if (tptr->syn) { | ^~ src/packet.c:79:13: error: ‘struct tcphdr’ has no member named ‘fin’ 79 | if (tptr->fin) { | ^~ src/packet.c:92:13: error: ‘struct tcphdr’ has no member named ‘res2’ 92 | if (tptr->res2 & e1 && tptr->res2 & e2) { | ^~ src/packet.c:92:32: error: ‘struct tcphdr’ has no member named ‘res2’ 92 | if (tptr->res2 & e1 && tptr->res2 & e2) { | ^~ src/packet.c:95:20: error: ‘struct tcphdr’ has no member named ‘res2’ 95 | } else if (tptr->res2 & e1) { | ^~ src/packet.c:98:20: error: ‘struct tcphdr’ has no member named ‘res2’ 98 | } else if (tptr->res2 & e2) { | ^~ src/packet.c: In function ‘handle_udp’: src/packet.c:114:20: error: ‘struct udphdr’ has no member named ‘source’ 114 | sp = ntohs(uptr->source); | ^~ src/packet.c:115:20: error: ‘struct udphdr’ has no member named ‘dest’ 115 | dp = ntohs(uptr->dest); | ^~ src/packet.c: In function ‘look_at_packet’: src/packet.c:466:9: warning: variable ‘fragid’ set but not used [-Wunused-but-set-variable] 466 | int fragid, mf, offset; | ^~~~~~ make: *** [: src/packet.o] Error 1 * ERROR: net-analyzer/nstats-0.4-r3::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/nstats-0.4-r3::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/nstats-0.4-r3::gentoo'`. * The complete build log is located at '/var/log/portage/net-analyzer:nstats-0.4-r3:20200316-103043.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/nstats-0.4-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/nstats-0.4-r3/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/nstats-0.4-r3/work/nstats-0.4' * S: '/var/tmp/portage/net-analyzer/nstats-0.4-r3/work/nstats-0.4'