From nobody Sat May 14 13:48:06 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 D954A1AE6C82 for ; Sat, 14 May 2022 13:48:06 +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 4L0n06484Yz4k5V for ; Sat, 14 May 2022 13:48:06 +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 69F1C18574 for ; Sat, 14 May 2022 13:48:06 +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 24EDm622019720 for ; Sat, 14 May 2022 13:48:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24EDm6Uk019719 for ports-bugs@FreeBSD.org; Sat, 14 May 2022 13:48:06 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 263972] net-mgmt/p0f: Fix build on 13.1 and current Date: Sat, 14 May 2022 13:48:06 +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: jkim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pi@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 attachments.created 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=1652536086; 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=qDNSosompsIJpJhLKe9eAQyyi6l53d8/pxoTicpfMhs=; b=wAA2lohlaQ9oWri04NqEzYx+lnRun7kIFO5f4iZpSCWKhicCeHjTat6zORCkuwzXs8Vl4d bcAG3qfijrGqKcF/r3LihiyOxlTdB4Gk8KW2it132Z6smKCuuYnRBAIClqjXx9wmbZbMgE Ky8skxxADNDBL7E16nwfj+162YfU2IXejyhbFzNpk7yS06+g5Lcw7zPpIaFfg+Q2etP8j0 7PMPppo4SCLw+FjbDb6gBFkgj/MxQgZ/xER+EsPkyLHoatTfNN8/zIso3hFPmXEU3mGWnV HnnMJ+1maVtsDnpYMjpHMiB6GTW/OffhbIJ8CFtSy73di0+CL0Um8jNwUonQUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652536086; a=rsa-sha256; cv=none; b=ruMsDyZSpadDMrBEdz3B5vs+q81lb8+iSDUXNHTeciidOldcR8fGpofZDYYxNWktaVJsn6 hVyInkPfZWWl/tYQMN1rM1Dt6Ex8BggqbR20oxxQzmuncGHoMooU/TdpM6MmGgHh+GlPSM v/2Mx/OTGCGvrsKw3UeucOsUvw6T2oVsT9omZz7r/N1pdVndYj3dYXw1gC9/m3IzD1dBJf 4YNqFKtf0VhXMkICNURx+eA0Mv+E8PzvnIBZNbAvDJy8ZsPlvSLI414m8Md2/qFmWsMJQI FH0zVOkJCCZlWmayiBPN3hmVftEHF2bRbRgFQoeKdkt7p5cye0bTgl5bsH30ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263972 Bug ID: 263972 Summary: net-mgmt/p0f: Fix build on 13.1 and current Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pi@FreeBSD.org Reporter: jkim@FreeBSD.org Flags: maintainer-feedback?(pi@FreeBSD.org) Assignee: pi@FreeBSD.org Created attachment 233910 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D233910&action= =3Dedit Fix build on recent FreeBSD It seems recent header change broke the build. ----------- [*] Compiling p0f... FAIL Well, something went horribly wrong, sorry. Here's the output from GCC: p0f.c:488:26: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldev= s' and use the first device [-Wdeprecated-declarations] use_iface =3D (u8*)pcap_lookupdev(pcap_err); ^ /usr/local/include/pcap/pcap.h:395:1: note: 'pcap_lookupdev' has been explicitly marked deprecated here PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device"); ^ /usr/local/include/pcap/funcattrs.h:293:53: note: expanded from macro 'PCAP_DEPRECATED' #define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg))) ^ 1 warning generated. process.c:112:37: warning: implicit declaration of function 'offsetof' is invalid in C99 [-Wimplicit-function-declaration] case DLT_PFLOG: link_off =3D PFLOG_HDRLEN; return; ^ /usr/include/net/if_pflog.h:64:35: note: expanded from macro 'PFLOG_HDRLEN' #define PFLOG_HDRLEN PFLOG_ALIGN(offsetof(struct pfloghdr, pad2)) ^ process.c:112:37: error: expected expression /usr/include/net/if_pflog.h:64:44: note: expanded from macro 'PFLOG_HDRLEN' #define PFLOG_HDRLEN PFLOG_ALIGN(offsetof(struct pfloghdr, pad2)) ^ process.c:112:37: error: use of undeclared identifier 'pad2' /usr/include/net/if_pflog.h:64:61: note: expanded from macro 'PFLOG_HDRLEN' #define PFLOG_HDRLEN PFLOG_ALIGN(offsetof(struct pfloghdr, pad2)) ^ 1 warning and 2 errors generated. Sorry! You may want to ping about this. *** [all] Error code 1 ----------- I think 4daa31c10867b133bdc2a424e1e60d280384dc56 was the culprit. https://cgit.freebsd.org/src/commit/?id=3D4daa31c10867b133bdc2a424e1e60d280= 384dc56 Anyway, the attached patch fix the problem for me. --=20 You are receiving this mail because: You are the assignee for the bug.=