From owner-freebsd-ports Thu Nov 9 17:10: 7 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7218537B4C5 for ; Thu, 9 Nov 2000 17:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id RAA29921; Thu, 9 Nov 2000 17:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) 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 ; 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 Reply-To: nakaji@jp.freebsd.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/22729: net/ucd-snmp cannot be made on current Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22729 >Category: ports >Synopsis: net/ucd-snmp cannot be made on current >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 09 17:10:00 PST 2000 >Closed-Date: >Last-Modified: >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 #endif #endif -#if HAVE_SYS_CONF_H -#include -#endif #if HAVE_SYS_PARAM_H #include #endif +#if HAVE_SYS_CONF_H +#include +#endif #if HAVE_ASM_PAGE_H #include #endif @@ -86,6 +86,7 @@ #include #endif #if HAVE_VM_SWAP_PAGER_H +#include #include #endif #if HAVE_SYS_FIXPOINT_H >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message