NetBSD Problem Report #44333

From www@NetBSD.org  Thu Jan  6 15:31:21 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id ECF2663B8C3
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  6 Jan 2011 15:31:20 +0000 (UTC)
Message-Id: <20110106153120.2C68863B89F@www.NetBSD.org>
Date: Thu,  6 Jan 2011 15:31:20 +0000 (UTC)
From: zakne0ne@gmail.com
Reply-To: zakne0ne@gmail.com
To: gnats-bugs@NetBSD.org
Subject: p0f compilation fix on DragonFlyBSD
X-Send-Pr-Version: www-1.0

>Number:         44333
>Category:       pkg
>Synopsis:       p0f compilation fix on DragonFlyBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 06 15:35:00 +0000 2011
>Closed-Date:    Fri Jan 07 05:13:54 +0000 2011
>Last-Modified:  Fri Jan 07 05:15:02 +0000 2011
>Originator:     Ilia
>Release:        DragonFly 2.9.1
>Organization:
>Environment:
DragonFly 2.9-DEVELOPMENT DragonFly v2.9.1.370.g78775c-DEVELOPMENT #0: Sun Jan 2 12:34:32 2011    root@:/usr/obj/usr/src/sys/GENERIC i386
>Description:
GNU make not found; failing back to regular (BSD?) make.
cc -O2 -I/usr/pkg/include -DUSE_BPF=\"net/bpf.h\" -o p0f p0f.c p0f-query.c crc32.c -lpcap
In file included from p0f.c:40:
/usr/include/net/bpf.h:83: error: redefinition of 'struct bpf_program'
/usr/include/net/bpf.h:107: error: redefinition of 'struct bpf_version'
In file included from p0f.c:40:
/usr/include/net/bpf.h:222: error: redefinition of 'struct bpf_insn'
*** Error code 1

>How-To-Repeat:

>Fix:
--- distb	2011-01-06 00:12:16 -0600
+++ distinfo	2011-01-06 00:13:29 -0600
@@ -4,4 +4,5 @@
 RMD160 (p0f-2.0.8.tgz) = 87d5b30d2d5e156b9fdcb026160155f413ce13d3
 Size (p0f-2.0.8.tgz) = 136877 bytes
 SHA1 (patch-aa) = f55e4b15edf6c1de1a799d09a2930f1fb3ece56b
+SHA1 (patch-ab) = 4415db6ebe281f9b00646305787c18740c076a84
 SHA1 (patch-ad) = 378d9480c88d9a447684323c4a59f3c2f6f10d74


$NetBSD$

--- p0f.c.orig	2011-01-06 06:06:21 +0000
+++ p0f.c
@@ -36,12 +36,7 @@
 #include <pcap.h>
 #include <signal.h>

-#ifdef USE_BPF
-#include USE_BPF
-#else
 #include <pcap-bpf.h>
-#endif /* ^USE_BPF */
-
 #include <time.h>
 #include <ctype.h>

>Release-Note:

>Audit-Trail:
From: Zak Freezzzeer <zakne0ne@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/44333: digger compilation fix on DragonFlyBSD
Date: Thu, 6 Jan 2011 23:52:44 +0600

 --0015175ca7bc3fa1370499312b03
 Content-Type: text/plain; charset=ISO-8859-1

 This is p0f compilation fix i miss printed the title.

 2011/1/6 <gnats-admin@netbsd.org>

 > Thank you very much for your problem report.
 > It has the internal identification `pkg/44333'.
 > The individual assigned to look at your
 > report is: pkg-manager.
 >
 > >Category:       pkg
 > >Responsible:    pkg-manager
 > >Synopsis:       digger compilation fix on DragonFlyBSD
 > >Arrival-Date:   Thu Jan 06 15:35:00 +0000 2011
 >
 >

 --0015175ca7bc3fa1370499312b03
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable

 This is p0f compilation fix i miss printed the title.<br><br><div class=3D"=
 gmail_quote">2011/1/6  <span dir=3D"ltr">&lt;<a href=3D"mailto:gnats-admin@=
 netbsd.org" target=3D"_blank">gnats-admin@netbsd.org</a>&gt;</span><br><blo=
 ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
 cc solid;padding-left:1ex">

 Thank you very much for your problem report.<br>
 It has the internal identification `pkg/44333&#39;.<br>
 The individual assigned to look at your<br>
 report is: pkg-manager.<br>
 <br>
 &gt;Category: =A0 =A0 =A0 pkg<br>
 &gt;Responsible: =A0 =A0pkg-manager<br>
 &gt;Synopsis: =A0 =A0 =A0 digger compilation fix on DragonFlyBSD<br>
 &gt;Arrival-Date: =A0 Thu Jan 06 15:35:00 +0000 2011<br>
 <br>
 </blockquote></div><br>

 --0015175ca7bc3fa1370499312b03--

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44333 CVS commit: pkgsrc/security/p0f
Date: Fri, 7 Jan 2011 04:15:38 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Fri Jan  7 04:15:38 UTC 2011

 Modified Files:
 	pkgsrc/security/p0f: Makefile distinfo
 	pkgsrc/security/p0f/patches: patch-aa
 Added Files:
 	pkgsrc/security/p0f/patches: patch-ae

 Log Message:
 Let preferred libpcap to be picked up.
 PR#44333.


 To generate a diff of this commit:
 cvs rdiff -u -r1.25 -r1.26 pkgsrc/security/p0f/Makefile
 cvs rdiff -u -r1.16 -r1.17 pkgsrc/security/p0f/distinfo
 cvs rdiff -u -r1.8 -r1.9 pkgsrc/security/p0f/patches/patch-aa
 cvs rdiff -u -r0 -r1.1 pkgsrc/security/p0f/patches/patch-ae

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Fri, 07 Jan 2011 05:13:54 +0000
State-Changed-Why:
fixed with different way.


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44333 CVS commit: pkgsrc/net/libpcap
Date: Fri, 7 Jan 2011 05:11:37 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Fri Jan  7 05:11:36 UTC 2011

 Modified Files:
 	pkgsrc/net/libpcap: builtin.mk

 Log Message:
 Fixes builtin libpcap detection for DragonFly, another fix for PR#44333.

 Public headers had been moved to subdir since 0.9.6, not only recent Darwin.
 Let to look at pcap/pcap.h first, then pcap.h in all cases.


 To generate a diff of this commit:
 cvs rdiff -u -r1.15 -r1.16 pkgsrc/net/libpcap/builtin.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.