Date: Fri, 10 Nov 2000 10:03:30 +0900 (JST) From: nakaji@jp.freebsd.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/22729: net/ucd-snmp cannot be made on current Message-ID: <200011100103.eAA13Ub73004@nakaji.tutrp.tut.ac.jp>
next in thread | raw e-mail | index | archive | help
>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 <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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011100103.eAA13Ub73004>