NetBSD Problem Report #45474

From www@NetBSD.org  Sun Oct 16 04:10:23 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 CEEAE63D4AB
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 16 Oct 2011 04:10:23 +0000 (UTC)
Message-Id: <20111016041022.BB8BD63D4A2@www.NetBSD.org>
Date: Sun, 16 Oct 2011 04:10:22 +0000 (UTC)
From: sjg@dragonflybsd.org
Reply-To: sjg@dragonflybsd.org
To: gnats-bugs@NetBSD.org
Subject: net/net-snmp broken on DragonFly BSD
X-Send-Pr-Version: www-1.0

>Number:         45474
>Category:       pkg
>Synopsis:       net/net-snmp broken on DragonFly BSD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    obache
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 16 04:15:01 +0000 2011
>Closed-Date:    Wed Oct 19 00:58:54 +0000 2011
>Last-Modified:  Wed Oct 19 00:58:54 +0000 2011
>Originator:     Samuel J. Greear
>Release:        
>Organization:
DragonFly BSD
>Environment:
DragonFly v2.13.0.14.g01c78-DEVELOPMENT #0: Sun Oct  9 22:01:03 MDT 2011     sjg@df.thesjg.com:/usr/obj/usr/src/sys/DEV
>Description:
FreeBSD added Interface Media Tokens which DragonFly BSD does not support,  so the build of net-snmp breaks on DragonFly BSD.

if-mib/data_access/interface_sysctl.c: In function 'netsnmp_sysctl_ifmedia_to_speed':
if-mib/data_access/interface_sysctl.c:190: error: 'IFM_TOKEN' undeclared (first use in this function)
if-mib/data_access/interface_sysctl.c:190: error: (Each undeclared identifier is reported only once
if-mib/data_access/interface_sysctl.c:190: error: for each function it appears in.)
if-mib/data_access/interface_sysctl.c:192: error: 'IFM_TOK_STP4' undeclared (first use in this function)
if-mib/data_access/interface_sysctl.c:193: error: 'IFM_TOK_UTP4' undeclared (first use in this function)
if-mib/data_access/interface_sysctl.c:197: error: 'IFM_TOK_STP16' undeclared (first use in this function)
if-mib/data_access/interface_sysctl.c:198: error: 'IFM_TOK_UTP16' undeclared (first use in this function)
if-mib/data_access/interface_sysctl.c: In function 'netsnmp_arch_interface_container_load':
if-mib/data_access/interface_sysctl.c:459: warning: right shift count >= width of type
if-mib/data_access/interface_sysctl.c:461: warning: right shift count >= width of type
if-mib/data_access/interface_sysctl.c:463: warning: right shift count >= width of type
if-mib/data_access/interface_sysctl.c:469: warning: right shift count >= width of type
if-mib/data_access/interface_sysctl.c:471: warning: right shift count >= width of type
if-mib/data_access/interface_sysctl.c:473: warning: right shift count >= width of type
*** Error code 1

Stop.
bmake: stopped in /tmp/net/net-snmp/work/net-snmp-5.6.1.1/agent/mibgroup
>How-To-Repeat:

>Fix:
Apply the patch at the following URL: http://evilprojects.net/dragonflybsd/pkgsrc/net-snmp.patch to the net-snmp directory.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->dfly-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sun, 16 Oct 2011 04:27:25 +0000
Responsible-Changed-Why:
Problem on DragonFly.


Responsible-Changed-From-To: dfly-pkg-people->obache
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sun, 16 Oct 2011 09:28:24 +0000
Responsible-Changed-Why:
I'll take this.


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45474 CVS commit: pkgsrc/net/net-snmp
Date: Sun, 16 Oct 2011 09:30:40 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Oct 16 09:30:40 UTC 2011

 Modified Files:
 	pkgsrc/net/net-snmp: distinfo
 	pkgsrc/net/net-snmp/patches: patch-ao

 Log Message:
 Fixes build on DragonFly BSD (missing IFM_TOKEN).
 Based on PR pkg/45474 by Samuel J. Greear.


 To generate a diff of this commit:
 cvs rdiff -u -r1.62 -r1.63 pkgsrc/net/net-snmp/distinfo
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/net-snmp/patches/patch-ao

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

State-Changed-From-To: open->pending-pullups
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sun, 16 Oct 2011 09:37:28 +0000
State-Changed-Why:
Fixed in pkgsrc-current.
Requested pullup to pkgsrc-2011Q3 with #3565.


From: "Steven Drake" <sbd@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45474 CVS commit: [pkgsrc-2011Q3] pkgsrc/net/net-snmp
Date: Tue, 18 Oct 2011 21:37:43 +0000

 Module Name:	pkgsrc
 Committed By:	sbd
 Date:		Tue Oct 18 21:37:43 UTC 2011

 Modified Files:
 	pkgsrc/net/net-snmp [pkgsrc-2011Q3]: distinfo
 	pkgsrc/net/net-snmp/patches [pkgsrc-2011Q3]: patch-ao

 Log Message:
 Pullup ticket #3565 - requested by obache
 net/net-snmp build fix

 Revisions pulled up:
 - net/net-snmp/distinfo                                         1.63
 - net/net-snmp/patches/patch-ao                                 1.3

 ---
    Module Name:	pkgsrc
    Committed By:	obache
    Date:		Sun Oct 16 09:30:40 UTC 2011

    Modified Files:
    	pkgsrc/net/net-snmp: distinfo
    	pkgsrc/net/net-snmp/patches: patch-ao

    Log Message:
    Fixes build on DragonFly BSD (missing IFM_TOKEN).
    Based on PR pkg/45474 by Samuel J. Greear.


 To generate a diff of this commit:
 cvs rdiff -u -r1.62 -r1.62.4.1 pkgsrc/net/net-snmp/distinfo
 cvs rdiff -u -r1.2 -r1.2.4.1 pkgsrc/net/net-snmp/patches/patch-ao

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

State-Changed-From-To: pending-pullups->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Wed, 19 Oct 2011 00:58:54 +0000
State-Changed-Why:
Pulled up to pkgsrc-2011Q3.


>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.