Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 876866 Details for
Bug 919192
net-analyzer/sniffit-0.5-r1 - sn_packets.c: error: passing argument 1 of in_cksum from incompatible pointer type [-Wincompatible-pointer-types]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-analyzer:sniffit-0.5-r1:20231204-171435.log
net-analyzer:sniffit-0.5-r1:20231204-171435.log (text/plain), 10.95 KB, created by
Toralf Förster
on 2023-12-04 19:03:16 UTC
(
hide
)
Description:
net-analyzer:sniffit-0.5-r1:20231204-171435.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2023-12-04 19:03:16 UTC
Size:
10.95 KB
patch
obsolete
> * Package: net-analyzer/sniffit-0.5-r1:0 > * Repository: gentoo > * Maintainer: netmon@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux > * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox > >>>> Unpacking source... >>>> Unpacking sniffit-0.5.tar.gz to /var/tmp/portage/net-analyzer/sniffit-0.5-r1/work >>>> Source unpacked in /var/tmp/portage/net-analyzer/sniffit-0.5-r1/work >>>> Preparing source in /var/tmp/portage/net-analyzer/sniffit-0.5-r1/work/sniffit-sniffit-0.5 ... > * Applying sniffit-0.4.0-tinfo.patch ... > [ ok ] > * Applying sniffit-0.5.0-implicit-func-decl.patch ... > [ ok ] > * Running eautoreconf in '/var/tmp/portage/net-analyzer/sniffit-0.5-r1/work/sniffit-sniffit-0.5' ... > * Running 'aclocal --system-acdir=/var/tmp/portage/net-analyzer/sniffit-0.5-r1/temp/aclocal' ... > [ ok ] > * Running 'autoconf --force' ... > [ ok ] > * Running 'autoheader' ... > [ ok ] > * Running 'automake --add-missing --copy --foreign --force-missing' ... > [ ok ] > * Running elibtoolize in: sniffit-sniffit-0.5/ >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/net-analyzer/sniffit-0.5-r1/work/sniffit-sniffit-0.5 ... > * econf: updating sniffit-sniffit-0.5/config.guess with /usr/share/gnuconfig/config.guess > * econf: updating sniffit-sniffit-0.5/config.sub with /usr/share/gnuconfig/config.sub >./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/sniffit-0.5-r1 --htmldir=/usr/share/doc/sniffit-0.5-r1/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 the compiler supports GNU C... yes >checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes >checking for x86_64-pc-linux-gnu-gcc option to enable C11 features... 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 for stdio.h... yes >checking for stdlib.h... yes >checking for string.h... yes >checking for inttypes.h... yes >checking for stdint.h... yes >checking for strings.h... yes >checking for sys/stat.h... yes >checking for sys/types.h... yes >checking for unistd.h... yes >checking for vfork.h... no >checking for arpa/inet.h... yes >checking for fcntl.h... yes >checking for netdb.h... yes >checking for netinet/in.h... yes >checking for stdlib.h... (cached) yes >checking for string.h... (cached) yes >checking for sys/socket.h... yes >checking for sys/time.h... yes >checking for termios.h... yes >checking for unistd.h... (cached) yes >checking for ncurses.h... yes >checking for pcap.h... yes >checking for size_t... yes >checking for pid_t... yes >checking for fork... yes >checking for vfork... yes >checking for working fork... yes >checking for working vfork... (cached) yes >checking build system type... x86_64-pc-linux-gnu >checking host system type... x86_64-pc-linux-gnu >checking for GNU libc compatible malloc... yes >checking for GNU libc compatible realloc... yes >checking for alarm... yes >checking for bzero... yes >checking for gethostbyname... yes >checking for socket... yes >checking for strchr... yes >checking for strdup... yes >checking for strstr... yes >checking for shmget... yes >checking for atexit... yes >checking size of unsigned short int... 2 >checking size of unsigned long int... 8 >unsigned long is NOT 4 bytes... hmmm... >checking size of unsigned int... 4 >checking for a BSD-compatible install... /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c >checking whether build environment is sane... yes >checking for a race-free mkdir -p... /bin/mkdir -p >checking for gawk... gawk >checking whether make sets $(MAKE)... yes >checking whether make supports the include directive... yes (GNU style) >checking whether make supports nested variables... yes >checking dependency style of 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.5-r1/work/sniffit-sniffit-0.5 ... >make -j4 >make all-recursive >make[1]: Entering directory '/var/tmp/portage/net-analyzer/sniffit-0.5-r1/work/sniffit-sniffit-0.5' >Making all in src >make[2]: Entering directory '/var/tmp/portage/net-analyzer/sniffit-0.5-r1/work/sniffit-sniffit-0.5/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-diagnostics-color -c -o sn_packets.o sn_packets.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-diagnostics-color -c -o sn_generation.o sn_generation.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-diagnostics-color -c -o sn_interface.o sn_interface.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-diagnostics-color -c -o sn_cfgfile.o sn_cfgfile.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) > | ~~~~~~~~~~~~~~~~^~~~ >make[2]: *** [Makefile:380: sn_packets.o] Error 1 >make[2]: *** Waiting for unfinished jobs.... >sn_cfgfile.c: In function âread_cfg_fileâ: >sn_cfgfile.c:464:9: warning: ignoring return value of âfgetsâ declared with attribute âwarn_unused_resultâ [-Wunused-result] > 464 | fgets(lineptr,259,cfgfile); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >sn_interface.c: In function âmask_statusâ: >sn_interface.c:196:3: error: assignment to âunsigned char *â from incompatible pointer type â_32_bit *â {aka âunsigned int *â} [-Wincompatible-pointer-types] > 196 | ad=&(mask->source_ip); > | ^ >sn_interface.c:202:3: error: assignment to âunsigned char *â from incompatible pointer type â_32_bit *â {aka âunsigned int *â} [-Wincompatible-pointer-types] > 202 | ad=&(mask->destination_ip); > | ^ >sn_interface.c: In function âpacket_info_handlerâ: >sn_interface.c:492:63: warning: ' ' flag used with â%uâ gnu_printf format [-Wformat=] > 492 | wprintw(packets_box.work_window,0,1,"IP packets/sec. : % 12u",(*IP_nr_of_packets)/INFO_TIMER); > | ^ > >sn_interface.c:493:63: warning: ' ' flag used with â%uâ gnu_printf format [-Wformat=] > 493 | wprintw(packets_box.work_window,1,1,"TCP packets/sec. : % 12u",(*TCP_nr_of_packets)/INFO_TIMER); > | ^ > >sn_interface.c:494:63: warning: ' ' flag used with â%uâ gnu_printf format [-Wformat=] > 494 | wprintw(packets_box.work_window,2,1,"ICMP packets/sec.: % 12u",(*ICMP_nr_of_packets)/INFO_TIMER); > | ^ > >sn_interface.c:495:63: warning: ' ' flag used with â%uâ gnu_printf format [-Wformat=] > 495 | wprintw(packets_box.work_window,3,1,"UDP packets/sec. : % 12u",(*UDP_nr_of_packets)/INFO_TIMER); > | ^ > >make[2]: *** [Makefile:380: sn_interface.o] Error 1 >make[2]: Leaving directory '/var/tmp/portage/net-analyzer/sniffit-0.5-r1/work/sniffit-sniffit-0.5/src' >make[1]: *** [Makefile:483: all-recursive] Error 1 >make[1]: Leaving directory '/var/tmp/portage/net-analyzer/sniffit-0.5-r1/work/sniffit-sniffit-0.5' >make: *** [Makefile:338: all] Error 2 > * ERROR: net-analyzer/sniffit-0.5-r1::gentoo failed (compile phase): > * emake failed > * > * If you need support, post the output of `emerge --info '=net-analyzer/sniffit-0.5-r1::gentoo'`, > * the complete build log and the output of `emerge -pqv '=net-analyzer/sniffit-0.5-r1::gentoo'`. > * The complete build log is located at '/var/log/portage/net-analyzer:sniffit-0.5-r1:20231204-171435.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/sniffit-0.5-r1/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/sniffit-0.5-r1/temp/environment'. > * Working directory: '/var/tmp/portage/net-analyzer/sniffit-0.5-r1/work/sniffit-sniffit-0.5' > * S: '/var/tmp/portage/net-analyzer/sniffit-0.5-r1/work/sniffit-sniffit-0.5' >
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 919192
:
876860
|
876861
|
876862
|
876863
|
876864
|
876865
| 876866 |
876867
|
876868