Date: Tue, 15 Feb 2022 23:50:13 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 261978] security/dsniff build failure on 12.2S due to pcap_init argument count mismatch Message-ID: <bug-261978-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261978 Bug ID: 261978 Summary: security/dsniff build failure on 12.2S due to pcap_init argument count mismatch Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sbz@FreeBSD.org Reporter: dewayne@heuristicsystems.com.au Assignee: sbz@FreeBSD.org Flags: maintainer-feedback?(sbz@FreeBSD.org) Compilation attempt on 12.2-STABLE FreeBSD 12.2-STABLE #1 r369922M Using GCC10 In file included from ./dnsspoof.c:28: ./pcaputil.h:14:9: error: conflicting types for 'pcap_init' 14 | pcap_t *pcap_init(char *intf, char *filter, int snaplen); | ^~~~~~~~~ In file included from /usr/local/include/pcap.h:43, from ./dnsspoof.c:26: /usr/local/include/pcap/pcap.h:386:14: note: previous declaration of 'pcap_init' was here 386 | PCAP_API int pcap_init(unsigned int, char *); | ^~~~~~~~~ ./dnsspoof.c: In function 'main': ./dnsspoof.c:299:2: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 299 | if (dev =3D=3D NULL && (dev =3D pcap_lookupdev(buf)) =3D=3D NULL) | ^~ In file included from /usr/local/include/pcap.h:43, from ./dnsspoof.c:26: /usr/local/include/pcap/pcap.h:394:16: note: declared here 394 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ *** Error code 1 clang10 /usr/local/include/pcap/funcattrs.h:291:53: note: expanded from macro 'PCAP_DEPRECATED' #define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg))) ^ ./dnsspoof.c:311:37: error: too many arguments to function call, expected 2, have 3 if ((pcap_pd =3D pcap_init(dev, buf, 128)) =3D=3D NULL) ~~~~~~~~~ ^~~ /usr/local/include/pcap/pcap.h:386:1: note: 'pcap_init' declared here PCAP_API int pcap_init(unsigned int, char *); ^ /usr/local/include/pcap/funcattrs.h:147:31: note: expanded from macro 'PCAP_API' #define PCAP_API PCAP_API_DEF extern ^ 3 warnings and 2 errors generated. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261978-7788>