checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... 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 grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for err.h... yes checking for fcntl.h... yes checking for sys/ioctl.h... yes checking for sys/queue.h... yes checking for unistd.h... (cached) yes checking for libgen.h... yes checking for net/if_tun.h... no checking for MIN and MAX in sys/param.h... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for u_int32_t... yes checking for u_int64_t... yes checking for in_addr_t... no checking whether gcc needs -traditional... no checking for working memcmp... yes checking return type of signal handlers... void checking for strftime... yes checking for gethostname... yes checking for socket... yes checking for strdup... yes checking for strstr... yes checking for xdr_fhstatus in -lrpcsvc... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dn_expand in -lresolv... no checking for __dn_expand in -lresolv... yes checking for dirname... yes checking for strlcpy... no checking for strlcat... no checking for strsep... yes checking for MD5Update... no checking for warnx... yes checking for ether_ntoa... yes checking for Berkeley DB with 1.85 compatibility... yes checking for libpcap... yes checking for libnet... yes checking for libnids... yes checking whether libnids version is good... yes checking for OpenSSL... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for TIRPC... yes configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating config.h gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/lib/\" -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/tirpc -I./missing -c ./arpspoof.c In file included from /usr/include/sys/types.h:25, from ./arpspoof.c:16: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ ./arpspoof.c: In function ‘main’: ./arpspoof.c:274:9: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 274 | if (intf == NULL && (intf = pcap_lookupdev(pcap_ebuf)) == NULL) | ^~ In file included from /usr/include/pcap.h:43, from ./arpspoof.c:25: /usr/include/pcap/pcap.h:394:18: note: declared here 394 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/lib/\" -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/tirpc -I./missing -c ./arp.c In file included from /usr/include/sys/types.h:25, from ./arp.c:13: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/lib/\" -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/tirpc -I./missing -c ./missing/dummy.c gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/lib/\" -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/tirpc -I./missing -c ./missing/strlcpy.c In file included from /usr/include/sys/types.h:25, from ./missing/strlcpy.c:35: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/lib/\" -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/tirpc -I./missing -c ./missing/strlcat.c In file included from /usr/include/sys/types.h:25, from ./missing/strlcat.c:35: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/lib/\" -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/tirpc -I./missing -c ./missing/md5.c In file included from /usr/include/sys/types.h:25, from ./missing/md5.c:20: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ ar -cr libmissing.a dummy.o strlcpy.o strlcat.o md5.o ranlib libmissing.a gcc -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto -o arpspoof arpspoof.o arp.o -lresolv -lnsl -L. -lmissing -ltirpc -L/usr/lib -lpcap -L/usr/lib -lnet gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DDSNIFF_LIBDIR=\"/usr/lib/\" -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/tirpc -I./missing -c ./dnsspoof.c In file included from /usr/include/sys/types.h:25, from /usr/include/sys/param.h:25, from ./dnsspoof.c:13: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from ./dnsspoof.c:29: ./pcaputil.h:14:9: error: conflicting types for ‘pcap_init’; have ‘pcap_t *(char *, char *, int)’ {aka ‘struct pcap *(char *, char *, int)’} 14 | pcap_t *pcap_init(char *intf, char *filter, int snaplen); | ^~~~~~~~~ In file included from /usr/include/pcap.h:43, from ./dnsspoof.c:27: /usr/include/pcap/pcap.h:386:17: note: previous declaration of ‘pcap_init’ with type ‘int(unsigned int, char *)’ 386 | PCAP_API int pcap_init(unsigned int, char *); | ^~~~~~~~~ ./dnsspoof.c: In function ‘main’: ./dnsspoof.c:300:9: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 300 | if (dev == NULL && (dev = pcap_lookupdev(buf)) == NULL) | ^~ In file included from /usr/include/pcap.h:43, from ./dnsspoof.c:27: /usr/include/pcap/pcap.h:394:18: note: declared here 394 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ make: *** [Makefile:78: dnsspoof.o] Error 1 ==> ERROR: A failure occurred in build().  Aborting...