* Package: net-analyzer/thcrut-1.2.5-r1 * 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 thcrut-1.2.5.tar.gz to /var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work >>> Source unpacked in /var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work >>> Preparing source in /var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work/thcrut-1.2.5 ... * Applying thcrut-1.2.5-libnet.patch ... [ ok ] * Applying thcrut-1.2.5-configure.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work/thcrut-1.2.5' ... * Running aclocal ... [ ok ] * This package has a configure.in file which has long been deprecated. Please * update it to use configure.ac instead as newer versions of autotools will die * when it finds this file. See https://bugs.gentoo.org/426262 for details. * Running autoconf --force ... [ ok ] * Running autoheader ... [ ok ] * Running automake --add-missing --copy --foreign --force-missing ... [ ok ] * Running elibtoolize in: thcrut-1.2.5/ * Running elibtoolize in: thcrut-1.2.5/config/ * Applying ltmain/1.5 patch ... * Applying sed/1.5.6 patch ... * Applying as-needed/1.5 patch ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work/thcrut-1.2.5 ... * econf: updating thcrut-1.2.5/config/config.sub with /usr/share/gnuconfig/config.sub * econf: updating thcrut-1.2.5/config/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64 Begining autoconfiguration process for thcrut-1.2.5... checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu 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 nested variables... yes 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 whether make supports the include directive... yes (GNU style) checking dependency style of x86_64-pc-linux-gnu-gcc... none checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking for an ANSI C-conforming const... yes checking for socket in -lsocket... no checking for gethostbyname in -lnsl... 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/wait.h that is POSIX.1 compatible... 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 sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for string.h... (cached) yes checking for an ANSI C-conforming const... (cached) yes checking for pid_t... yes checking whether time.h and sys/time.h may both be included... yes checking for working memcmp... yes checking return type of signal handlers... void checking for size_t... yes checking for uid_t in sys/types.h... yes checking for gettimeofday... yes checking for memcpy... yes checking for strchr... yes checking whether the NSA is spying on you... "err, why not" checking whether to enable leeto mode... nope checking for pcap_open_live in -lpcap... yes checking for libnet_init_packet in -lnet-1.0... yes checking for pcre_compile in -lpcre... yes 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: line 6696: ./pcre-3.9/pcre-config: No such file or directory ./configure: line 6697: ./pcre-3.9/pcre-config: No such file or directory THCrut has been configured with the following options: User binaries: /usr/bin Data directory: /usr/share/thcrut Host: x86_64-pc-linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compiler flags: -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall Preprocessor flags: -I/usr/include -I/usr/include/pcap -I/usr/include/pcap Linker flags: -L/usr/lib -L/usr/local/lib -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 Libraries: -L/usr/lib64 -lnet -L/usr/lib64 -lpcre -lnet-1.0 -lpcap -lnsl _ _( (~\ _ _ / ( \> > \ -/~/ / ~\ :; \ _ > /(~\/ || | | /\ ;\ |l _____ |; ( \/ > > --------. _\\)\)\)/ ;;; `8o __-~ ~\ d| \ // * HELP * | ///(())(__/~;;\ "88p;. -. _\_;.oP (_._/ / * HELP * | (((__ __ \\ \ `>,% (\ (\./)8" ;:' i | )))--`.'-- (( ;,8 \ ,;%%%: ./V^^^V' ;. ;. I'M JUST | ((\ | /)) .,88 `: ..,,;;;;,-::::::'_::\ ||\ ;[8: ; STUPID ! )| ~-~ |(|(888; ..``'::::8888oooooo. :\`^^^/,,~--._ |88:: | WHITEHAT.|_____-===- /| \8;; ``:. oo.8888888888:`((( o.ooo8888Oo;:;:' | |. |_~-___-~_| `-\. ` `o`88888888b` )) 888b88888P""' ; PLEASE | ; ~~~~;~~ "`--_`. b`888888888;(.,"888b888" ..::;-' DONT HURT | ; ; ~"-.... b`8888888:::::.`8888. .:;;;'' MEEEEEE! | ; ; `:::. `:::OOO:::::::.`OO' ;;;'' | : ; `. "``::::::'' .' * HELP * | ; `. \_ / * HELP * | ; ; +: ~~-- `:' -'; __________! `: : .::/ -Tua Xiong ; ;;+_ :::. :..;;; -=[ (C) THE HACKERS CHOICE - Estd. 1995 ]=- -=[ www.ircsnet.net /j #THC ]=- ------=[ WHQ: http://www.thc.org ]=- - -=[ Enjoy your enemy... ]=---------- Configuration complete. Now type: make all install; thcrut -h >>> Source configured. >>> Compiling source in /var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work/thcrut-1.2.5 ... make -j1 make all-recursive make[1]: Entering directory '/var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work/thcrut-1.2.5' Making all in src make[2]: Entering directory '/var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work/thcrut-1.2.5/src' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o nvt.o nvt.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o icmp_main.o icmp_main.c icmp_main.c: In function ‘sendicmp’: icmp_main.c:226:21: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness [-Wpointer-sign] 226 | libnet_do_checksum(data, IPPROTO_ICMP, len - LIBNET_IPV4_H); | ^~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from icmp_main.c:14: /usr/include/libnet/libnet-1.0-functions.h:104:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 104 | u_char *, /* Pointer to the packet buffer */ | ^~~~~~~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o arp_main.o arp_main.c arp_main.c: In function ‘do_getopt’: arp_main.c:124:15: warning: pointer targets in passing argument 1 of ‘macstr2mac’ differ in signedness [-Wpointer-sign] 124 | macstr2mac(srcmac, optarg); | ^~~~~~ | | | char * In file included from arp_main.c:24: network_raw.h:20:32: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 20 | void macstr2mac(unsigned char *dst, char *str); | ~~~~~~~~~~~~~~~^~~ arp_main.c: In function ‘do_arp’: arp_main.c:153:55: warning: pointer targets in passing argument 3 of ‘libnet_write_link_layer’ differ in signedness [-Wpointer-sign] 153 | c = libnet_write_link_layer(opt.network, opt.device, packet, LIBNET_ETH_H + LIBNET_ARP_H); | ^~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from arp_main.c:18: /usr/include/libnet/libnet-1.0-functions.h:535:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 535 | u_char *, /* Pointer the u_char buf (the packet)to be written */ | ^~~~~~~~ arp_main.c: In function ‘arp_filter’: arp_main.c:213:22: warning: pointer targets in passing argument 1 of ‘mac2vendor’ differ in signedness [-Wpointer-sign] 213 | ptr = mac2vendor(arp->ar_sha); | ~~~^~~~~~~~ | | | char * In file included from arp_main.c:19: macvendor.h:20:33: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 20 | char *mac2vendor(unsigned char *tag); | ~~~~~~~~~~~~~~~^~~ In file included from arp_main.c:24: network_raw.h:8:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 8 | #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) | ~^~~~~~~~~~~~~~~~~~~~~~~ arp_main.c:219:27: note: in expansion of macro ‘int_ntoa’ 219 | printf("%-16s %.45s\n", int_ntoa(l), val2mac(arp->ar_sha)); | ^~~~~~~~ arp_main.c:219:51: warning: pointer targets in passing argument 1 of ‘val2mac’ differ in signedness [-Wpointer-sign] 219 | printf("%-16s %.45s\n", int_ntoa(l), val2mac(arp->ar_sha)); | ~~~^~~~~~~~ | | | char * In file included from arp_main.c:24: network_raw.h:19:15: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 19 | char *val2mac(unsigned char *); | ^~~~~~~~~~~~~~~ network_raw.h:8:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 8 | #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) | ~^~~~~~~~~~~~~~~~~~~~~~~ arp_main.c:221:30: note: in expansion of macro ‘int_ntoa’ 221 | printf("%-16s %s %.45s\n", int_ntoa(l), val2mac(arp->ar_sha), ptr); | ^~~~~~~~ arp_main.c:221:54: warning: pointer targets in passing argument 1 of ‘val2mac’ differ in signedness [-Wpointer-sign] 221 | printf("%-16s %s %.45s\n", int_ntoa(l), val2mac(arp->ar_sha), ptr); | ~~~^~~~~~~~ | | | char * In file included from arp_main.c:24: network_raw.h:19:15: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 19 | char *val2mac(unsigned char *); | ^~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o thcrut_libnet.o thcrut_libnet.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o dhcp_main.o dhcp_main.c dhcp_main.c: In function ‘do_dhcp’: dhcp_main.c:85:28: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness [-Wpointer-sign] 85 | libnet_do_checksum(packet + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from dhcp_main.c:14: /usr/include/libnet/libnet-1.0-functions.h:104:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 104 | u_char *, /* Pointer to the packet buffer */ | ^~~~~~~~ dhcp_main.c:86:55: warning: pointer targets in passing argument 3 of ‘libnet_write_link_layer’ differ in signedness [-Wpointer-sign] 86 | c = libnet_write_link_layer(opt.network, opt.device, packet, len); | ^~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from dhcp_main.c:14: /usr/include/libnet/libnet-1.0-functions.h:535:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 535 | u_char *, /* Pointer the u_char buf (the packet)to be written */ | ^~~~~~~~ dhcp_main.c: In function ‘init_vars’: dhcp_main.c:96:13: warning: variable ‘ip’ set but not used [-Wunused-but-set-variable] 96 | struct ip *ip; | ^~ dhcp_main.c: In function ‘init_defaults’: dhcp_main.c:140:17: warning: pointer targets in passing argument 1 of ‘MAC_gen_pseudo’ differ in signedness [-Wpointer-sign] 140 | MAC_gen_pseudo(srcmac); | ^~~~~~ | | | unsigned char * In file included from dhcp_main.c:19: network.h:14:27: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 14 | void MAC_gen_pseudo(char *buf); | ~~~~~~^~~ dhcp_main.c:143:20: warning: pointer targets in passing argument 2 of ‘init_dhcpset’ differ in signedness [-Wpointer-sign] 143 | init_dhcpset(&ds, dsbuf, DHCP_MIN_OPT); | ^~~~~ | | | char * In file included from dhcp_main.c:16: dhcp.h:201:37: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 201 | int init_dhcpset(struct _dhcpset *, unsigned char *, unsigned long len); | ^~~~~~~~~~~~~~~ dhcp_main.c: In function ‘bootp_print’: dhcp_main.c:263:16: warning: pointer targets in passing argument 1 of ‘dhcp_val2str’ differ in signedness [-Wpointer-sign] 263 | dhcp_val2str(buf, sizeof buf, dptype, dplen, ptr + c + 1); | ^~~ | | | unsigned char * In file included from dhcp_main.c:16: dhcp.h:205:20: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 205 | char *dhcp_val2str(char *, int, unsigned char, unsigned char, unsigned char *); | ^~~~~~ dhcp_main.c:263:56: warning: pointer targets in passing argument 5 of ‘dhcp_val2str’ differ in signedness [-Wpointer-sign] 263 | dhcp_val2str(buf, sizeof buf, dptype, dplen, ptr + c + 1); | ~~~~~~~~^~~ | | | char * In file included from dhcp_main.c:16: dhcp.h:205:63: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 205 | ar *dhcp_val2str(char *, int, unsigned char, unsigned char, unsigned char *); | ^~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o system.o system.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o fp.o fp.c fp.c: In function ‘FP_addline’: fp.c:473:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 473 | fprintf(stderr, "%d: parse error in regex at %d: %s\n", n_line, errptr, error); | ~^ ~~~~~~ | | | | int size_t {aka long unsigned int} | %ld fp.c:479:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 479 | fprintf(stderr, "%d: error in pcre_study: %s\n", n_line, error); | ~^ ~~~~~~ | | | | int size_t {aka long unsigned int} | %ld x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o discover_dispatch.o discover_dispatch.c discover_dispatch.c: In function ‘fp_state_exec’: discover_dispatch.c:171:11: warning: pointer targets in passing argument 1 of ‘hexdump’ differ in signedness [-Wpointer-sign] 171 | hexdump((char *)state, opt.sq.item_size); | ^~~~~~~~~~~~~ | | | char * In file included from discover_dispatch.c:20: system.h:11:29: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 11 | void hexdump(unsigned char *data, size_t len); | ~~~~~~~~~~~~~~~^~~~ discover_dispatch.c: In function ‘sendicmp’: discover_dispatch.c:757:21: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness [-Wpointer-sign] 757 | libnet_do_checksum(data, IPPROTO_ICMP, len - LIBNET_IP_H); | ^~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from discover_dispatch.c:10: /usr/include/libnet/libnet-1.0-functions.h:104:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 104 | u_char *, /* Pointer to the packet buffer */ | ^~~~~~~~ discover_dispatch.c: In function ‘dis_sendtcp’: discover_dispatch.c:799:21: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness [-Wpointer-sign] 799 | libnet_do_checksum(ip_tcp_sync, IPPROTO_TCP, LIBNET_TCP_H); | ^~~~~~~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from discover_dispatch.c:10: /usr/include/libnet/libnet-1.0-functions.h:104:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 104 | u_char *, /* Pointer to the packet buffer */ | ^~~~~~~~ discover_dispatch.c: In function ‘dis_sendfpI’: discover_dispatch.c:873:21: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness [-Wpointer-sign] 873 | libnet_do_checksum(ip_tcp_fp, IPPROTO_TCP, LIBNET_TCP_H + NMAP_FP_TONE_LEN); | ^~~~~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from discover_dispatch.c:10: /usr/include/libnet/libnet-1.0-functions.h:104:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 104 | u_char *, /* Pointer to the packet buffer */ | ^~~~~~~~ discover_dispatch.c: In function ‘fp_match_fp’: discover_dispatch.c:1145:26: warning: pointer targets in returning ‘unsigned char *’ from a function with return type ‘char *’ differ in signedness [-Wpointer-sign] 1145 | return opt.fpts.strings + fp_match->ofs_string; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from discover_dispatch.c:17: discover_dispatch.c: In function ‘dis_end’: network_raw.h:8:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 8 | #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) | ~^~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:1205:44: note: in expansion of macro ‘int_ntoa’ 1205 | printf("Host: %s %s(%u, %s) %d %s\n", int_ntoa(l), FP_class2str(NULL, class), class, int2bit(class), accuracy, ptr); | ^~~~~~~~ network_raw.h:8:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 8 | #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) | ~^~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:1207:30: note: in expansion of macro ‘int_ntoa’ 1207 | printf("Host: %s %s\n", int_ntoa(l), ptr); | ^~~~~~~~ network_raw.h:8:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 8 | #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) | ~^~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:1209:26: note: in expansion of macro ‘int_ntoa’ 1209 | printf("Host: %s\n", int_ntoa(l)); | ^~~~~~~~ network_raw.h:8:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 8 | #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) | ~^~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:1228:46: note: in expansion of macro ‘int_ntoa’ 1228 | printf("%03d NMAP: %s:%ld:\"%s\"\n", n++, int_ntoa(l), tone->class, opt.osfp.strings + tone->ofs_string); | ^~~~~~~~ network_raw.h:8:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 8 | #define int_ntoa(x) inet_ntoa(*((struct in_addr *)&(x))) | ~^~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:1246:25: note: in expansion of macro ‘int_ntoa’ 1246 | printf("Host: %s\n", int_ntoa(l)); | ^~~~~~~~ discover_dispatch.c: In function ‘dis_recvfpI’: discover_dispatch.c:1439:48: warning: pointer targets in passing argument 2 of ‘NMAP_tcpops2ops’ differ in signedness [-Wpointer-sign] 1439 | ops = NMAP_tcpops2ops(opstr, (char *)buf + 40 + ip_options, tcp_options); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | char * In file included from thcrut.h:9, from discover_dispatch.c:12: nmap_compat.h:66:59: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 66 | unsigned long NMAP_tcpops2ops(char *opstr, unsigned char *buf, size_t len); | ~~~~~~~~~~~~~~~^~~ discover_dispatch.c: In function ‘scanner_filter’: discover_dispatch.c:1476:64: warning: pointer targets in passing argument 3 of ‘dispatch_funcs[(int)state->current]’ differ in signedness [-Wpointer-sign] 1476 | dispatch_funcs[state->current]((struct _state_fp *)state, p, packet); | ^~~~~~ | | | unsigned char * discover_dispatch.c:1476:64: note: expected ‘char *’ but argument is of type ‘unsigned char *’ discover_dispatch.c: In function ‘dis_tcpread’: discover_dispatch.c:629:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 629 | write(state->sox, "\r\n", 2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:675:6: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 675 | write(state->sox, ans, alen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:683:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 683 | write(state->sox, ans, alen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c: In function ‘dis_end’: discover_dispatch.c:1196:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1196 | write(1, binout, len); | ^~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:1244:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1244 | write(1, &l, 4); | ^~~~~~~~~~~~~~~ discover_dispatch.c: In function ‘dis_end_dis’: discover_dispatch.c:479:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 479 | write(1, &binout, sizeof binout); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c: In function ‘dis_tcpread’: discover_dispatch.c:708:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 708 | res[FP_WTEST_SZ - 1] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ discover_dispatch.c:660:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 660 | ptr[FP_NTEST_SZ - 1] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ discover_dispatch.c:728:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 728 | res[FP_BTEST_SZ - 1] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ discover_dispatch.c: In function ‘dis_recv’: discover_dispatch.c:883:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 883 | #define BF2_SET(ptr, nr, val) (*((char *)ptr + nr / 4) |= ((val & 0x3) << (nr%4)*2)) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:1381:3: note: in expansion of macro ‘BF2_SET’ 1381 | BF2_SET(ptr, state->testnr, FP_TEST_CLOSED); | ^~~~~~~ discover_dispatch.c:883:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 883 | #define BF2_SET(ptr, nr, val) (*((char *)ptr + nr / 4) |= ((val & 0x3) << (nr%4)*2)) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:1374:3: note: in expansion of macro ‘BF2_SET’ 1374 | BF2_SET(ptr, state->testnr, FP_TEST_OPEN); | ^~~~~~~ discover_dispatch.c:1360:13: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 1360 | ptr[len] = '\0'; | ~~~~~~~~~^~~~~~ discover_dispatch.c:883:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 883 | #define BF2_SET(ptr, nr, val) (*((char *)ptr + nr / 4) |= ((val & 0x3) << (nr%4)*2)) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ discover_dispatch.c:1334:4: note: in expansion of macro ‘BF2_SET’ 1334 | BF2_SET(ptr, state->testnr, FP_TEST_OPEN); | ^~~~~~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o packets.o packets.c packets.c: In function ‘scanner_gen_packets’: packets.c:41:19: warning: pointer targets in passing argument 10 of ‘libnet_build_tcp’ differ in signedness [-Wpointer-sign] 41 | 0, ip_tcp_sync + LIBNET_IP_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:248:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 248 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:52:4: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness [-Wpointer-sign] 52 | ip_tcp_sync); | ^~~~~~~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:411:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 411 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:54:21: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness [-Wpointer-sign] 54 | libnet_do_checksum(ip_tcp_sync, IPPROTO_TCP, LIBNET_TCP_H); | ^~~~~~~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:104:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 104 | u_char *, /* Pointer to the packet buffer */ | ^~~~~~~~ packets.c:65:17: warning: pointer targets in passing argument 10 of ‘libnet_build_tcp’ differ in signedness [-Wpointer-sign] 65 | 0, ip_tcp_fp + LIBNET_IP_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:248:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 248 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:79:4: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness [-Wpointer-sign] 79 | ip_tcp_fp); | ^~~~~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:411:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 411 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:86:19: warning: pointer targets in passing argument 5 of ‘libnet_build_udp’ differ in signedness [-Wpointer-sign] 86 | ip_udp_dcebind + LIBNET_IP_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:262:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 262 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:97:4: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness [-Wpointer-sign] 97 | ip_udp_dcebind); | ^~~~~~~~~~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:411:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 411 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:103:16: warning: pointer targets in passing argument 5 of ‘libnet_build_udp’ differ in signedness [-Wpointer-sign] 103 | ip_udp_snmp + LIBNET_IP_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:262:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 262 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:115:4: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness [-Wpointer-sign] 115 | ip_udp_snmp); | ^~~~~~~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:411:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 411 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:123:17: warning: pointer targets in passing argument 7 of ‘libnet_build_icmp_echo’ differ in signedness [-Wpointer-sign] 123 | ip_icmp_echo + LIBNET_IP_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:277:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 277 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:134:4: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness [-Wpointer-sign] 134 | ip_icmp_echo); | ^~~~~~~~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:411:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 411 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c: In function ‘dhcp_gen_packets’: packets.c:147:26: warning: pointer targets in passing argument 5 of ‘libnet_build_udp’ differ in signedness [-Wpointer-sign] 147 | packet + LIBNET_ETH_H + LIBNET_IP_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:262:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 262 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:159:11: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness [-Wpointer-sign] 159 | packet + LIBNET_ETH_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:411:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 411 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ In file included from packets.c:10: thcrut.h:17:19: warning: pointer targets in passing argument 1 of ‘libnet_build_ethernet’ differ in signedness [-Wpointer-sign] 17 | #define ETHBCAST "\xff\xff\xff\xff\xff\xff" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packets.c:161:24: note: in expansion of macro ‘ETHBCAST’ 161 | libnet_build_ethernet(ETHBCAST, | ^~~~~~~~ In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:204:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 204 | u_char *, /* Pointer to a 6 byte ethernet address */ | ^~~~~~~~ packets.c:162:4: warning: pointer targets in passing argument 2 of ‘libnet_build_ethernet’ differ in signedness [-Wpointer-sign] 162 | "\x00\x00\x00\x00\x00\x00", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:205:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 205 | u_char *, /* Pointer to a 6 byte ethernet address */ | ^~~~~~~~ packets.c:166:4: warning: pointer targets in passing argument 6 of ‘libnet_build_ethernet’ differ in signedness [-Wpointer-sign] 166 | packet); | ^~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:209:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 209 | u_char * /* Packet header buffer */ | ^~~~~~~~ In file included from packets.c:10: thcrut.h:18:19: warning: pointer targets in passing argument 2 of ‘build_bootp’ differ in signedness [-Wpointer-sign] 18 | #define ETHZCAST "\x00\x00\x00\x00\x00\x00" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packets.c:169:28: note: in expansion of macro ‘ETHZCAST’ 169 | build_bootp(packet + len, ETHZCAST, LIBNET_ETH_H); | ^~~~~~~~ In file included from packets.c:11: dhcp.h:204:25: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 204 | int build_bootp(char *, unsigned char *, int); | ^~~~~~~~~~~~~~~ In file included from packets.c:10: packets.c: In function ‘arp_gen_packets’: thcrut.h:18:19: warning: pointer targets in passing argument 6 of ‘libnet_build_arp’ differ in signedness [-Wpointer-sign] 18 | #define ETHZCAST "\x00\x00\x00\x00\x00\x00" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packets.c:182:4: note: in expansion of macro ‘ETHZCAST’ 182 | ETHZCAST, | ^~~~~~~~ In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:224:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 224 | u_char *, /* sender hardware address */ | ^~~~~~~~ In file included from packets.c:10: thcrut.h:17:19: warning: pointer targets in passing argument 8 of ‘libnet_build_arp’ differ in signedness [-Wpointer-sign] 17 | #define ETHBCAST "\xff\xff\xff\xff\xff\xff" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packets.c:184:4: note: in expansion of macro ‘ETHBCAST’ 184 | ETHBCAST, | ^~~~~~~~ In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:226:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 226 | u_char *, /* target hardware address */ | ^~~~~~~~ packets.c:185:4: warning: pointer targets in passing argument 9 of ‘libnet_build_arp’ differ in signedness [-Wpointer-sign] 185 | "\x00\x00\x00\x00", /* IP */ | ^~~~~~~~~~~~~~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:227:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 227 | u_char *, /* target protocol address */ | ^~~~~~~~ packets.c:188:11: warning: pointer targets in passing argument 12 of ‘libnet_build_arp’ differ in signedness [-Wpointer-sign] 188 | packet + LIBNET_ETH_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:230:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 230 | u_char * /* packet buffer memory */ | ^~~~~~~~ In file included from packets.c:10: thcrut.h:17:19: warning: pointer targets in passing argument 1 of ‘libnet_build_ethernet’ differ in signedness [-Wpointer-sign] 17 | #define ETHBCAST "\xff\xff\xff\xff\xff\xff" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packets.c:190:24: note: in expansion of macro ‘ETHBCAST’ 190 | libnet_build_ethernet(ETHBCAST, | ^~~~~~~~ In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:204:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 204 | u_char *, /* Pointer to a 6 byte ethernet address */ | ^~~~~~~~ In file included from packets.c:10: thcrut.h:18:19: warning: pointer targets in passing argument 2 of ‘libnet_build_ethernet’ differ in signedness [-Wpointer-sign] 18 | #define ETHZCAST "\x00\x00\x00\x00\x00\x00" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * packets.c:191:4: note: in expansion of macro ‘ETHZCAST’ 191 | ETHZCAST, | ^~~~~~~~ In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:205:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 205 | u_char *, /* Pointer to a 6 byte ethernet address */ | ^~~~~~~~ packets.c:195:4: warning: pointer targets in passing argument 6 of ‘libnet_build_ethernet’ differ in signedness [-Wpointer-sign] 195 | packet); | ^~~~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:209:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 209 | u_char * /* Packet header buffer */ | ^~~~~~~~ packets.c: In function ‘icmp_gen_packets’: packets.c:207:7: warning: pointer targets in passing argument 7 of ‘libnet_build_icmp_echo’ differ in signedness [-Wpointer-sign] 207 | pe + LIBNET_IP_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:277:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 277 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:217:7: warning: pointer targets in passing argument 8 of ‘libnet_build_icmp_mask’ differ in signedness [-Wpointer-sign] 217 | pa + LIBNET_IP_H); | ^ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:293:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 293 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ packets.c:229:4: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness [-Wpointer-sign] 229 | pe); | ^~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from packets.c:6: /usr/include/libnet/libnet-1.0-functions.h:411:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 411 | u_char * /* Pointer to packet header memory */ | ^~~~~~~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o nmap_compat.o nmap_compat.c nmap_compat.c: In function ‘add_tones’: nmap_compat.c:255:18: warning: pointer targets in passing argument 1 of ‘ops_tok’ differ in signedness [-Wpointer-sign] 255 | while (ops_tok(&l, NULL) == 0) | ^~ | | | long int * nmap_compat.c:14:35: note: expected ‘long unsigned int *’ but argument is of type ‘long int *’ 14 | static int ops_tok(unsigned long *val, char *ops); | ~~~~~~~~~~~~~~~^~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o thcrut_pcap.o thcrut_pcap.c thcrut_pcap.c: In function ‘init_pcap’: thcrut_pcap.c:94:3: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 94 | if (!(device = pcap_lookupdev(err_buf))) | ^~ In file included from thcrut_pcap.c:10: /usr/include/pcap/pcap.h:328:16: note: declared here 328 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o network.o network.c network.c: In function ‘MAC_gen_pseudo’: network.c:25:50: warning: argument to ‘sizeof’ in ‘memcpy’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] 25 | memcpy(buf, "\x00\x10\x66\x66\x66\x66", sizeof buf); | ^~~ network.c:27:46: warning: argument to ‘sizeof’ in ‘memcpy’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] 27 | memcpy(buf, "\x00\x01\x66\x73\x50", sizeof buf); | ^~~ network.c: In function ‘getmyip_by_dst’: network.c:54:49: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] 54 | if (getsockname(sox, (struct sockaddr *)&sock, &socklen) == -1) | ^~~~~~~~ | | | int * In file included from network.c:6: /usr/include/sys/socket.h:117:26: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 117 | socklen_t *__restrict __len) __THROW; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ In file included from /usr/include/string.h:495, from network.c:11: In function ‘memcpy’, inlined from ‘MAC_gen_pseudo’ at network.c:27:3: /usr/include/bits/string_fortified.h:34:10: warning: ‘__builtin_memcpy’ forming offset [6, 7] is out of the bounds [0, 6] [-Warray-bounds] 34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘memcpy’, inlined from ‘MAC_gen_pseudo’ at network.c:25:3: /usr/include/bits/string_fortified.h:34:10: warning: ‘__builtin_memcpy’ forming offset 7 is out of the bounds [0, 7] [-Warray-bounds] 34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o discover_main.o discover_main.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o thcrut_sig.o thcrut_sig.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o state.o state.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o arpg.o arpg.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o dhcp.o dhcp.c dhcp.c:9:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 9 | {DHCP_PAD , DHCP_NONE, ""}, | ^~ dhcp.c:9:34: note: (near initialization for ‘dhcpnfo[0].name’) dhcp.c:10:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 10 | {DHCP_SUBMASK , DHCP_IPV4, "Subnet Mask"}, | ^~~~~~~~~~~~~ dhcp.c:10:34: note: (near initialization for ‘dhcpnfo[1].name’) dhcp.c:11:36: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 11 | {DHCP_TIMEOFF , DHCP_32TIME, "Time Offset"}, | ^~~~~~~~~~~~~ dhcp.c:11:36: note: (near initialization for ‘dhcpnfo[2].name’) dhcp.c:12:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 12 | {DHCP_ROUTER , (DHCP_IPV4|DHCP_MULTI), "Router"}, | ^~~~~~~~ dhcp.c:12:47: note: (near initialization for ‘dhcpnfo[3].name’) dhcp.c:13:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 13 | {DHCP_TSERV , (DHCP_IPV4|DHCP_MULTI), "Time Server"}, | ^~~~~~~~~~~~~ dhcp.c:13:47: note: (near initialization for ‘dhcpnfo[4].name’) dhcp.c:14:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 14 | {DHCP_NS , (DHCP_IPV4|DHCP_MULTI), "Name Server"}, | ^~~~~~~~~~~~~ dhcp.c:14:47: note: (near initialization for ‘dhcpnfo[5].name’) dhcp.c:15:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 15 | {DHCP_DNS , (DHCP_IPV4|DHCP_MULTI), "Domain Name Server"}, | ^~~~~~~~~~~~~~~~~~~~ dhcp.c:15:47: note: (near initialization for ‘dhcpnfo[6].name’) dhcp.c:16:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 16 | {DHCP_LOGSERV , (DHCP_IPV4|DHCP_MULTI), "Log Server"}, | ^~~~~~~~~~~~ dhcp.c:16:47: note: (near initialization for ‘dhcpnfo[7].name’) dhcp.c:17:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 17 | {DHCP_COOKSERV , (DHCP_IPV4|DHCP_MULTI), "Cookie Server"}, | ^~~~~~~~~~~~~~~ dhcp.c:17:47: note: (near initialization for ‘dhcpnfo[8].name’) dhcp.c:18:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 18 | {DHCP_LPRSERV , (DHCP_IPV4|DHCP_MULTI), "LPR Server"}, | ^~~~~~~~~~~~ dhcp.c:18:47: note: (near initialization for ‘dhcpnfo[9].name’) dhcp.c:19:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 19 | {DHCP_IMPRSERV , (DHCP_IPV4|DHCP_MULTI), "Impress Server"}, | ^~~~~~~~~~~~~~~~ dhcp.c:19:47: note: (near initialization for ‘dhcpnfo[10].name’) dhcp.c:20:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 20 | {DHCP_RLSERV , (DHCP_IPV4|DHCP_MULTI), "Resource Location Server"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:20:47: note: (near initialization for ‘dhcpnfo[11].name’) dhcp.c:21:35: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 21 | {DHCP_HOSTNAME , DHCP_ASCII, "Host Name"}, | ^~~~~~~~~~~ dhcp.c:21:35: note: (near initialization for ‘dhcpnfo[12].name’) dhcp.c:22:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 22 | {DHCP_BOOTFSZ , DHCP_16UI, "Boot File Size"}, | ^~~~~~~~~~~~~~~~ dhcp.c:22:34: note: (near initialization for ‘dhcpnfo[13].name’) dhcp.c:23:35: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 23 | {DHCP_COREFILE , DHCP_ASCII, "Merit Dump File"}, | ^~~~~~~~~~~~~~~~~ dhcp.c:23:35: note: (near initialization for ‘dhcpnfo[14].name’) dhcp.c:24:35: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 24 | {DHCP_DOMAIN , DHCP_ASCII, "Domain Name"}, | ^~~~~~~~~~~~~ dhcp.c:24:35: note: (near initialization for ‘dhcpnfo[15].name’) dhcp.c:25:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 25 | {DHCP_SWAPSERV , DHCP_IPV4, "Swap Server"}, | ^~~~~~~~~~~~~ dhcp.c:25:34: note: (near initialization for ‘dhcpnfo[16].name’) dhcp.c:26:35: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 26 | {DHCP_ROOTPATH , DHCP_ASCII, "Root Path"}, | ^~~~~~~~~~~ dhcp.c:26:35: note: (near initialization for ‘dhcpnfo[17].name’) dhcp.c:27:35: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 27 | {DHCP_EXTPATH , DHCP_ASCII, "Extensions Path"}, | ^~~~~~~~~~~~~~~~~ dhcp.c:27:35: note: (near initialization for ‘dhcpnfo[18].name’) dhcp.c:31:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 31 | {DHCP_IPFRWD , DHCP_BOOL, "IP Forwarding"}, | ^~~~~~~~~~~~~~~ dhcp.c:31:34: note: (near initialization for ‘dhcpnfo[19].name’) dhcp.c:32:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 32 | {DHCP_NLSR , DHCP_BOOL, "Non-Local Source Routing"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:32:34: note: (near initialization for ‘dhcpnfo[20].name’) dhcp.c:33:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 33 | {DHCP_PFILTER , (DHCP_IPV4|DHCP_MULTI), "Policy Filter Optioin"}, | ^~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:33:47: note: (near initialization for ‘dhcpnfo[21].name’) dhcp.c:34:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 34 | {DHCP_MAXDGRASM , DHCP_16UI, "Maximum Datagram Reassembly Size"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:34:34: note: (near initialization for ‘dhcpnfo[22].name’) dhcp.c:35:33: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 35 | {DHCP_IPTTL , DHCP_8UI, "Default IP Time-to-Live"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:35:33: note: (near initialization for ‘dhcpnfo[23].name’) dhcp.c:36:36: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 36 | {DHCP_PMTUTOUT , DHCP_32TIME, "Path MTU Aging Timeout"}, | ^~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:36:36: note: (near initialization for ‘dhcpnfo[24].name’) dhcp.c:37:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 37 | {DHCP_PMTUTBL , (DHCP_16UI|DHCP_MULTI), "Path MTU Plateau Table"}, | ^~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:37:47: note: (near initialization for ‘dhcpnfo[25].name’) dhcp.c:41:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 41 | {DHCP_MTU , DHCP_16UI, "Interface MTU Option"}, | ^~~~~~~~~~~~~~~~~~~~~~ dhcp.c:41:34: note: (near initialization for ‘dhcpnfo[26].name’) dhcp.c:42:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 42 | {DHCP_LSUBNET , DHCP_BOOL, "All Subnets are Local"}, | ^~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:42:34: note: (near initialization for ‘dhcpnfo[27].name’) dhcp.c:43:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 43 | {DHCP_BCAST , DHCP_IPV4, "Broadcast Address"}, | ^~~~~~~~~~~~~~~~~~~ dhcp.c:43:34: note: (near initialization for ‘dhcpnfo[28].name’) dhcp.c:44:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 44 | {DHCP_MASKDISC , DHCP_BOOL, "Perform Mask Discovery"}, | ^~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:44:34: note: (near initialization for ‘dhcpnfo[29].name’) dhcp.c:45:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 45 | {DHCP_MASKSUPP , DHCP_BOOL, "Mask Supplier Option"}, | ^~~~~~~~~~~~~~~~~~~~~~ dhcp.c:45:34: note: (near initialization for ‘dhcpnfo[30].name’) dhcp.c:46:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 46 | {DHCP_ROUTDISC , DHCP_BOOL, "Perform Router Discovery"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:46:34: note: (near initialization for ‘dhcpnfo[31].name’) dhcp.c:47:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 47 | {DHCP_ROUTSOL , DHCP_IPV4, "Router Solicitation Address"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:47:34: note: (near initialization for ‘dhcpnfo[32].name’) dhcp.c:48:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 48 | {DHCP_STATROUTES, (DHCP_IPV4|DHCP_MULTI), "Static Route"}, | ^~~~~~~~~~~~~~ dhcp.c:48:47: note: (near initialization for ‘dhcpnfo[33].name’) dhcp.c:52:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 52 | {DHCP_TRENCAP , DHCP_BOOL, "Trailer Encapsulation"}, | ^~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:52:34: note: (near initialization for ‘dhcpnfo[34].name’) dhcp.c:53:36: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 53 | {DHCP_ARPCACHET , DHCP_32TIME, "ARP Cache Timeout"}, | ^~~~~~~~~~~~~~~~~~~ dhcp.c:53:36: note: (near initialization for ‘dhcpnfo[35].name’) dhcp.c:54:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 54 | {DHCP_ETHENC , DHCP_BOOL, "Ethernet Encapsulation"}, | ^~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:54:34: note: (near initialization for ‘dhcpnfo[36].name’) dhcp.c:58:33: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 58 | {DHCP_TCPTTL , DHCP_8UI, "TCP Default TTL"}, | ^~~~~~~~~~~~~~~~~ dhcp.c:58:33: note: (near initialization for ‘dhcpnfo[37].name’) dhcp.c:59:36: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 59 | {DHCP_TCPKEEPA , DHCP_32TIME, "TCP Keepalive Interval"}, | ^~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:59:36: note: (near initialization for ‘dhcpnfo[38].name’) dhcp.c:60:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 60 | {DHCP_TCPKEEPG , DHCP_BOOL, "TCP Keepalive Garbage"}, | ^~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:60:34: note: (near initialization for ‘dhcpnfo[39].name’) dhcp.c:64:35: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 64 | {DHCP_NISDOM , DHCP_ASCII, "NIS Domain"}, | ^~~~~~~~~~~~ dhcp.c:64:35: note: (near initialization for ‘dhcpnfo[40].name’) dhcp.c:65:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 65 | {DHCP_NISSERV , (DHCP_IPV4|DHCP_MULTI), "NIS Servers"}, | ^~~~~~~~~~~~~ dhcp.c:65:47: note: (near initialization for ‘dhcpnfo[41].name’) dhcp.c:66:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 66 | {DHCP_NTP , (DHCP_IPV4|DHCP_MULTI), "NTP Servers"}, | ^~~~~~~~~~~~~ dhcp.c:66:47: note: (near initialization for ‘dhcpnfo[42].name’) dhcp.c:67:33: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 67 | {DHCP_VENDOR , DHCP_HEX, "Vendor Specific Information"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:67:33: note: (near initialization for ‘dhcpnfo[43].name’) dhcp.c:68:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 68 | {DHCP_NBNS , (DHCP_IPV4|DHCP_MULTI), "NetBIOS over TCP/IP Name Server"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:68:47: note: (near initialization for ‘dhcpnfo[44].name’) dhcp.c:69:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 69 | {DHCP_NBDD , (DHCP_IPV4|DHCP_MULTI), "NetBIOS over TCP/IP Datagram Distribution Server"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:69:47: note: (near initialization for ‘dhcpnfo[45].name’) dhcp.c:70:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 70 | {DHCP_NBNODE , DHCP_1HEX, "NetBIOS over TCP/IP Node Type"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:70:34: note: (near initialization for ‘dhcpnfo[46].name’) dhcp.c:71:33: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 71 | {DHCP_NBSCOPE , DHCP_HEX, "NetBIOS over TCP/IP Scope"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:71:33: note: (near initialization for ‘dhcpnfo[47].name’) dhcp.c:72:47: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 72 | {DHCP_XFONTSERV , (DHCP_IPV4|DHCP_MULTI), "X Window System Font Server"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:72:47: note: (near initialization for ‘dhcpnfo[48].name’) dhcp.c:73:46: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 73 | {DHCP_XDISMANAG , (DHCP_IPV4|DHCP_MULTI),"X Window System Display Manager"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:73:46: note: (near initialization for ‘dhcpnfo[49].name’) dhcp.c:77:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 77 | {DHCP_REQIP , DHCP_IPV4, "Requested IP Address"}, | ^~~~~~~~~~~~~~~~~~~~~~ dhcp.c:77:34: note: (near initialization for ‘dhcpnfo[50].name’) dhcp.c:78:36: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 78 | {DHCP_IPLEASET , DHCP_32TIME, "IP Address Lease Time"}, | ^~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:78:36: note: (near initialization for ‘dhcpnfo[51].name’) dhcp.c:79:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 79 | {DHCP_OVERLOAD , DHCP_1HEX, "Overload"}, | ^~~~~~~~~~ dhcp.c:79:34: note: (near initialization for ‘dhcpnfo[52].name’) dhcp.c:80:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 80 | {DHCP_MSGTYPE , DHCP_1HEX, "DHCP Message Type"}, | ^~~~~~~~~~~~~~~~~~~ dhcp.c:80:34: note: (near initialization for ‘dhcpnfo[53].name’) dhcp.c:81:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 81 | {DHCP_SERVERID , DHCP_IPV4, "Server Identifier"}, | ^~~~~~~~~~~~~~~~~~~ dhcp.c:81:34: note: (near initialization for ‘dhcpnfo[54].name’) dhcp.c:82:33: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 82 | {DHCP_PARAMREQ , DHCP_HEX, "Parameter Request List"}, | ^~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:82:33: note: (near initialization for ‘dhcpnfo[55].name’) dhcp.c:83:35: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 83 | {DHCP_MSG , DHCP_ASCII, "Message"}, | ^~~~~~~~~ dhcp.c:83:35: note: (near initialization for ‘dhcpnfo[56].name’) dhcp.c:84:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 84 | {DHCP_MAXMAGSZ , DHCP_16UI, "Maximum DHCP Message Size"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:84:34: note: (near initialization for ‘dhcpnfo[57].name’) dhcp.c:85:36: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 85 | {DHCP_RENTIME , DHCP_32TIME, "Renewal (T1) Time Value"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:85:36: note: (near initialization for ‘dhcpnfo[58].name’) dhcp.c:86:36: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 86 | {DHCP_REBTIME , DHCP_32TIME, "Rebinding (T2) Time Value"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:86:36: note: (near initialization for ‘dhcpnfo[59].name’) dhcp.c:87:33: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 87 | {DHCP_CLASSID , DHCP_HEX, "Class-identifier"}, | ^~~~~~~~~~~~~~~~~~ dhcp.c:87:33: note: (near initialization for ‘dhcpnfo[60].name’) dhcp.c:88:33: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 88 | {DHCP_CLIENTID , DHCP_HEX, "Client-identifier"}, | ^~~~~~~~~~~~~~~~~~~ dhcp.c:88:33: note: (near initialization for ‘dhcpnfo[61].name’) dhcp.c:92:34: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 92 | {DHCP_END , DHCP_NONE, "DHCP END MARK"}, | ^~~~~~~~~~~~~~~ dhcp.c:92:34: note: (near initialization for ‘dhcpnfo[62].name’) dhcp.c: In function ‘dhcp_str’: dhcp.c:115:28: warning: pointer targets in returning ‘unsigned char *’ from a function with return type ‘const char *’ differ in signedness [-Wpointer-sign] 115 | return dhcpnfo[tag].name; | ~~~~~~~~~~~~^~~~~ dhcp.c: In function ‘init_dhcpset’: dhcp.c:221:42: warning: pointer targets in passing argument 4 of ‘dhcp_add_option’ differ in signedness [-Wpointer-sign] 221 | dhcp_add_option(ds, DHCP_MSGTYPE, 1, "\x01"); | ^~~~~~ | | | char * dhcp.c:131:91: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 131 | hcpset *ds, unsigned char tag, unsigned char len, unsigned char *value) | ~~~~~~~~~~~~~~~^~~~~ dhcp.c: In function ‘dec_dpval’: dhcp.c:416:37: warning: pointer targets in passing argument 3 of ‘func’ differ in signedness [-Wpointer-sign] 416 | func(buf+slen, bs-slen, abuf+aoff, usz); | ~~~~^~~~~ | | | unsigned char * dhcp.c:416:37: note: expected ‘char *’ but argument is of type ‘unsigned char *’ dhcp.c: In function ‘dhcp_val2str’: dhcp.c:474:20: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] 474 | strcpy(dbuf, ""); | ^~~~ | | | unsigned char * In file included from /usr/include/features.h:465, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from default.h:12, from dhcp.c:1: /usr/include/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 88 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ dhcp.c:477:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 477 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_decIPV4, 4); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:480:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 480 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_decASCII, dplen); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:483:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 483 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_dec8I, 1); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:486:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 486 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_dec8UI, 1); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:489:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 489 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_dec16I, 2); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:492:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 492 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_dec16UI, 2); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:495:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 495 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_dec32I, 4); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:498:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 498 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_dec32UI, 4); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:501:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 501 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_dec32TIME, 4); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:505:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 505 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_decHEX, dplen); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:508:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 508 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_decMAC, dplen); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:511:23: warning: pointer targets in passing argument 1 of ‘dec_dpval’ differ in signedness [-Wpointer-sign] 511 | dec_dpval(dbuf, DBSZ, dptype, dplen, abuf, dp_decBOOL, 1); | ^~~~ | | | unsigned char * dhcp.c:402:17: note: expected ‘char *’ but argument is of type ‘unsigned char *’ 402 | dec_dpval(char *buf, int bs, unsigned char dptype, unsigned char dplen, unsigned char *abuf, | ~~~~~~^~~ dhcp.c:514:22: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 514 | snprintf(dbuf, DBSZ, " UNKNOWN encoding type %d", c); | ^~~~ | | | unsigned char * In file included from /usr/include/features.h:465, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from default.h:12, from dhcp.c:1: /usr/include/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ dhcp.c:517:23: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness [-Wpointer-sign] 517 | strncpy(buf+slen, dbuf, bsize - slen); | ^~~~ | | | unsigned char * In file included from /usr/include/features.h:465, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from default.h:12, from dhcp.c:1: /usr/include/bits/string_fortified.h:103:1: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’ 103 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, | ^~~~~ dhcp.c:440:15: warning: variable ‘aoff’ set but not used [-Wunused-but-set-variable] 440 | int slen, aoff; | ^~~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o network_raw.o network_raw.c network_raw.c: In function ‘net_send’: network_raw.c:207:27: warning: pointer targets in passing argument 2 of ‘libnet_write_ip’ differ in signedness [-Wpointer-sign] 207 | if (libnet_write_ip(sox, data, len) != len) | ^~~~ | | | char * In file included from /usr/include/libnet-1.0.h:92, from network_raw.c:10: /usr/include/libnet/libnet-1.0-functions.h:521:5: note: expected ‘u_char *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 521 | u_char *, /* Pointer a complete IP datagram */ | ^~~~~~~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o schedule.o schedule.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o dcd_icmp.o dcd_icmp.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o macvendor.o macvendor.c macvendor.c: In function ‘readvendornames’: macvendor.c:97:13: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 97 | if ( (ptr = buf2macvendor(buf, tag)) == NULL) | ^ macvendor.c:100:43: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 100 | if ((vendorptrlen - vendorlen) < strlen(ptr)+1) | ^~~ | | | unsigned char * In file included from default.h:17, from macvendor.c:1: /usr/include/string.h:385:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 385 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ macvendor.c:113:45: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 113 | memcpy(vendorptr + vendorlen, ptr, strlen(ptr)+1); | ^~~ | | | unsigned char * In file included from default.h:17, from macvendor.c:1: /usr/include/string.h:385:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 385 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ macvendor.c:114:23: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 114 | vendorlen += strlen(ptr)+1; | ^~~ | | | unsigned char * In file included from default.h:17, from macvendor.c:1: /usr/include/string.h:385:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 385 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ macvendor.c:127:13: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 127 | if ( (ptr = buf2macvendor(buf, tag)) == NULL) | ^ macvendor.c:133:23: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 133 | vendorlen += strlen(ptr)+1; | ^~~ | | | unsigned char * In file included from default.h:17, from macvendor.c:1: /usr/include/string.h:385:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 385 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o range.o range.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o thcrut.o thcrut.c thcrut.c: In function ‘init_vars’: thcrut.c:147:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 147 | fgets(buf, sizeof buf, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o asn.o asn.c asn.c: In function ‘ASN_next’: asn.c:23:23: warning: pointer targets in initialization of ‘unsigned char *’ from ‘char *’ differ in signedness [-Wpointer-sign] 23 | unsigned char *src = *data; | ^ asn.c:56:8: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign] 56 | *data = src; | ^ x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pcap -I/usr/include/pcap `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -c -o tty.o tty.c x86_64-pc-linux-gnu-gcc `` `` -D_DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -O2 -Wall -L/usr/lib -L/usr/local/lib -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o thcrut nvt.o icmp_main.o arp_main.o thcrut_libnet.o dhcp_main.o system.o fp.o discover_dispatch.o packets.o nmap_compat.o thcrut_pcap.o network.o discover_main.o thcrut_sig.o state.o arpg.o dhcp.o network_raw.o schedule.o dcd_icmp.o macvendor.o range.o thcrut.o asn.o tty.o -L/usr/lib64 -lpcre -lnet-1.0 -lpcap -lnsl `` `` /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: discover_main.o: multiple definition of 'ip_tcp_sync_addr' /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: discover_dispatch.o: previous definition here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: skipping incompatible /usr/lib/libpcre.so while searching for pcre /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: skipping incompatible /usr/lib/libpcap.so while searching for pcap /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: skipping incompatible /usr/lib/libnsl.so while searching for nsl /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: skipping incompatible /usr/lib/libc.so while searching for c collect2: error: ld returned 1 exit status make[2]: *** [Makefile:407: thcrut] Error 1 make[2]: Leaving directory '/var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work/thcrut-1.2.5/src' make[1]: *** [Makefile:379: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work/thcrut-1.2.5' make: *** [Makefile:320: all] Error 2 * ERROR: net-analyzer/thcrut-1.2.5-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/thcrut-1.2.5-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/thcrut-1.2.5-r1::gentoo'`. * The complete build log is located at '/var/log/portage/net-analyzer:thcrut-1.2.5-r1:20200510-130744.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work/thcrut-1.2.5' * S: '/var/tmp/portage/net-analyzer/thcrut-1.2.5-r1/work/thcrut-1.2.5'