Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 608708 Details for
Bug 707406
net-analyzer/sniffit-0.4.0 : fails to build with -fno-common or gcc-10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-analyzer:sniffit-0.4.0:20200130-002909.log
net-analyzer:sniffit-0.4.0:20200130-002909.log (text/plain), 31.95 KB, created by
Toralf Förster
on 2020-01-30 19:05:58 UTC
(
hide
)
Description:
net-analyzer:sniffit-0.4.0:20200130-002909.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2020-01-30 19:05:58 UTC
Size:
31.95 KB
patch
obsolete
> * Package: net-analyzer/sniffit-0.4.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.4.0.tar.gz to /var/tmp/portage/net-analyzer/sniffit-0.4.0/work >>>> Source unpacked in /var/tmp/portage/net-analyzer/sniffit-0.4.0/work >>>> Preparing source in /var/tmp/portage/net-analyzer/sniffit-0.4.0/work/sniffit-sniffit-0.4.0 ... > * Applying sniffit-0.4.0-tinfo.patch ... > [ ok ] > * Running eautoreconf in '/var/tmp/portage/net-analyzer/sniffit-0.4.0/work/sniffit-sniffit-0.4.0' ... > * Running aclocal ... > [ ok ] > * Running autoconf --force ... > [ ok ] > * Running autoheader ... > [ ok ] > * Running automake --add-missing --copy --foreign --force-missing ... > [ ok ] > * Running elibtoolize in: sniffit-sniffit-0.4.0/ >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/net-analyzer/sniffit-0.4.0/work/sniffit-sniffit-0.4.0 ... >./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.4.0 --htmldir=/usr/share/doc/sniffit-0.4.0/html --libdir=/usr/lib64 >checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc >checking whether the C compiler works... yes >checking for C compiler default output file name... a.out >checking for suffix of executables... >checking whether we are cross compiling... no >checking for suffix of object files... o >checking whether we are using the GNU C compiler... yes >checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes >checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed >checking whether x86_64-pc-linux-gnu-gcc 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 how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E >checking for grep that handles long lines and -e... /bin/grep >checking for egrep... /bin/grep -E >checking for ANSI C header files... yes >checking for sys/types.h... yes >checking for sys/stat.h... yes >checking for stdlib.h... yes >checking for string.h... yes >checking for memory.h... yes >checking for strings.h... yes >checking for inttypes.h... yes >checking for stdint.h... yes >checking for unistd.h... yes >checking arpa/inet.h usability... yes >checking arpa/inet.h presence... yes >checking for arpa/inet.h... yes >checking fcntl.h usability... yes >checking fcntl.h presence... yes >checking for fcntl.h... yes >checking netdb.h usability... yes >checking netdb.h presence... yes >checking for netdb.h... yes >checking netinet/in.h usability... yes >checking netinet/in.h presence... yes >checking for netinet/in.h... yes >checking for stdlib.h... (cached) yes >checking for string.h... (cached) yes >checking sys/socket.h usability... yes >checking sys/socket.h presence... yes >checking for sys/socket.h... yes >checking sys/time.h usability... yes >checking sys/time.h presence... yes >checking for sys/time.h... yes >checking termios.h usability... yes >checking termios.h presence... yes >checking for termios.h... yes >checking for unistd.h... (cached) yes >checking ncurses.h usability... yes >checking ncurses.h presence... yes >checking for ncurses.h... yes >checking pcap.h usability... yes >checking pcap.h presence... yes >checking for pcap.h... yes >checking for size_t... yes >checking for pid_t... yes >checking vfork.h usability... no >checking vfork.h presence... no >checking for vfork.h... no >checking for fork... yes >checking for vfork... yes >checking for working fork... yes >checking for working vfork... (cached) yes >checking for stdlib.h... (cached) yes >checking for GNU libc compatible malloc... yes >checking for stdlib.h... (cached) 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.6/ebuild-helpers/xattr/install -c >checking whether build environment is sane... yes >checking for a thread-safe 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 x86_64-pc-linux-gnu-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 >>>> Source configured. >>>> Compiling source in /var/tmp/portage/net-analyzer/sniffit-0.4.0/work/sniffit-sniffit-0.4.0 ... >make -j1 >make all-recursive >make[1]: Entering directory '/var/tmp/portage/net-analyzer/sniffit-0.4.0/work/sniffit-sniffit-0.4.0' >Making all in src >make[2]: Entering directory '/var/tmp/portage/net-analyzer/sniffit-0.4.0/work/sniffit-sniffit-0.4.0/src' >x86_64-pc-linux-gnu-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 -O2 -pipe -march=native -fno-common -c -o sn_packets.o sn_packets.c >sn_packets.c: In function âunwrap_packetâ: >sn_packets.c:68:18: 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) > | ~~~~~~~~~~~~~~~~^~~~ >x86_64-pc-linux-gnu-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 -O2 -pipe -march=native -fno-common -c -o sn_generation.o sn_generation.c >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_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), > | ^~~~~~~~ >x86_64-pc-linux-gnu-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 -O2 -pipe -march=native -fno-common -c -o sn_interface.o sn_interface.c >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:8: warning: implicit declaration of function âisprintâ [-Wimplicit-function-declaration] > 470 | isprint(*(connection_data+i))? > | ^~~~~~~ >x86_64-pc-linux-gnu-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 -O2 -pipe -march=native -fno-common -c -o sn_cfgfile.o sn_cfgfile.c >sn_cfgfile.c: In function âclean_stringâ: >sn_cfgfile.c:131:7: warning: implicit declaration of function âisalnumâ [-Wimplicit-function-declaration] > 131 | if( (isalnum(string[i]))||(string[i]=='.') ) > | ^~~~~~~ >sn_cfgfile.c: In function âclean_filenameâ: >sn_cfgfile.c:155:8: warning: implicit declaration of function âiscntrlâ [-Wimplicit-function-declaration] > 155 | if( !(iscntrl(string[i])) && !(isspace(string[i])) ) > | ^~~~~~~ >sn_cfgfile.c:155:33: warning: implicit declaration of function âisspaceâ [-Wimplicit-function-declaration] > 155 | if( !(iscntrl(string[i])) && !(isspace(string[i])) ) > | ^~~~~~~ >sn_cfgfile.c: In function âread_cfg_fileâ: >sn_cfgfile.c:463:2: warning: ignoring return value of âfgetsâ, declared with attribute warn_unused_result [-Wunused-result] > 463 | fgets(lineptr,259,cfgfile); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >x86_64-pc-linux-gnu-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 -O2 -pipe -march=native -fno-common -c -o sn_logfile.o sn_logfile.c >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 * {aka struct _IO_FILE *} >In file included from sn_logfile.c:9: >/usr/include/sys/stat.h:293:24: note: expected âintâ but argument is of type âFILE *â {aka âstruct _IO_FILE *â} > 293 | extern int fchmod (int __fd, __mode_t __mode) __THROW; > | ~~~~^~~~ >x86_64-pc-linux-gnu-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 -O2 -pipe -march=native -fno-common -c -o sn_resolv.o sn_resolv.c >x86_64-pc-linux-gnu-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 -O2 -pipe -march=native -fno-common -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: 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:127:48: warning: implicit declaration of function âtolowerâ [-Wimplicit-function-declaration] > 127 | *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); > | ^~~~~~~ >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: 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:517:35: note: expected âconst struct pcap_pkthdr *â but argument is of type âconst struct packetheader *â > 517 | 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:24: 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: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] > 1189 | return 1; > | ^ >sniffit.c:1193: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] > 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:9: 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:13: note: expected âchar *â but argument is of type âconst unsigned char *â > 413 | char *data, int len) > | ~~~~~~^~~~ >In file included from sniffit.c:1270: >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:12: note: expected âchar *â but argument is of type âconst unsigned char *â > 358 | char *data, int len, int type) > | ~~~~~~^~~~ >In file included from sniffit.c:1270: >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:12: note: expected âchar *â but argument is of type âconst unsigned char *â > 358 | char *data, int len, int type) > | ~~~~~~^~~~ >In file included from sniffit.c:1270: >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:13: note: expected âchar *â but argument is of type âconst unsigned char *â > 413 | char *data, int len) > | ~~~~~~^~~~ >In file included from sniffit.c:1270: >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: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:27:15: warning: implicit declaration of function âisspaceâ [-Wimplicit-function-declaration] > 27 | {if( (isspace(data[i]) && data[i]!=' ')&&(j<(*DESC_LEN)-1) ) > | ^~~~~~~ >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) >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:1524:20: warning: passing argument 2 of âsignalâ from incompatible pointer type [-Wincompatible-pointer-types] > 1524 | signal (SIGTERM, my_exit); > | ^~~~~~~ > | | > | 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:1773:5: warning: âpcap_lookupdevâ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] > 1773 | if((dev = pcap_lookupdev (ebuf)) == NULL) > | ^~ >In file included from /usr/include/pcap.h:43, > from sniffit.c:24: >/usr/include/pcap/pcap.h:328:16: note: declared here > 328 | 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 >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:11: 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 *)} >In file included from /usr/include/pcap.h:43, > from sniffit.c:24: >/usr/include/pcap/pcap.h:442:39: 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 *)â} > 442 | 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 *)} >In file included from /usr/include/pcap.h:43, > from sniffit.c:24: >/usr/include/pcap/pcap.h:442:39: 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 *)â} > 442 | PCAP_API int pcap_loop(pcap_t *, int, pcap_handler, u_char *); > | ^~~~~~~~~~~~ >x86_64-pc-linux-gnu-gcc -lncurses -lpcap -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -o sniffit sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o sn_resolv.o sniffit.o -lpcap -ltinfo -lncurses >/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sniffit.o:(.bss+0x180): multiple definition of `IP_nr_of_packets'; sn_interface.o:(.bss+0x0): first defined here >collect2: error: ld returned 1 exit status >make[2]: *** [Makefile:345: sniffit] Error 1 >make[2]: Leaving directory '/var/tmp/portage/net-analyzer/sniffit-0.4.0/work/sniffit-sniffit-0.4.0/src' >make[1]: *** [Makefile:474: all-recursive] Error 1 >make[1]: Leaving directory '/var/tmp/portage/net-analyzer/sniffit-0.4.0/work/sniffit-sniffit-0.4.0' >make: *** [Makefile:329: all] Error 2 > * ERROR: net-analyzer/sniffit-0.4.0::gentoo failed (compile phase): > * emake failed > * > * If you need support, post the output of `emerge --info '=net-analyzer/sniffit-0.4.0::gentoo'`, > * the complete build log and the output of `emerge -pqv '=net-analyzer/sniffit-0.4.0::gentoo'`. > * The complete build log is located at '/var/log/portage/net-analyzer:sniffit-0.4.0:20200130-002909.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/sniffit-0.4.0/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/sniffit-0.4.0/temp/environment'. > * Working directory: '/var/tmp/portage/net-analyzer/sniffit-0.4.0/work/sniffit-sniffit-0.4.0' > * S: '/var/tmp/portage/net-analyzer/sniffit-0.4.0/work/sniffit-sniffit-0.4.0'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 707406
:
608698
|
608700
|
608702
|
608704
|
608706
| 608708 |
608710