From nobody Tue Feb 15 23:50:13 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id ED00619C84D6 for ; Tue, 15 Feb 2022 23:50:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JyyWT57rfz3th0 for ; Tue, 15 Feb 2022 23:50:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8EEE138F1 for ; Tue, 15 Feb 2022 23:50:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 21FNoDLJ092065 for ; Tue, 15 Feb 2022 23:50:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21FNoDqd092063 for ports-bugs@FreeBSD.org; Tue, 15 Feb 2022 23:50:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Tue, 15 Feb 2022 23:50:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dewayne@heuristicsystems.com.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sbz@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644969013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KvutoJkAMSSJ/vtEfXF2aInbdp61GvPpjSu6kBfA0N0=; b=SqUo+2lOWOqeOCFPFO5Jo0SIzxPsD9te2Kb2uHVa4Tp67rwubg4UDXKvv4p1Bvk7PAZEFi QjXPBdM+eVqBaAu+hiOD7dWxO+SG6i92LAxXIrKUfKaxX9zYsrZXatsAeT5JIyEiE1plC7 G5Jn7cnHamkAmXj420K1d5SY0/BhQeEndQvCrTrf5xMucbX4d1DidyaqRfBW60M3+vnuio ygjCn4s7dTCmJ5O7avny35PTbRfrZVNIVrIFe+TY0mudBOBJSSadhhZdkwJr7x5+0DK0zm FFSriCtZpcg00Vqw7nNoDClspKJHFnAHnPLakxNhuh7h4g3JuOkrtD1KUa6A5w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644969013; a=rsa-sha256; cv=none; b=Nrda64rX003deKpiRV4uVgUd3+npcZ1zu+X0659sbGXMF7SBR9vwzssxzy1rVtWXCj5lXn NngrV7pLX/ztBIpHxvMaWgyZAw+AupEH8e0rZMOAFQQ+fiLCzXE5u89LEL1Tj5PmydDuR+ 9dITj7KqBmGnY73cMUFStyiaPX9MSzpGz9lHgBpQgBC+0y2nXkfxZsO+rJDFxV+tV4QwWx h/oESTE3s1kRPXoFflvLc9d5KxFfVqkLO2NIZ9RZuYu5Xt5yHoWYwInfUZhe1t7j/hflY7 fHhamZ3R9NpaJFW4mclII97a71yxOScuqzmGYPLBfHD+fgVHpC1iLHdGkAyxUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=