* Package: net-analyzer/sniffit-0.5:0 * 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 sniffit-0.5.tar.gz to /var/tmp/portage/net-analyzer/sniffit-0.5/work >>> Source unpacked in /var/tmp/portage/net-analyzer/sniffit-0.5/work >>> Preparing source in /var/tmp/portage/net-analyzer/sniffit-0.5/work/sniffit-sniffit-0.5 ... * Applying sniffit-0.4.0-tinfo.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/net-analyzer/sniffit-0.5/work/sniffit-sniffit-0.5' ... * Running 'aclocal --system-acdir=/var/tmp/portage/net-analyzer/sniffit-0.5/temp/aclocal' ... [ ok ] * Running 'autoconf --force' ... [ ok ] * Running 'autoheader' ... [ ok ] * Running 'automake --add-missing --copy --foreign --force-missing' ... [ ok ] * Running elibtoolize in: sniffit-sniffit-0.5/ >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-analyzer/sniffit-0.5/work/sniffit-sniffit-0.5 ... * econf: updating sniffit-sniffit-0.5/config.sub with /usr/share/gnuconfig/config.sub * econf: updating sniffit-sniffit-0.5/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 --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/sniffit-0.5 --htmldir=/usr/share/doc/sniffit-0.5/html --libdir=/usr/lib64 checking for x86_64-pc-linux-gnu-gcc... clang 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 the compiler supports GNU C... yes checking whether clang accepts -g... yes checking for clang option to enable C11 features... none needed checking whether clang understands -c and -o together... yes checking for initscr in -lncurses... yes checking for library containing keypad... -ltinfo checking for pcap_open_live in -lpcap... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for vfork.h... no checking for arpa/inet.h... yes checking for fcntl.h... yes checking for netdb.h... yes checking for netinet/in.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/socket.h... yes checking for sys/time.h... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking for ncurses.h... yes checking for pcap.h... yes checking for size_t... yes checking for pid_t... yes checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for GNU libc compatible malloc... yes checking for GNU libc compatible realloc... yes checking for alarm... yes checking for bzero... yes checking for gethostbyname... yes checking for socket... yes checking for strchr... yes checking for strdup... yes checking for strstr... yes checking for shmget... yes checking for atexit... yes checking size of unsigned short int... 2 checking size of unsigned long int... 8 unsigned long is NOT 4 bytes... hmmm... checking size of unsigned int... 4 checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of clang... none checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands >>> Source configured. '/var/tmp/portage/net-analyzer/sniffit-0.5/temp/clang14.log' -> '/var/tmp/clang/net-analyzer/sniffit-0.5/clang14.log' '/var/tmp/portage/net-analyzer/sniffit-0.5/temp/clang15.log' -> '/var/tmp/clang/net-analyzer/sniffit-0.5/clang15.log' >>> Compiling source in /var/tmp/portage/net-analyzer/sniffit-0.5/work/sniffit-sniffit-0.5 ... make -j4 make all-recursive make[1]: Entering directory '/var/tmp/portage/net-analyzer/sniffit-0.5/work/sniffit-sniffit-0.5' Making all in src make[2]: Entering directory '/var/tmp/portage/net-analyzer/sniffit-0.5/work/sniffit-sniffit-0.5/src' clang -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -lncurses -lpcap -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c -o sn_packets.o sn_packets.c clang -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -lncurses -lpcap -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c -o sn_generation.o sn_generation.c clang -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -lncurses -lpcap -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c -o sn_interface.o sn_interface.c clang -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -lncurses -lpcap -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c -o sn_cfgfile.o sn_cfgfile.c clang-15clang-15: : clang-15warning: : warning: warning: -lncurses: 'linker' input unused [-Wunused-command-line-argument]-lncurses: 'linker' input unused [-Wunused-command-line-argument] -lncurses: 'linker' input unused [-Wunused-command-line-argument] clang-15clang-15: clang-15: warning: : warning: -lpcap: 'linker' input unused [-Wunused-command-line-argument]warning: -lpcap: 'linker' input unused [-Wunused-command-line-argument]-lpcap: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: -lncurses: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: -lpcap: 'linker' input unused [-Wunused-command-line-argument] sn_packets.c:68:15: warning: incompatible pointer types passing 'unsigned char *' to parameter of type 'unsigned short *' [-Wincompatible-pointer-types] if(in_cksum((sp+PROTO_HEAD),unwrapped->IP_len) != IPhead... ^~~~~~~~~~~~~~~ sn_packets.c:14:41: note: passing argument to parameter 'addr' here unsigned short in_cksum(unsigned short *addr,int len) ^ sn_generation.c:66:1: error: call to undeclared function 'input_field'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] input_field(msg,NULL,0); ^ sn_generation.c:67:1: error: call to undeclared function 'forced_refresh'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] forced_refresh(); ^ sn_generation.c:205:22: error: call to undeclared function 'in_cksum'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] sp_help_ip->checksum=in_cksum((unsigned short *) (sp->buffer), ^ sn_generation.c:239:23: error: call to undeclared function 'in_cksum'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] sp_help_tcp->checksum=in_cksum((unsigned short *) sp_pseudo_ip_construct, ^ sn_generation.c:310:23: error: call to undeclared function 'in_cksum'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] sp_help_udp->checksum=in_cksum((unsigned short *) sp_pseudo_ip_construct, ^ 5 errors generated. sn_cfgfile.c:131:7: error: call to undeclared library function 'isalnum' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if( (isalnum(string[i]))||(string[i]=='.') ) ^ sn_cfgfile.c:131:7: note: include the header or explicitly provide a declaration for 'isalnum' sn_cfgfile.c:155:8: error: call to undeclared library function 'iscntrl' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if( !(iscntrl(string[i])) && !(isspace(string[i])) ) ^ sn_cfgfile.c:155:8: note: include the header or explicitly provide a declaration for 'iscntrl' sn_cfgfile.c:155:33: error: call to undeclared library function 'isspace' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if( !(iscntrl(string[i])) && !(isspace(string[i])) ) ^ sn_cfgfile.c:155:33: note: include the header or explicitly provide a declaration for 'isspace' sn_cfgfile.c:175:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one make[2]: *** [Makefile:380: sn_generation.o] Error 1 make[2]: *** Waiting for unfinished jobs.... is of the unique plain 'char' type and the other is not [-Wpointer-sign] digit=(char *)&hostnr; ^~~~~~~~~~~~~~~~ sn_cfgfile.c:239:22: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:255:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:270:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:286:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:302:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:303:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(helpp->host,dot_notation); ^~~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:326:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, field); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:327:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(helpp->host, field); ^~~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:348:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:364:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:379:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:395:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:411:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:412:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(helpp->host,dot_notation); ^~~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:434:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, field); ^~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ sn_cfgfile.c:435:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(helpp->host, field); ^~~~~~~~~~~ /usr/include/string.h:141:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ 17 warnings and 3 errors generated. sn_interface.c:195:3: warning: incompatible pointer types assigning to 'unsigned char *' from '_32_bit *' (aka 'unsigned int *') [-Wincompatible-pointer-types] ad=&(mask->source_ip); ^~~~~~~~~~~~~~~~~~~ sn_interface.c:201:3: warning: incompatible pointer types assigning to 'unsigned char *' from '_32_bit *' (aka 'unsigned int *') [-Wincompatible-pointer-types] ad=&(mask->destination_ip); ^~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:380: sn_cfgfile.o] Error 1 sn_interface.c:470:8: error: call to undeclared library function 'isprint' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] isprint(*(connection_data+i))? ^ sn_interface.c:470:8: note: include the header or explicitly provide a declaration for 'isprint' sn_interface.c:491:60: warning: flag ' ' results in undefined behavior with 'u' conversion specifier [-Wformat] mvwprintw(packets_box.work_window,0,1,"IP packets/sec. : % 12u",(*IP_nr... ~^~~~ sn_interface.c:492:60: warning: flag ' ' results in undefined behavior with 'u' conversion specifier [-Wformat] mvwprintw(packets_box.work_window,1,1,"TCP packets/sec. : % 12u",(*TCP_n... ~^~~~ sn_interface.c:493:60: warning: flag ' ' results in undefined behavior with 'u' conversion specifier [-Wformat] mvwprintw(packets_box.work_window,2,1,"ICMP packets/sec.: % 12u",(*ICMP_... ~^~~~ sn_interface.c:494:60: warning: flag ' ' results in undefined behavior with 'u' conversion specifier [-Wformat] mvwprintw(packets_box.work_window,3,1,"UDP packets/sec. : % 12u",(*UDP_n... ~^~~~ 6 warnings and 1 error generated. make[2]: *** [Makefile:380: sn_interface.o] Error 1 1 warning generated. make[2]: Leaving directory '/var/tmp/portage/net-analyzer/sniffit-0.5/work/sniffit-sniffit-0.5/src' make[1]: *** [Makefile:483: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-analyzer/sniffit-0.5/work/sniffit-sniffit-0.5' make: *** [Makefile:338: all] Error 2 * ERROR: net-analyzer/sniffit-0.5::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/sniffit-0.5::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/sniffit-0.5::gentoo'`. * The complete build log is located at '/var/log/portage/net-analyzer:sniffit-0.5:20220917-181050.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/sniffit-0.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/sniffit-0.5/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/sniffit-0.5/work/sniffit-sniffit-0.5' * S: '/var/tmp/portage/net-analyzer/sniffit-0.5/work/sniffit-sniffit-0.5'