From nakaji@nakaji.tutrp.tut.ac.jp  Thu Nov  9 17:04:00 2000
Return-Path: <nakaji@nakaji.tutrp.tut.ac.jp>
Received: from nakaji.tutrp.tut.ac.jp (nakaji.tutrp.tut.ac.jp [133.15.188.118])
	by hub.freebsd.org (Postfix) with ESMTP id 8D24037B479
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 Nov 2000 17:03:56 -0800 (PST)
Received: (from nakaji@localhost)
	by nakaji.tutrp.tut.ac.jp (8.11.1/8.11.1) id eAA13Ub73004;
	Fri, 10 Nov 2000 10:03:30 +0900 (JST)
	(envelope-from nakaji)
Message-Id: <200011100103.eAA13Ub73004@nakaji.tutrp.tut.ac.jp>
Date: Fri, 10 Nov 2000 10:03:30 +0900 (JST)
From: nakaji@jp.freebsd.org
Sender: nakaji@nakaji.tutrp.tut.ac.jp
Reply-To: nakaji@jp.freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: net/ucd-snmp cannot be made on current
X-Send-Pr-Version: 3.2

>Number:         22729
>Category:       ports
>Synopsis:       net/ucd-snmp cannot be made on current
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    billf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 09 17:10:00 PST 2000
>Closed-Date:    Sat Jun 16 06:59:01 PDT 2001
>Last-Modified:  Sat Jun 16 06:59:19 PDT 2001
>Originator:     NAKAJI Hiroyuki
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:

	FreeBSD nakaji.tutrp.tut.ac.jp 5.0-CURRENT FreeBSD 5.0-CURRENT
	#0: Thu Oct 26 12:33:07 JST 2000
	root@nakaji.tutrp.tut.ac.jp:/usr/obj/usr/src/sys/NAKAJI  i386

>Description:

	'make all' of net/ucd-snmp fails with a message.

cc -c -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I..  -fPIC -shared -DI
NET6 -O -pipe -Dfreebsd5 -o ucd-snmp/disk.o ucd-snmp/disk.c
In file included from ucd-snmp/disk.c:28:
/usr/include/sys/conf.h:68: `SPECNAMELEN' undeclared here (not in a function)
/usr/include/sys/conf.h:68: size of array `si_name' has non-integer type
gmake[2]: *** [ucd-snmp/disk.o] Error 1

>How-To-Repeat:

	cd /usr/ports/net/ucd-snmp
	make

>Fix:

	The reason is clear. SPECNAMELEN used in sys/conf.h is
	declared in sys/param.h but it is included after sys/conf.h in
	ucd-snmp/disk.c. The patch for ucd-snmp/disk.c should be like
	this.

--- agent/mibgroup/ucd-snmp/disk.c.orig	Fri Feb  4 02:56:40 2000
+++ agent/mibgroup/ucd-snmp/disk.c	Fri Nov 10 09:53:18 2000
@@ -24,12 +24,12 @@
 #include <sys/vmmeter.h>
 #endif
 #endif
-#if HAVE_SYS_CONF_H
-#include <sys/conf.h>
-#endif
 #if HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
+#if HAVE_SYS_CONF_H
+#include <sys/conf.h>
+#endif
 #if HAVE_ASM_PAGE_H
 #include <asm/page.h>
 #endif
@@ -86,6 +86,7 @@
 #include <vm/vm.h>
 #endif
 #if HAVE_VM_SWAP_PAGER_H
+#include <vm/vm.h>
 #include <vm/swap_pager.h>
 #endif
 #if HAVE_SYS_FIXPOINT_H


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->billf 
Responsible-Changed-By: demon 
Responsible-Changed-When: Thu Dec 14 02:31:33 PST 2000 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22729 

From: "David W. Chapman Jr." <dwcjr@inethouston.net>
To: freebsd-gnats-submit@FreeBSD.org, nakaji@jp.freebsd.org,
	ports@freebsd.org
Cc:  
Subject: Re: ports/22729: net/ucd-snmp cannot be made on current
Date: Sat, 16 Jun 2001 00:22:16 -0500

 Does anyone know if this port can be built on -current now in the 6 
 months since this pr was posted?
 

From: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>
To: "David W. Chapman Jr." <dwcjr@inethouston.net>
Cc: freebsd-gnats-submit@FreeBSD.org, ports@freebsd.org
Subject: Re: ports/22729: net/ucd-snmp cannot be made on current
Date: 16 Jun 2001 21:13:54 +0900

 I'm the originater of this PR.
 
 >>>>> In <3B2AED08.4050409@inethouston.net> 
 >>>>>	"David W. Chapman Jr." <dwcjr@inethouston.net> wrote:
 
 D> Does anyone know if this port can be built on -current now in the 6 
 D> months since this pr was posted?
 
 Very soon after I sent the PR, the problem went away.
 
 Now, I can use net/net-snmp with no problem. Please close the PR if
 nobody has such a trouble.
 
 Sorry for the late followup.
 -- 
 NAKAJI Hiroyuki
State-Changed-From-To: open->closed 
State-Changed-By: dwcjr 
State-Changed-When: Sat Jun 16 06:59:01 PDT 2001 
State-Changed-Why:  
Cannot seem to be reproduced. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=22729 
>Unformatted:
