NetBSD Problem Report #46318

From www@NetBSD.org  Mon Apr  9 19:49:32 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id E8A1263BBEC
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  9 Apr 2012 19:49:31 +0000 (UTC)
Message-Id: <20120409194931.5006B63B9FE@www.NetBSD.org>
Date: Mon,  9 Apr 2012 19:49:31 +0000 (UTC)
From: ftigeot@wolfpond.org
Reply-To: ftigeot@wolfpond.org
To: gnats-bugs@NetBSD.org
Subject: net/wminet does not build on DragonFly
X-Send-Pr-Version: www-1.0

>Number:         46318
>Category:       pkg
>Synopsis:       net/wminet does not build on DragonFly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    marino
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 09 19:50:00 +0000 2012
>Closed-Date:    Tue May 15 14:07:31 +0000 2012
>Last-Modified:  Tue May 15 14:07:31 +0000 2012
>Originator:     Francois Tigeot
>Release:        DragonFly
>Organization:
>Environment:
DragonFly sekishi.zefyris.com 3.1-DEVELOPMENT DragonFly v3.1.0.438.g1e741-DEVELOPMENT #35: Tue Apr  3 23:21:58 CEST 2012     root@sekishi.zefyris.com:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
>Description:
net/wminet fails to build due to a missing struct ifnet definition
>How-To-Repeat:
try to build net/wminet from pkgsrc-2012Q1 on a DragonFly system
>Fix:
if.c has to be modified, and _KERNEL_STRUCTURES defined just before
the inclusion of <net/if_var.h> :

 #if defined(__DragonFly__) || (defined(__FreeBSD_version) && __FreeBSD_version >= 300003)
+    #if defined(__DragonFly__)
+        #define _KERNEL_STRUCTURES
+    #endif
 #include <net/if_var.h>

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->dfly-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Wed, 25 Apr 2012 09:22:53 +0000
Responsible-Changed-Why:
Problem on DragonFly.


Responsible-Changed-From-To: dfly-pkg-people->marino
Responsible-Changed-By: marino@NetBSD.org
Responsible-Changed-When: Tue, 15 May 2012 05:43:39 +0000
Responsible-Changed-Why:
I'll take it.


From: "John Marino" <marino@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46318 CVS commit: pkgsrc/net/wminet
Date: Tue, 15 May 2012 14:05:01 +0000

 Module Name:	pkgsrc
 Committed By:	marino
 Date:		Tue May 15 14:05:01 UTC 2012

 Modified Files:
 	pkgsrc/net/wminet: distinfo
 	pkgsrc/net/wminet/patches: patch-ab

 Log Message:
 PR#46318 net/wminet: Fix for DragonFly


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/net/wminet/distinfo
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/wminet/patches/patch-ab

 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: marino@NetBSD.org
State-Changed-When: Tue, 15 May 2012 14:07:31 +0000
State-Changed-Why:
A variation of the suggested fix was committed.
Fix tested in Tinderbox-DragonFly (x86_64)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.