From https://github.com/archlinux/svntogit-community * branch packages/sniffit -> FETCH_HEAD * [new branch] packages/sniffit -> community/packages/sniffit Cloning into 'sniffit'... done. :: Synchronizing package databases... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 132k 100 132k 0 0 371k 0 --:--:-- --:--:-- --:--:-- 370k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2 8543k 2 177k 0 0 212k 0 0:00:40 --:--:-- 0:00:40 212k 35 8543k 35 3065k 0 0 1663k 0 0:00:05 0:00:01 0:00:04 1663k 78 8543k 78 6669k 0 0 2356k 0 0:00:03 0:00:02 0:00:01 2356k 100 8543k 100 8543k 0 0 2698k 0 0:00:03 0:00:03 --:--:-- 2698k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 143k 100 143k 0 0 820k 0 --:--:-- --:--:-- --:--:-- 822k :: Starting full system upgrade... there is nothing to do PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp/archlinux-ci/ GIT_SSL_NO_VERIFY=1 SOURCE_DATE_EPOCH=1690288703 SHELL=/bin/bash SCHROOT_CHROOT_NAME=jenkins-reproducible-archlinux no_proxy=localhost,127.0.0.1 SCHROOT_COMMAND=bash -l -c SOURCE_DATE_EPOCH='1690288703' PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' TMPDIR='/tmp/archlinux-ci/' GIT_SSL_NO_VERIFY=1 printenv 2>&1 SCHROOT_SESSION_ID=archlinux-sniffit-archlinuxrb-build-EKkHYsOj PWD=/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk LOGNAME=jenkins SCHROOT_ALIAS_NAME=jenkins-reproducible-archlinux SCHROOT_GROUP=jenkins SCHROOT_USER=jenkins ftp_proxy=http://127.0.0.1:3128 HOME=/var/lib/jenkins LANG=C https_proxy=http://127.0.0.1:3128 USER=jenkins FTP_PROXY=http://127.0.0.1:3128 SHLVL=1 HTTPS_PROXY=http://127.0.0.1:3128 HTTP_PROXY=http://127.0.0.1:3128 SCHROOT_GID=116 http_proxy=http://127.0.0.1:3128 DEBUGINFOD_URLS=https://debuginfod.archlinux.org SCHROOT_UID=108 HG=/usr/bin/hg _=/usr/sbin/printenv ==> Making package: sniffit 0.5-3 (Mon Aug 26 19:01:58 2024) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Downloading sniffit_0.5.orig.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 60074 100 60074 0 0 2510k 0 --:--:-- --:--:-- --:--:-- 2550k ==> WARNING: Skipping verification of source file PGP signatures. ==> Validating source files with sha512sums... sniffit_0.5.orig.tar.gz ... Passed ==> Extracting sources... -> Extracting sniffit_0.5.orig.tar.gz with bsdtar ==> Starting build()... configure.ac:12: installing './compile' configure.ac:28: installing './config.guess' configure.ac:28: installing './config.sub' configure.ac:62: installing './install-sh' configure.ac:62: installing './missing' src/Makefile.am: installing './depcomp' Done. You can use the 'clean' option to vanish the source code. Example of use: $ ./autogen.sh clean Now run ./configure, make, and make install. checking for gcc... 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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking for main in -lncurses... yes 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/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/sbin/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 gcc... gcc3 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 make all-recursive make[1]: Entering directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5' Making all in src make[2]: Entering directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5/src' gcc -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 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT sn_packets.o -MD -MP -MF .deps/sn_packets.Tpo -c -o sn_packets.o sn_packets.c gcc -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 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT sn_generation.o -MD -MP -MF .deps/sn_generation.Tpo -c -o sn_generation.o sn_generation.c gcc -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 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT sn_interface.o -MD -MP -MF .deps/sn_interface.Tpo -c -o sn_interface.o sn_interface.c gcc -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 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT sn_cfgfile.o -MD -MP -MF .deps/sn_cfgfile.Tpo -c -o sn_cfgfile.o sn_cfgfile.c gcc -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 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT sn_logfile.o -MD -MP -MF .deps/sn_logfile.Tpo -c -o sn_logfile.o sn_logfile.c gcc -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 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT sn_resolv.o -MD -MP -MF .deps/sn_resolv.Tpo -c -o sn_resolv.o sn_resolv.c gcc -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 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT sniffit.o -MD -MP -MF .deps/sniffit.Tpo -c -o sniffit.o sniffit.c sn_packets.c: In function 'unwrap_packet': sn_packets.c:68:32: warning: passing argument 1 of 'in_cksum' from incompatible pointer type [-Wincompatible-pointer-types] 68 | if(in_cksum((sp+PROTO_HEAD),unwrapped->IP_len) != IPhead.checksum) | ~~~^~~~~~~~~~~~ | | | unsigned char * sn_packets.c:14:41: note: expected 'short unsigned int *' but argument is of type 'unsigned char *' 14 | unsigned short in_cksum(unsigned short *addr,int len) | ~~~~~~~~~~~~~~~~^~~~ mv -f .deps/sn_resolv.Tpo .deps/sn_resolv.Po sn_cfgfile.c: In function 'clean_string': sn_cfgfile.c:131:14: warning: implicit declaration of function 'isalnum' [-Wimplicit-function-declaration] 131 | if( (isalnum(string[i]))||(string[i]=='.') ) | ^~~~~~~ sn_cfgfile.c:17:1: note: include '' or provide a declaration of 'isalnum' 16 | #include "sniffit.h" +++ |+#include 17 | /* #include "sn_generation.h" */ sn_cfgfile.c: In function 'clean_filename': sn_cfgfile.c:155:15: warning: implicit declaration of function 'iscntrl' [-Wimplicit-function-declaration] 155 | if( !(iscntrl(string[i])) && !(isspace(string[i])) ) | ^~~~~~~ sn_cfgfile.c:155:15: note: include '' or provide a declaration of 'iscntrl' sn_cfgfile.c:155:40: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration] 155 | if( !(iscntrl(string[i])) && !(isspace(string[i])) ) | ^~~~~~~ sn_cfgfile.c:155:40: note: include '' or provide a declaration of 'isspace' mv -f .deps/sn_packets.Tpo .deps/sn_packets.Po sn_logfile.c: In function 'open_logfile': sn_logfile.c:96:8: warning: passing argument 1 of 'fchmod' makes integer from pointer without a cast [-Wint-conversion] 96 | fchmod(LogFILE, S_IWUSR|S_IRUSR); | ^~~~~~~ | | | FILE * In file included from sn_logfile.c:9: /usr/include/sys/stat.h:365:24: note: expected 'int' but argument is of type 'FILE *' 365 | extern int fchmod (int __fd, __mode_t __mode) __THROW; | ~~~~^~~~ sn_generation.c: In function 'exec_generate': sn_generation.c:66:1: warning: implicit declaration of function 'input_field' [-Wimplicit-function-declaration] 66 | input_field(msg,NULL,0); | ^~~~~~~~~~~ sn_cfgfile.c: In function 'read_cfg_file': sn_cfgfile.c:463:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 463 | fgets(lineptr,259,cfgfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sn_generation.c:67:1: warning: implicit declaration of function 'forced_refresh' [-Wimplicit-function-declaration] 67 | forced_refresh(); | ^~~~~~~~~~~~~~ sn_generation.c: In function 'sp_fix_IP_packet': sn_generation.c:205:22: warning: implicit declaration of function 'in_cksum' [-Wimplicit-function-declaration] 205 | sp_help_ip->checksum=in_cksum((unsigned short *) (sp->buffer), | ^~~~~~~~ sn_interface.c: In function 'mask_status': sn_interface.c:195:3: warning: assignment to 'unsigned char *' from incompatible pointer type '_32_bit *' {aka 'unsigned int *'} [-Wincompatible-pointer-types] 195 | ad=&(mask->source_ip); | ^ sn_interface.c:201:3: warning: assignment to 'unsigned char *' from incompatible pointer type '_32_bit *' {aka 'unsigned int *'} [-Wincompatible-pointer-types] 201 | ad=&(mask->destination_ip); | ^ sn_interface.c: In function 'interaction': sn_interface.c:470:25: warning: implicit declaration of function 'isprint' [-Wimplicit-function-declaration] 470 | isprint(*(connection_data+i))? | ^~~~~~~ sn_interface.c:20:1: note: include '' or provide a declaration of 'isprint' 19 | #include "sn_resolv.h" +++ |+#include 20 | sn_interface.c: In function 'packet_info_handler': sn_interface.c:491:63: warning: ' ' flag used with '%u' gnu_printf format [-Wformat=] 491 | mvwprintw(packets_box.work_window,0,1,"IP packets/sec. : % 12u",(*IP_nr_of_packets)/INFO_TIMER); | ^ sn_interface.c:492:63: warning: ' ' flag used with '%u' gnu_printf format [-Wformat=] 492 | mvwprintw(packets_box.work_window,1,1,"TCP packets/sec. : % 12u",(*TCP_nr_of_packets)/INFO_TIMER); | ^ sn_interface.c:493:63: warning: ' ' flag used with '%u' gnu_printf format [-Wformat=] 493 | mvwprintw(packets_box.work_window,2,1,"ICMP packets/sec.: % 12u",(*ICMP_nr_of_packets)/INFO_TIMER); | ^ sn_interface.c:494:63: warning: ' ' flag used with '%u' gnu_printf format [-Wformat=] 494 | mvwprintw(packets_box.work_window,3,1,"UDP packets/sec. : % 12u",(*UDP_nr_of_packets)/INFO_TIMER); | ^ In file included from sn_plugins.h:23, from sniffit.c:35: dns_plugin.plug: In function 'PL_DNS_plugin': dns_plugin.plug:87:12: warning: assignment to 'struct PL_DNS_header *' from incompatible pointer type 'struct DNS_header *' [-Wincompatible-pointer-types] 87 | dns_dnshead= (struct DNS_header *) (dns_buffer+udp_start+sizeof(struct UDP_header)); | ^ sniffit.c: In function 'strlower': sniffit.c:127:22: warning: implicit declaration of function 'isupper' [-Wimplicit-function-declaration] 127 | *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); | ^~~~~~~ sniffit.c:45:1: note: include '' or provide a declaration of 'isupper' 44 | #include "sniffit.h" /* definition of functions */ +++ |+#include 45 | sniffit.c:127:48: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration] 127 | *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); | ^~~~~~~ sniffit.c:127:48: note: include '' or provide a declaration of 'tolower' sniffit.c: In function 'record_buf': sniffit.c:386:11: warning: implicit declaration of function 'isprint' [-Wimplicit-function-declaration] 386 | if (isprint (data[i])) | ^~~~~~~ sniffit.c:386:11: note: include '' or provide a declaration of 'isprint' sniffit.c: In function 'packethandler': sniffit.c:1107:43: warning: passing argument 2 of 'pcap_dump' from incompatible pointer type [-Wincompatible-pointer-types] 1107 | pcap_dump((unsigned char *) dev_dump, p_header, sp); | ^~~~~~~~ | | | const struct packetheader * In file included from /usr/include/pcap.h:43, from sniffit.c:24: /usr/include/pcap/pcap.h:743:37: note: expected 'const struct pcap_pkthdr *' but argument is of type 'const struct packetheader *' 743 | PCAP_API void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1108:12: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 1108 | return 1; | ^ sniffit.c:1154:32: warning: format '%lX' expects argument of type 'long unsigned int', but argument 2 has type '__uint32_t' {aka 'unsigned int'} [-Wformat=] 1154 | printf (" SEQ (hex): %lX ", ntohl (tcphead.seq_nr)); | ~~^ | | | long unsigned int | %X sniffit.c:1156:31: warning: format '%lX' expects argument of type 'long unsigned int', but argument 2 has type '__uint32_t' {aka 'unsigned int'} [-Wformat=] 1156 | printf ("ACK (hex): %lX\n", ntohl (tcphead.ACK_nr)); | ~~^ | | | long unsigned int | %X sniffit.c:1189:24: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 1189 | return 1; | ^ sniffit.c:1193:24: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 1193 | return 1; | ^ sniffit.c:1259:14: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 1259 | return 1; | ^ In file included from sniffit.c:1270: sn_analyse.c:13:16: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 13 | return 1; | ^ sn_analyse.c:29:10: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 29 | return 1; | ^ sn_analyse.c:43:37: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 43 | if((dummy&FIN)||(dummy&RST)) return 1; /* needed, cauz entry don't exist */ | ^ sn_analyse.c:53:51: warning: passing argument 3 of 'sbuf_update' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 53 | sbuf_update(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len); | ^~~~ sniffit.c:413:20: note: expected 'char *' but argument is of type 'const unsigned char *' 413 | char *data, int len) | ~~~~~~^~~~ sn_analyse.c:83:52: warning: passing argument 3 of 'record_buf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 83 | record_buf(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len,0); | ^~~~ sniffit.c:358:19: note: expected 'char *' but argument is of type 'const unsigned char *' 358 | char *data, int len, int type) | ~~~~~~^~~~ sn_analyse.c:95:54: warning: passing argument 3 of 'record_buf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 95 | record_buf(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len,0); | ^~~~ sniffit.c:358:19: note: expected 'char *' but argument is of type 'const unsigned char *' 358 | char *data, int len, int type) | ~~~~~~^~~~ sn_analyse.c:117:51: warning: passing argument 3 of 'sbuf_update' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 117 | sbuf_update(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len); | ^~~~ sniffit.c:413:20: note: expected 'char *' but argument is of type 'const unsigned char *' 413 | char *data, int len) | ~~~~~~^~~~ sn_analyse.c:200:8: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 200 | return 1; | ^ sn_analyse.c:201:8: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 201 | return 1; /* DON'T FORGET THEM!!!! */ | ^ sniffit.c:1339:14: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 1339 | return 1; | ^ sniffit.c:1372:14: warning: returning 'int' from a function with return type 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} makes pointer from integer without a cast [-Wint-conversion] 1372 | return 1; | ^ In file included from sniffit.c:1458: sn_conn_desc.c: In function 'check_mask': sn_conn_desc.c:24:12: warning: implicit declaration of function 'isalnum' [-Wimplicit-function-declaration] 24 | if( (isalnum(data[i]) || ispunct(data[i]) || data[i]==' ')&&(j<(*DESC_LEN)-1) ) | ^~~~~~~ sn_conn_desc.c:1:1: note: include '' or provide a declaration of 'isalnum' +++ |+#include 1 | /* Connection description detection file */ sn_conn_desc.c:24:32: warning: implicit declaration of function 'ispunct' [-Wimplicit-function-declaration] 24 | if( (isalnum(data[i]) || ispunct(data[i]) || data[i]==' ')&&(j<(*DESC_LEN)-1) ) | ^~~~~~~ sn_conn_desc.c:24:32: note: include '' or provide a declaration of 'ispunct' sn_conn_desc.c:27:15: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration] 27 | {if( (isspace(data[i]) && data[i]!=' ')&&(j<(*DESC_LEN)-1) ) | ^~~~~~~ sn_conn_desc.c:27:15: note: include '' or provide a declaration of 'isspace' sniffit.c: In function 'main': sniffit.c:1522:20: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 1522 | signal (SIGINT, my_exit); /* graceful termination in different ways */ | ^~~~~~~ | | | void (*)(void) In file included from sniffit.c:7: /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sniffit.c:1523:20: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 1523 | signal (SIGHUP, my_exit); | ^~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sniffit.c:1524:20: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 1524 | signal (SIGTERM, my_exit); | ^~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sniffit.c:1773:5: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 1773 | if((dev = pcap_lookupdev (ebuf)) == NULL) | ^~ /usr/include/pcap/pcap.h:395:18: note: declared here 395 | PCAP_API char *pcap_lookupdev(char *); | ^~~~~~~~~~~~~~ sniffit.c:1800:20: warning: extra tokens at end of #ifdef directive 1800 | #ifdef PLUGIN0_INIT() | ^ sniffit.c:1804:20: warning: extra tokens at end of #ifdef directive 1804 | #ifdef PLUGIN1_INIT() | ^ sniffit.c:1808:20: warning: extra tokens at end of #ifdef directive 1808 | #ifdef PLUGIN2_INIT() | ^ sniffit.c:1812:20: warning: extra tokens at end of #ifdef directive 1812 | #ifdef PLUGIN3_INIT() | ^ sniffit.c:1816:20: warning: extra tokens at end of #ifdef directive 1816 | #ifdef PLUGIN4_INIT() | ^ sniffit.c:1820:20: warning: extra tokens at end of #ifdef directive 1820 | #ifdef PLUGIN5_INIT() | ^ sniffit.c:1824:20: warning: extra tokens at end of #ifdef directive 1824 | #ifdef PLUGIN6_INIT() | ^ sniffit.c:1828:20: warning: extra tokens at end of #ifdef directive 1828 | #ifdef PLUGIN7_INIT() | ^ sniffit.c:1832:20: warning: extra tokens at end of #ifdef directive 1832 | #ifdef PLUGIN8_INIT() | ^ sniffit.c:1836:20: warning: extra tokens at end of #ifdef directive 1836 | #ifdef PLUGIN9_INIT() | ^ sniffit.c:1864:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] 1864 | printf ("Shared %d\n", memsize); | ~^ ~~~~~~~ | | | | int long unsigned int | %ld mv -f .deps/sn_logfile.Tpo .deps/sn_logfile.Po sniffit.c:1867:18: warning: assignment to 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 1867 | DATAlength = timing + sizeof (int); | ^ sniffit.c:1868:23: warning: assignment to 'char *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 1868 | connection_data = DATAlength + sizeof (int); | ^ sniffit.c:1869:18: warning: assignment to 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 1869 | LISTlength = connection_data + LENGTH_OF_INTERPROC_DATA; | ^ sniffit.c:1870:12: warning: assignment to 'struct snif_mask *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 1870 | mask = LISTlength + sizeof (int); | ^ sniffit.c:1871:26: warning: assignment to 'char *' from incompatible pointer type 'struct snif_mask *' [-Wincompatible-pointer-types] 1871 | logged_connections = mask + sizeof (struct snif_mask); | ^ sniffit.c:1874:25: warning: assignment to 'unsigned int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 1874 | TCP_nr_of_packets = running_connections + (sizeof (struct shared_conn_data) * CONNECTION_CAPACITY); | ^ sniffit.c:1875:28: warning: assignment to 'long unsigned int *' from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types] 1875 | TCP_bytes_in_packets = TCP_nr_of_packets + sizeof (int); | ^ sniffit.c:1876:26: warning: assignment to 'unsigned int *' from incompatible pointer type 'long unsigned int *' [-Wincompatible-pointer-types] 1876 | ICMP_nr_of_packets = TCP_bytes_in_packets + sizeof (unsigned long); | ^ sniffit.c:1878:28: warning: assignment to 'long unsigned int *' from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types] 1878 | UDP_bytes_in_packets = UDP_nr_of_packets + sizeof (int); | ^ sniffit.c:1879:24: warning: assignment to 'unsigned int *' from incompatible pointer type 'long unsigned int *' [-Wincompatible-pointer-types] 1879 | IP_nr_of_packets = UDP_bytes_in_packets + sizeof (unsigned long); | ^ sniffit.c:1894:32: warning: passing argument 3 of 'pcap_loop' from incompatible pointer type [-Wincompatible-pointer-types] 1894 | interactive_packethandler, NULL) < 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (* (*)(char *, const struct packetheader *, const unsigned char *))(u_char *, const struct pcap_pkthdr *, const u_char *) {aka void (* (*)(char *, const struct packetheader *, const unsigned char *))(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)} /usr/include/pcap/pcap.h:565:42: note: expected 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} but argument is of type 'void (* (*)(char *, const struct packetheader *, const unsigned char *))(u_char *, const struct pcap_pkthdr *, const u_char *)' {aka 'void (* (*)(char *, const struct packetheader *, const unsigned char *))(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} 565 | PCAP_API int pcap_loop(pcap_t *, int, pcap_handler, u_char *); | ^~~~~~~~~~~~ sniffit.c:1927:41: warning: passing argument 3 of 'pcap_loop' from incompatible pointer type [-Wincompatible-pointer-types] 1927 | switch (pcap_loop (dev_desc, CNT, packethandler, (unsigned char *) &ipaddr)) | ^~~~~~~~~~~~~ | | | void (* (*)(unsigned char *, const struct packetheader *, const unsigned char *))(u_char *, const struct pcap_pkthdr *, const u_char *) {aka void (* (*)(unsigned char *, const struct packetheader *, const unsigned char *))(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)} /usr/include/pcap/pcap.h:565:42: note: expected 'pcap_handler' {aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} but argument is of type 'void (* (*)(unsigned char *, const struct packetheader *, const unsigned char *))(u_char *, const struct pcap_pkthdr *, const u_char *)' {aka 'void (* (*)(unsigned char *, const struct packetheader *, const unsigned char *))(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)'} 565 | PCAP_API int pcap_loop(pcap_t *, int, pcap_handler, u_char *); | ^~~~~~~~~~~~ mv -f .deps/sn_generation.Tpo .deps/sn_generation.Po mv -f .deps/sn_cfgfile.Tpo .deps/sn_cfgfile.Po mv -f .deps/sn_interface.Tpo .deps/sn_interface.Po mv -f .deps/sniffit.Tpo .deps/sniffit.Po gcc -lncurses -lpcap -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o sniffit sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o sn_resolv.o sniffit.o -lpcap -lncurses make[2]: Leaving directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5/src' make[2]: Entering directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5' make[2]: Leaving directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5' make[1]: Leaving directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5' ==> Entering fakeroot environment... ==> Starting package()... Making install in src make[1]: Entering directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5/src' make[2]: Entering directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5/src' make[2]: Nothing to be done for 'install-data-am'. /usr/sbin/mkdir -p '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/pkg/sniffit/usr/bin' /usr/bin/install -c sniffit '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/pkg/sniffit/usr/bin' make[2]: Leaving directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5/src' make[1]: Leaving directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5/src' make[1]: Entering directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5' make[2]: Entering directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5' make[2]: Nothing to be done for 'install-exec-am'. /usr/sbin/mkdir -p '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/pkg/sniffit/usr/share/man/man5' /usr/bin/install -c -m 644 man/sniffit.5 '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/pkg/sniffit/usr/share/man/man5' /usr/sbin/mkdir -p '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/pkg/sniffit/usr/share/man/man8' /usr/bin/install -c -m 644 man/sniffit.8 '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/pkg/sniffit/usr/share/man/man8' make[2]: Leaving directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5' make[1]: Leaving directory '/tmp/archlinux-ci/sniffit-archlinuxrb-build-EKkHYsOj/sniffit/trunk/src/sniffit-sniffit-0.5' ==> Tidying install... -> Removing libtool files... -> Purging unwanted files... -> Removing static library files... -> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issues... ==> Creating package "sniffit"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Generating .MTREE file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: sniffit 0.5-3 (Mon Aug 26 19:02:13 2024)