Subject: pkg/14045: cannot compile ucd-snmp-current on NetBSD-current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <igy@arhc.org>
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
>Closed-Date:
>Last-Modified:
>Originator:     Naoto Shimazaki
>Release:        NetBSD-current
>Organization:
PRUG
>Environment:
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
>Description:
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

>How-To-Repeat:
cd pkgsrc/net/ucd-snmp-current
make clean
make

>Fix:
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:
 post-extract:
 	@${ECHO} 'int allow_severity, deny_severity;' >${WRKSRC}/snmplib/libwrap.c
+	cp ${WRKSRC}/s/netbsd.h ${WRKSRC}/s/netbsdelf.h
 
 pre-configure:
 	cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf

>Release-Note:
>Audit-Trail:
>Unformatted: