Subject: Re: build failure for net/net-snmp on Mac OS X 10.4.7
To: Mark E. Perkins <>
From: Brian A. Seklecki <>
List: pkgsrc-users
Date: 07/29/2006 21:41:23
On Sat, 2006-07-29 at 20:31, Mark E. Perkins wrote:
> When attempting to build net-snmp-5.3.1, I get the following error:
>  gcc -pipe -I../../include -I. -I../../agent -I../../agent/mibgroup
> -I../../snmplib -no-cpp-precomp
> -I/Volumes/NetBSD/pkgsrc/net/net-snmp/work/.buildlink/include -O2 -Ddarwin8 -c
> host/hr_storage.c  -fno-common -DPIC -o host/.libs/hr_storage.o
> host/hr_storage.c: In function 'var_hrstore':

...Yep.   Welcome to Net-SNMP v.s. Pkgsrc.  See:

.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+=        --with-mib-modules="smux host ucd-snmp/diskio"
CONFIGURE_ARGS+=        --with-mib-modules="smux host"
.if !empty(MACHINE_PLATFORM:MDarwin-[567].*)
CONFIGURE_ARGS+=        --with-out-mib-modules="ucd-snmp/diskio mibII"
.endif Makefile.  Check your config.log in work/net-snmp-5.3.1*/config.log
for your --with-out-modules and --with-mib-modules.