* Package: net-analyzer/nstats-0.4-r3 * Repository: gentoo * Maintainer: netmon@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc 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-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 --docdir=/usr/share/doc/nstats-0.4-r3 --htmldir=/usr/share/doc/nstats-0.4-r3/html --libdir=/usr/lib64 checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-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-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... x86_64-pc-linux-gnu-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-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-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-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -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; | ^~~ In file included from /usr/include/string.h:494, from src/nstats.c:12: In function ‘strncpy’, inlined from ‘main’ at src/nstats.c:124:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘main’ at src/nstats.c:194:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘main’ at src/nstats.c:191:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -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-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -c -o src/packet.o src/packet.c 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; | ^~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -c -o src/conn.o src/conn.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -c -o src/util.o src/util.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -o nstats src/nstats.o src/pcap.o src/packet.o src/conn.o src/util.o -Wl,-O1 -Wl,--as-needed -lpcap /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/pcap.o:(.bss+0x0): multiple definition of `ifc'; src/nstats.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/packet.o:(.bss+0x20): multiple definition of `stats'; src/nstats.o:(.bss+0x10020): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/packet.o:(.bss+0x0): multiple definition of `ifc'; src/nstats.o:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/conn.o:(.bss+0x80020): multiple definition of `stats'; src/nstats.o:(.bss+0x10020): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:32: nstats] 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:20200130-143443.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'