<86>Dec 14 06:44:36 userdel[3183778]: delete user 'rooter' <86>Dec 14 06:44:36 groupadd[3183856]: group added to /etc/group: name=rooter, GID=1244 <86>Dec 14 06:44:36 groupadd[3183856]: group added to /etc/gshadow: name=rooter <86>Dec 14 06:44:36 groupadd[3183856]: new group: name=rooter, GID=1244 <86>Dec 14 06:44:36 useradd[3183917]: new user: name=rooter, UID=1244, GID=1244, home=/root, shell=/bin/bash, from=none <86>Dec 14 06:44:36 userdel[3184019]: delete user 'builder' <86>Dec 14 06:44:36 groupadd[3184107]: group added to /etc/group: name=builder, GID=1245 <86>Dec 14 06:44:36 groupadd[3184107]: group added to /etc/gshadow: name=builder <86>Dec 14 06:44:36 groupadd[3184107]: new group: name=builder, GID=1245 <86>Dec 14 06:44:36 useradd[3184188]: new user: name=builder, UID=1245, GID=1245, home=/usr/src, shell=/bin/bash, from=none <13>Dec 14 06:44:41 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:44:41 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Dec 14 06:44:41 rpmi: liblz4-1:1.9.4-alt1 sisyphus+309416.100.1.1 1667413000 installed <13>Dec 14 06:44:41 rpmi: libsystemd-1:255.13-alt1 sisyphus+359453.100.2.1 1728651220 installed <13>Dec 14 06:44:41 rpmi: libdbus-1.14.10-alt1 sisyphus+327286.5700.14.1 1711487513 installed <13>Dec 14 06:44:41 rpmi: libpcap0.8-2:1.10.4-alt1 sisyphus+322910.100.5.1 1687282815 installed <13>Dec 14 06:44:41 rpmi: libpcap-devel-2:1.10.4-alt1 sisyphus+322910.100.5.1 1687282815 installed <13>Dec 14 06:44:41 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/sniffit-0.5-alt1.nosrc.rpm (w1.gzdio) Installing sniffit-0.5-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.29038 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf sniffit-0.5 + echo 'Source #0 (sniffit-0.5.tar.gz):' Source #0 (sniffit-0.5.tar.gz): + /bin/tar -xf - + /usr/bin/gzip -dc /usr/src/RPM/SOURCES/sniffit-0.5.tar.gz + cd sniffit-0.5 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.94539 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd sniffit-0.5 + autoreconf -fisv autoreconf-default: export WARNINGS= autoreconf-default: Entering directory '.' autoreconf-default: configure.ac: not using Gettext autoreconf-default: running: aclocal --force autoreconf-default: configure.ac: tracing autoreconf-default: configure.ac: not using Libtool autoreconf-default: configure.ac: not using Intltool autoreconf-default: configure.ac: not using Gtkdoc autoreconf-default: running: /usr/bin/autoconf-2.71 --force autoreconf-default: running: /usr/bin/autoheader-2.71 --force autoreconf-default: running: automake --add-missing --force-missing 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' autoreconf-default: Leaving directory '.' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export FFLAGS + FCFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export FCFLAGS + '[' -n '' ']' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS=' -march=i586 -mtune=generic' + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + readlink -e -- ./configure + xargs -ri dirname -- '{}' + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + sort -u + configure_runstatedir_flags= + grep -qF runstatedir=DIR ./configure + configure_runstatedir_flags=--runstatedir=/var/run + ./configure --build=i586-alt-linux --host=i586-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --runstatedir=/var/run --without-included-gettext --sbindir=/usr/bin configure: WARNING: unrecognized options: --without-included-gettext checking for i586-alt-linux-gcc... i586-alt-linux-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 i586-alt-linux-gcc accepts -g... yes checking for i586-alt-linux-gcc option to enable C11 features... none needed checking whether i586-alt-linux-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... i586-alt-linux-gnu checking host system type... i586-alt-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... 4 checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/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 i586-alt-linux-gcc... 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 configure: WARNING: unrecognized options: --without-included-gettext + make -j8 OBJ_OPT=-g 'EXE_OPT=-lpcap -g' make all-recursive Making all in src make[2]: Entering directory '/usr/src/RPM/BUILD/sniffit-0.5/src' i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -c -o sn_logfile.o sn_logfile.c sn_logfile.c: In function 'open_logfile': sn_logfile.c:96:8: error: 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; | ~~~~^~~~ make[2]: *** [Makefile:380: sn_logfile.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/sniffit-0.5/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/usr/src/RPM/BUILD/sniffit-0.5/src' i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -c -o sn_packets.o sn_packets.c sn_packets.c: In function 'unwrap_packet': sn_packets.c:68:32: error: 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) | ~~~~~~~~~~~~~~~~^~~~ sn_packets.c:46:13: warning: unused variable 'i' [-Wunused-variable] 46 | int i; | ^ make[2]: *** [Makefile:380: sn_packets.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/sniffit-0.5/src' make[2]: Entering directory '/usr/src/RPM/BUILD/sniffit-0.5/src' i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -c -o sn_generation.o sn_generation.c sn_generation.c: In function 'exec_generate': sn_generation.c:66:1: error: implicit declaration of function 'input_field' [-Wimplicit-function-declaration] 66 | input_field(msg,NULL,0); | ^~~~~~~~~~~ sn_generation.c:67:1: error: implicit declaration of function 'forced_refresh' [-Wimplicit-function-declaration] 67 | forced_refresh(); | ^~~~~~~~~~~~~~ sn_generation.c: In function 'open_sending': sn_generation.c:131:5: warning: unused variable 'dummy' [-Wunused-variable] 131 | int dummy=1; | ^~~~~ sn_generation.c:129:18: warning: unused variable 'sp_proto' [-Wunused-variable] 129 | struct protoent *sp_proto; | ^~~~~~~~ sn_generation.c: In function 'sp_send_packet': sn_generation.c:147:17: warning: unused variable 'sp_help' [-Wunused-variable] 147 | struct hostent *sp_help; | ^~~~~~~ sn_generation.c: In function 'sp_fix_IP_packet': sn_generation.c:205:22: error: implicit declaration of function 'in_cksum' [-Wimplicit-function-declaration] 205 | sp_help_ip->checksum=in_cksum((unsigned short *) (sp->buffer), | ^~~~~~~~ make[2]: *** [Makefile:380: sn_generation.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/sniffit-0.5/src' make[2]: Entering directory '/usr/src/RPM/BUILD/sniffit-0.5/src' i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -c -o sn_resolv.o sn_resolv.c make[2]: Leaving directory '/usr/src/RPM/BUILD/sniffit-0.5/src' make[2]: Entering directory '/usr/src/RPM/BUILD/sniffit-0.5/src' i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -c -o sn_interface.o sn_interface.c sn_interface.c: In function 'mask_status': sn_interface.c:195:3: error: 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: error: 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 'menu_line': sn_interface.c:365:5: warning: unused variable 'i' [-Wunused-variable] 365 | int i; | ^ sn_interface.c: In function 'input_field': sn_interface.c:381:13: warning: unused variable 'i' [-Wunused-variable] 381 | int i; | ^ sn_interface.c: In function 'interaction': sn_interface.c:470:25: error: 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); | ^ sn_interface.c: In function 'run_interface': sn_interface.c:690:5: warning: unused variable 'i' [-Wunused-variable] 690 | int i,key_hit; | ^ make[2]: *** [Makefile:380: sn_interface.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/sniffit-0.5/src' make[2]: Entering directory '/usr/src/RPM/BUILD/sniffit-0.5/src' i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -c -o sn_cfgfile.o sn_cfgfile.c sn_cfgfile.c: In function 'clean_string': sn_cfgfile.c:131:14: error: 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: error: 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: error: 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' sn_cfgfile.c: In function 'make_nr_dot': sn_cfgfile.c:175:6: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 175 | digit=(char *)&hostnr; | ^ sn_cfgfile.c: In function 'interprete_line': sn_cfgfile.c:239:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 239 | strcpy(help->host,dot_notation); | ~~~~^~~~~~ | | | unsigned char * In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from sn_cfgfile.c:5: /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:255:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 255 | strcpy(help->host, clean_string(strtok(NULL," "))); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:270:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 270 | strcpy(help->host,dot_notation); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:286:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 286 | strcpy(help->host, clean_string(strtok(NULL," "))); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:302:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 302 | strcpy(help->host,dot_notation); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:303:27: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 303 | strcpy(helpp->host,dot_notation); | ~~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:326:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 326 | strcpy(help->host, field); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:327:27: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 327 | strcpy(helpp->host, field); | ~~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:348:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 348 | strcpy(help->host,dot_notation); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:364:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 364 | strcpy(help->host, clean_string(strtok(NULL," "))); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:379:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 379 | strcpy(help->host,dot_notation); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:395:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 395 | strcpy(help->host, clean_string(strtok(NULL," "))); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:411:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 411 | strcpy(help->host,dot_notation); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:412:27: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 412 | strcpy(helpp->host,dot_notation); | ~~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:434:26: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 434 | strcpy(help->host, field); | ~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:435:27: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 435 | strcpy(helpp->host, field); | ~~~~~^~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:77:1: note: expected 'char *' but argument is of type 'unsigned char *' 77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ sn_cfgfile.c:214:8: warning: unused variable 'i' [-Wunused-variable] 214 | size_t i; | ^ sn_cfgfile.c: In function 'read_cfg_file': sn_cfgfile.c:452:8: warning: unused variable 'line_length' [-Wunused-variable] 452 | size_t line_length; | ^~~~~~~~~~~ sn_cfgfile.c:463:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 463 | fgets(lineptr,259,cfgfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:380: sn_cfgfile.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/sniffit-0.5/src' make[2]: Entering directory '/usr/src/RPM/BUILD/sniffit-0.5/src' i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -c -o sniffit.o sniffit.c 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: error: 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)); | ^ dns_plugin.plug:122:25: warning: pointer targets in passing argument 1 of 'PL_DNS_decode' differ in signedness [-Wpointer-sign] 122 | dec_pos=PL_DNS_decode(dns_p,dec_pos,NULL,0); | ^~~~~ | | | unsigned char * dns_plugin.plug:30:25: note: expected 'char *' but argument is of type 'unsigned char *' 30 | int PL_DNS_decode(char *buf, int start_pos,char *string, int start_string) | ~~~~~~^~~ dns_plugin.plug:142:25: warning: pointer targets in passing argument 1 of 'PL_DNS_decode' differ in signedness [-Wpointer-sign] 142 | dec_pos=PL_DNS_decode(dns_p,dec_pos,NULL,0); | ^~~~~ | | | unsigned char * dns_plugin.plug:30:25: note: expected 'char *' but argument is of type 'unsigned char *' 30 | int PL_DNS_decode(char *buf, int start_pos,char *string, int start_string) | ~~~~~~^~~ dns_plugin.plug:77:6: warning: unused variable 'pos' [-Wunused-variable] 77 | long pos; | ^~~ dns_plugin.plug:76:47: warning: variable 'len' set but not used [-Wunused-but-set-variable] 76 | int i, j, dec_pos, answers, count, udp_start, len; | ^~~ dns_plugin.plug:76:29: warning: unused variable 'count' [-Wunused-variable] 76 | int i, j, dec_pos, answers, count, udp_start, len; | ^~~~~ sniffit.c: In function 'strlower': sniffit.c:127:22: error: 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: error: 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: error: 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 'sb_shift': sniffit.c:405:10: warning: unused variable 'j' [-Wunused-variable] 405 | int i, j; | ^ sniffit.c: In function 'check_packet': sniffit.c:546:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 546 | if (MODE == DEST && ipaddr != iphead.destination /* -t */ | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:551:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 550 | MODE == BOTH && ipaddr != iphead.destination /* -b */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 551 | && ipaddr != iphead.source | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:565:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 565 | if (MODE == DEST && (strncmp (wc_dest, IP, n_s) != 0) /* -t */ | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:570:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 569 | MODE == BOTH && (strncmp (wc_dest, IP, n_s) != 0) /* -b */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 570 | && (strncmp (wc_so, IP, n_s) != 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:602:46: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 602 | if (strcmp (wc_so, str_IP) == 0) | ^~~~~~ | | | unsigned char * In file included from sniffit.c:10: /usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ sniffit.c:611:63: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 611 | if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sniffit.c:611:47: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 611 | if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:159:51: note: expected 'const char *' but argument is of type 'unsigned char *' 159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ sniffit.c:641:48: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 641 | if (strcmp (wc_dest, str_IP) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ sniffit.c:650:65: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 650 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sniffit.c:650:49: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 650 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:159:51: note: expected 'const char *' but argument is of type 'unsigned char *' 159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ sniffit.c:680:46: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 680 | if (strcmp (wc_so, str_IP) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ sniffit.c:689:46: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 689 | if (strcmp (wc_so, str_IP) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ sniffit.c:720:65: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 720 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sniffit.c:720:49: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 720 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:159:51: note: expected 'const char *' but argument is of type 'unsigned char *' 159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ sniffit.c:729:65: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 729 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sniffit.c:729:49: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 729 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:159:51: note: expected 'const char *' but argument is of type 'unsigned char *' 159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ sniffit.c:842:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 842 | if (MODE == DEST && ipaddr != iphead.destination /* -t */ | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:847:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 846 | MODE == BOTH && ipaddr != iphead.destination /* -b */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 847 | && ipaddr != iphead.source | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:858:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 858 | if (MODE == DEST && (strncmp (wc_dest, IP, n_s) != 0) /* -t */ | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:863:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 862 | MODE == BOTH && (strncmp (wc_dest, IP, n_s) != 0) /* -b */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 863 | && (strncmp (wc_so, IP, n_s) != 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:893:46: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 893 | if (strcmp (wc_so, str_IP) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ sniffit.c:904:63: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 904 | if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sniffit.c:904:47: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 904 | if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:159:51: note: expected 'const char *' but argument is of type 'unsigned char *' 159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ sniffit.c:934:48: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 934 | if (strcmp (wc_dest, str_IP) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ sniffit.c:945:65: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 945 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sniffit.c:945:49: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 945 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:159:51: note: expected 'const char *' but argument is of type 'unsigned char *' 159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ sniffit.c:973:46: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 973 | if (strcmp (wc_so, str_IP) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ sniffit.c:982:46: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 982 | if (strcmp (wc_so, str_IP) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ sniffit.c:1010:65: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 1010 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sniffit.c:1010:49: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 1010 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:159:51: note: expected 'const char *' but argument is of type 'unsigned char *' 159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ sniffit.c:1019:65: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 1019 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ sniffit.c:1019:49: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 1019 | if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) | ^~~~~~ | | | unsigned char * /usr/include/string.h:159:51: note: expected 'const char *' but argument is of type 'unsigned char *' 159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ sniffit.c: In function 'packethandler': sniffit.c:1107:43: error: 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: error: 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: error: 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: error: 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: error: 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: error: 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: error: 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: error: 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:157:22: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] 157 | strncpy(workbuf1,data,len); | ^~~~ | | | const unsigned char * In file included from /usr/include/features.h:503, from /usr/include/unistd.h:25, from sniffit.c:6: /usr/include/bits/string_fortified.h:92:1: note: expected 'const char *' but argument is of type 'const unsigned char *' 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, | ^~~~~ sn_analyse.c:200:8: error: 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: error: 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: error: 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: error: 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; | ^ sniffit.c:1081:26: warning: unused variable 'position' [-Wunused-variable] 1081 | unsigned long datalen, position, total_length, i, n; | ^~~~~~~~ sniffit.c:1081:17: warning: unused variable 'datalen' [-Wunused-variable] 1081 | unsigned long datalen, position, total_length, i, n; | ^~~~~~~ In file included from sniffit.c:1458: sn_conn_desc.c: In function 'check_mask': sn_conn_desc.c:24:12: error: 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: error: 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: error: 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: error: 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: error: 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: error: 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:1758:36: warning: pointer targets in passing argument 1 of 'pcap_open_offline' differ in signedness [-Wpointer-sign] 1758 | if((dev_desc=pcap_open_offline(DUMPfile,ebuf))==NULL) | ^~~~~~~~ | | | unsigned char * /usr/include/pcap/pcap.h:527:36: note: expected 'const char *' but argument is of type 'unsigned char *' 527 | PCAP_API pcap_t *pcap_open_offline(const char *, char *); | ^~~~~~~~~~~~ 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:1793:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1793 | if(!(DUMPMODE&16)) | ^ 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 sniffit.c:1867:18: error: assignment to 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 1867 | DATAlength = timing + sizeof (int); | ^ sniffit.c:1868:23: error: assignment to 'char *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 1868 | connection_data = DATAlength + sizeof (int); | ^ sniffit.c:1869:18: error: assignment to 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 1869 | LISTlength = connection_data + LENGTH_OF_INTERPROC_DATA; | ^ sniffit.c:1870:12: error: assignment to 'struct snif_mask *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 1870 | mask = LISTlength + sizeof (int); | ^ sniffit.c:1871:26: error: 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: error: 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: error: 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: error: 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: error: 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: error: 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:1880:16: warning: pointer targets in assignment from 'unsigned int *' to 'int *' differ in signedness [-Wpointer-sign] 1880 | DESC_LEN = IP_nr_of_packets + sizeof (int); | ^ sniffit.c:1894:32: error: 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:1921:47: warning: pointer targets in passing argument 2 of 'pcap_dump_open' differ in signedness [-Wpointer-sign] 1921 | if((dev_dump=pcap_dump_open(dev_desc, DUMPfile))==NULL) | ^~~~~~~~ | | | unsigned char * /usr/include/pcap/pcap.h:696:50: note: expected 'const char *' but argument is of type 'unsigned char *' 696 | PCAP_API pcap_dumper_t *pcap_dump_open(pcap_t *, const char *); | ^~~~~~~~~~~~ sniffit.c:1927:41: error: 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 *); | ^~~~~~~~~~~~ sniffit.c:1513:30: warning: unused variable 'buffer' [-Wunused-variable] 1513 | char *dev, forced_dev[20], buffer[SNAPLEN]; | ^~~~~~ sniffit.c: In function 'packethandler': sniffit.c:1374:1: warning: control reaches end of non-void function [-Wreturn-type] 1374 | } | ^ sniffit.c: In function 'interactive_packethandler': sniffit.c:1506:1: warning: control reaches end of non-void function [-Wreturn-type] 1506 | } | ^ sniffit.c: At top level: sniffit.c:46:13: warning: 'Copyright' defined but not used [-Wunused-variable] 46 | static char Copyright[] = | ^~~~~~~~~ make[2]: *** [Makefile:380: sniffit.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/sniffit-0.5/src' make[1]: *** [Makefile:483: all-recursive] Error 1 make: *** [Makefile:338: all] Error 2 error: Bad exit status from /usr/src/tmp/rpm-tmp.94539 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.94539 (%build) Command exited with non-zero status 1 4.61user 1.74system 0:08.14elapsed 78%CPU (0avgtext+0avgdata 20480maxresident)k 0inputs+0outputs (0major+486105minor)pagefaults 0swaps hsh-rebuild: rebuild of `sniffit-0.5-alt1.src.rpm' failed. Command exited with non-zero status 1 5.37user 2.22system 0:19.80elapsed 38%CPU (0avgtext+0avgdata 131500maxresident)k 216inputs+0outputs (0major+182483minor)pagefaults 0swaps