Subject: pkg/14045: cannot compile ucd-snmp-current on NetBSD-current
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/23/2001 08:45:07
>Number:         14045
>Category:       pkg
>Synopsis:       cannot compile ucd-snmp-current on NetBSD-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 23 08:46:00 PDT 2001
>Originator:     Naoto Shimazaki
>Release:        NetBSD-current
NetBSD caolila 1.5Y NetBSD 1.5Y (CAOLILA) #4: Sat Sep 22 20:01:15 JST 2001     root@caolila:/net/src/sys/arch/i386/compile/CAOLILA i386
compilation fails by "`arptab_current' undeclared"

config.h should include s/netbsd.h but configure script errornously sets s/generic.h.
becouse configure thinks the target is "netbsdelf" and thereis no s/netbsdelf.h, so
conifugre sets s/generic.h instead of s/netbsd.h

cd pkgsrc/net/ucd-snmp-current
make clean

here's patch against pkgsrc/net/ucd-snmp-current/Makefile

--- Makefile.orig	Sun Sep 23 23:51:39 2001
+++ Makefile	Sun Sep 23 23:51:27 2001
@@ -49,6 +49,7 @@
 # do not supply them:
 	@${ECHO} 'int allow_severity, deny_severity;' >${WRKSRC}/snmplib/libwrap.c
+	cp ${WRKSRC}/s/netbsd.h ${WRKSRC}/s/netbsdelf.h
 	cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf