Subject: pkg/28720: net-snmp pkgsrc fails on sparc64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <peter@boku.net>
List: pkgsrc-bugs
Date: 12/20/2004 05:30:00
>Number:         28720
>Category:       pkg
>Synopsis:       net-snmp pkgsrc fails on sparc64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 20 05:30:00 +0000 2004
>Originator:     Peter Eisch
>Release:        2.0
>Organization:
>Environment:
NetBSD zany 2.0 NetBSD 2.0 (GENERIC) #0: Thu Dec  2 09:26:52 CST 2004  peter@pixie:/builds/netbsd-2-0/sparc64/obj/builds/netbsd-2-0/src/sys/arch/sparc64/compile/GENERIC sparc64
>Description:
from a fresh pkgsrc, with all dependencies freshly built, the pkgsrc net-snmp builds fine on i386, but fails to build on sparc64.  (I haven't tried building it elsewhere yet.)  I can make this system available if it would aid in the issue resolution:

zany# cd /usr/pkgsrc/net/net-snmp
zany# make package
===> Checking for vulnerabilities in net-snmp-5.1.2nb2
===> Cleaning for digest-20021220
===> Checking for vulnerabilities in digest-20021220
===> Extracting for digest-20021220
===> Patching for digest-20021220
===> Overriding tools for digest-20021220
===> Creating toolchain wrappers for digest-20021220
===> Configuring for digest-20021220
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... sparc64-unknown-netbsd2.0
checking host system type... sparc64--netbsd
checking whether make sets $(MAKE)... yes
..
cc -O2 -Wl,-R/usr/pkg/lib -o digest digest.o md5c.o rmd160.o rmd160hl.o sha2.o sha2hl.o  md5hl.o sha1.o sha1hl.o 
=> Unwrapping files-to-be-installed.
===> Checking for vulnerabilities in digest-20021220
===> Installing for digest-20021220
/bin/sh ./mkinstalldirs /usr/pkg/bin
install -c -s -o root -g wheel -m 555 digest /usr/pkg/bin/digest
/bin/sh ./mkinstalldirs /usr/pkg/man/man1
install -c -o root -g wheel -m 444 digest.1 /usr/pkg/man/man1/digest.1
===> Registering installation for digest-20021220
===> Packaging digest-20021220
===> Building binary package for digest-20021220
Creating package /usr/pkgsrc/packages/All/digest-20021220.tgz
Using SrcDir value of /usr/pkg
Registering depends:.
===> Cleaning for digest-20021220
=> Checksum OK for net-snmp-5.1.2.tar.gz.
===> Extracting for net-snmp-5.1.2nb2
==========================================================================
The following variables will affect the build process of this package,
net-snmp-5.1.2nb2.  Their current value is shown below:

        * USE_INET6 = YES

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
===> Required package {perl>=5.0,perl-thread>=5.0}: NOT found
===> Verifying package for ../../lang/perl58
===> Checking for vulnerabilities in perl-5.8.5nb5
=> perl-5.8.5.tar.bz2 doesn't seem to exist on this system.
=> Attempting to fetch perl-5.8.5.tar.bz2 from ftp://cpan.pair.com/src/.
=> [9464689 bytes]
Connected to cpan.pair.com.
220 cpan.pair.com NcFTPd Server (licensed copy) ready.
331 Guest login ok, send your complete e-mail address as password.
230-You are user #1 of 128 simultaneous users allowed.
230-
..
===> [Automatic ELF shared object handling]
===> Please note the following:

===========================================================================
$NetBSD: MESSAGE,v 1.1 2004/01/08 19:18:00 jlam Exp $

perl-5.8.5nb5 will use the following directory as the default
location of the site-specific Perl modules:

        /usr/pkg/lib/perl5/site_perl/5.8.5

===========================================================================

===> Registering installation for perl-5.8.5nb5
===> Packaging perl-5.8.5nb5
===> Building binary package for perl-5.8.5nb5
Creating package /usr/pkgsrc/packages/All/perl-5.8.5nb5.tgz
Using SrcDir value of /usr/pkg
Registering depends:.
Registering conflicts: perl-5.00* perl-base-[0-9]* p5-CGI-2.66 p5-CGI-2.75 p5-CGI-2.75.[0-2] p5-Data-Dumper-2.1[0-9][0-9] p5-Data-Dumper-[0-9][0-9] p5-Devel-DProf-[0-9]* p5-Devel-Peek-[0-9]* perl-mk-[0-9]* perl-thread-[0-9]*.
===> Returning to build of net-snmp-5.1.2nb2
===> Required package libtool-base>=1.5.10nb6: NOT found
===> Verifying package for ../../devel/libtool-base
===> Checking for vulnerabilities in libtool-base-1.5.10nb8
=> Checksum OK for libtool-1.5.10.tar.gz.
===> Extracting for libtool-base-1.5.10nb8
===> Patching for libtool-base-1.5.10nb8
===> Applying pkgsrc patches for libtool-base-1.5.10nb8
===> Overriding tools for libtool-base-1.5.10nb8
===> Creating toolchain wrappers for libtool-base-1.5.10nb8
===> Configuring for libtool-base-1.5.10nb8
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
configure: creating cache config.cache
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for gawk... /usr/bin/awk
..
Making install in tests
install -c -o root -g wheel -m 555 /usr/pkgsrc/devel/libtool-base/work/libtool-1.5.10/shlibtool /usr/pkg/bin/shlibtool
===> Registering installation for libtool-base-1.5.10nb8
===> Packaging libtool-base-1.5.10nb8
===> Building binary package for libtool-base-1.5.10nb8
Creating package /usr/pkgsrc/packages/All/libtool-base-1.5.10nb8.tgz
Using SrcDir value of /usr/pkg
Registering depends:.
Registering conflicts: glibtool-[0-9]* libtool<=1.3.5nb11.
===> Returning to build of net-snmp-5.1.2nb2
===> Patching for net-snmp-5.1.2nb2
===> Applying pkgsrc patches for net-snmp-5.1.2nb2
===> Overriding tools for net-snmp-5.1.2nb2
===> Creating toolchain wrappers for net-snmp-5.1.2nb2
===> Configuring for net-snmp-5.1.2nb2
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking what to build and install...  agent apps man local mibs
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
checking if I need to feed myself to ksh... no
checking for sparc64--netbsd-gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for AIX... no
checking build system type... sparc64-unknown-netbsd2.0
checking host system type... sparc64--netbsd
checking for ld used by GCC... /usr/pkgsrc/net/net-snmp/work/.wrapper/bin/ld
checking if the linker (/usr/pkgsrc/net/net-snmp/work/.wrapper/bin/ld) is GNU ld... yes
checking for /usr/pkgsrc/net/net-snmp/work/.wrapper/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking for a sed that does not truncate output... /usr/bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... match_pattern /lib[^/\.]+\.so$
checking command to parse nm output... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for sparc64--netbsd-ranlib... no
checking for ranlib... ranlib
checking for sparc64--netbsd-strip... no
checking for strip... strip
checking for objdir... .libs
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/pkgsrc/net/net-snmp/work/.wrapper/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... NetBSD ld.elf_so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... yes
creating libtool
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ps... /bin/ps
checking for perl... /usr/pkg/bin/perl
checking for whoami... whoami
checking for sed... /usr/bin/sed
checking for autoconf... no
checking for autoheader... no
checking for uname... /usr/bin/uname
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for net-snmp version number... 5.1.2
checking for developer gcc flags... 
checking target system type... sparc64--netbsd
checking for system include file... net-snmp/system/netbsd.h
checking for machine-type include file... net-snmp/machine/generic.h
checking for cc... /usr/pkgsrc/net/net-snmp/work/.wrapper/bin/cc
checking for additional cpp flags... -x c
checking ipv6 stack type... "kame, yes, using libc"
checking whether we have to build PIC code... no
checking for platform specific source... checking for and configuring transport modules to use...  Callback Unix TCP UDP TCPIPv6 UDPIPv6.
checking for security modules to use...  usm
checking for and configuring mib modules to use...  mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities smux host mibII/ipv6.
checking for and configuring mib modules pieces to use...  mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities smux host mibII/ipv6 mibII/system_mib mibII/sysORTable mibII/at mibII/interfaces mibII/snmp_mib mibII/tcp mibII/icmp mibII/ip mibII/udp mibII/vacm_vars mibII/setSerialNo ucd-snmp/vmstat_netbsd1 ucd-snmp/memory_netbsd1 ucd-snmp/proc ucd-snmp/versioninfo ucd-snmp/pass ucd-snmp/pass_persist ucd-snmp/disk ucd-snmp/loadave ucd-snmp/extensible ucd-snmp/errormib ucd-snmp/file ucd-snmp/dlmod ucd-snmp/proxy ucd-snmp/logmatch snmpv3/snmpEngine snmpv3/snmpMPDStats snmpv3/usmStats snmpv3/usmUser notification/snmpNotifyTable notification/snmpNotifyFilterTable notification/snmpNotifyFilterProfileTable target/snmpTargetAddrEntry target/snmpTargetParamsEntry target/target target/target_counters agent/nsTransactionTable agent/nsModuleTable agent/nsDebug agent/nsCache agent/nsLogging agentx/master agentx/subagent utilities/override smux/smux host/hr_system host/h
 r_storage host/hr_device host/hr_other host/hr_proc host/hr_network host/hr_print host/hr_disk host/hr_partition host/hr_filesys host/hr_swrun host/hr_swinst mibII/var_route mibII/route_write util_funcs mibII/tcpTable mibII/ipAddr mibII/udpTable mibII/vacm_context utilities/execute header_complex agentx/protocol agentx/client agentx/master_admin agentx/agentx_config.
checking if directories need to be created... .
checking default mib files to read... IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:SNMPv2-MIB:RFC1213-MIB:NOTIFICATION-LOG-MIB:UCD-SNMP-MIB:UCD-DEMO-MIB:SNMP-TARGET-MIB:NET-SNMP-AGENT-MIB:HOST-RESOURCES-TYPES:IPV6-ICMP-MIB:IPV6-MIB:IPV6-TCP-MIB:IPV6-UDP-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:UCD-DLMOD-MIB:SNMP-FRAMEWORK-MIB:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB:SNMP-NOTIFICATION-MIB:SNMPv2-TM
checking for location of system kernel... /dev/ksyms
checking for mount table location... unknown
checking for location of swap device... /dev/drum
checking for asin in -lm... yes
checking for nlist in -lelf... no
checking for gethostbyname... yes
checking for getservbyname... yes
checking for kstat_lookup in -lkstat... no
checking for nlist in -lmld... no
checking for EVP_md5 in -lcrypto... yes
checking for AES_cfb128_encrypt... yes
checking for des_cbc_encrypt in -ldes... 
yes
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking for TCP wrappers library -lwrap... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzread in -lz... yes
checking for bzread in -lbz2... no
checking for BZ2_bzread in -lbz2... yes
checking for dbopen in -ldb1... no
checking for dbopen in -ldb... no
checking for db_create in -ldb-3.1... no
checking for db_create in -ldb-3.0... no
checking for poptParseArgvString in -lpopt... no
checking for Fopen in -lrpmio... no
checking for rpmGetFilesystemList in -lrpm... no
checking for rpmdbOpen in -lrpmdb... no
checking for kvm_read in -lkvm... yes
checking for dlopen in -ldl... no
checking for dlopen... yes
checking for kvm_openfiles... yes
checking for nlist... yes
checking for knlist... no
checking for kvm_getprocs... yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/wait.h that is POSIX.1 compatible... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking netinet/tcpip.h usability... no
checking netinet/tcpip.h presence... yes
configure: WARNING: netinet/tcpip.h: present but cannot be compiled
configure: WARNING: netinet/tcpip.h: check for missing prerequisite headers?
configure: WARNING: netinet/tcpip.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/tcpip.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/ip.h usability... no
checking netinet/ip.h presence... yes
configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/ip.h... yes
checking netinet/ip_icmp.h usability... no
checking netinet/ip_icmp.h presence... yes
configure: WARNING: netinet/ip_icmp.h: present but cannot be compiled
configure: WARNING: netinet/ip_icmp.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip_icmp.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/ip_icmp.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/dmap.h usability... no
checking sys/dmap.h presence... no
checking for sys/dmap.h... no
checking machine/pte.h usability... yes
checking machine/pte.h presence... yes
checking for machine/pte.h... yes
checking xti.h usability... no
checking xti.h presence... no
checking for xti.h... no
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking fstab.h usability... yes
checking fstab.h presence... yes
checking for fstab.h... yes
checking sys/fs.h usability... no
checking sys/fs.h presence... no
checking for sys/fs.h... no
checking mtab.h usability... no
checking mtab.h presence... no
checking for mtab.h... no
checking ufs/fs.h usability... no
checking ufs/fs.h presence... no
checking for ufs/fs.h... no
checking ufs/ffs/fs.h usability... yes
checking ufs/ffs/fs.h presence... yes
checking for ufs/ffs/fs.h... yes
checking sys/fixpoint.h usability... no
checking sys/fixpoint.h presence... no
checking for sys/fixpoint.h... no
checking machine/param.h usability... yes
checking machine/param.h presence... yes
checking for machine/param.h... yes
checking sys/vm.h usability... no
checking sys/vm.h presence... no
checking for sys/vm.h... no
checking vm/vm.h usability... no
checking vm/vm.h presence... no
checking for vm/vm.h... no
checking sys/vmmeter.h usability... yes
checking sys/vmmeter.h presence... yes
checking for sys/vmmeter.h... yes
checking sys/vmparam.h usability... no
checking sys/vmparam.h presence... no
checking for sys/vmparam.h... no
checking sys/vmmac.h usability... no
checking sys/vmmac.h presence... no
checking for sys/vmmac.h... no
checking sys/vmsystm.h usability... no
checking sys/vmsystm.h presence... no
checking for sys/vmsystm.h... no
checking sys/mbuf.h usability... no
checking sys/mbuf.h presence... yes
configure: WARNING: sys/mbuf.h: present but cannot be compiled
configure: WARNING: sys/mbuf.h: check for missing prerequisite headers?
configure: WARNING: sys/mbuf.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for sys/mbuf.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/swap.h usability... yes
checking sys/swap.h presence... yes
checking for sys/swap.h... yes
checking inet/mib2.h usability... no
checking inet/mib2.h presence... no
checking for inet/mib2.h... no
checking sys/statvfs.h usability... no
checking sys/statvfs.h presence... yes
configure: WARNING: sys/statvfs.h: present but cannot be compiled
configure: WARNING: sys/statvfs.h: check for missing prerequisite headers?
configure: WARNING: sys/statvfs.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for sys/statvfs.h... yes
checking sys/vfs.h usability... no
checking sys/vfs.h presence... no
checking for sys/vfs.h... no
checking sys/mnttab.h usability... no
checking sys/mnttab.h presence... no
checking for sys/mnttab.h... no
checking sys/user.h usability... no
checking sys/user.h presence... yes
configure: WARNING: sys/user.h: present but cannot be compiled
configure: WARNING: sys/user.h: check for missing prerequisite headers?
configure: WARNING: sys/user.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for sys/user.h... yes
checking sys/proc.h usability... no
checking sys/proc.h presence... yes
configure: WARNING: sys/proc.h: present but cannot be compiled
configure: WARNING: sys/proc.h: check for missing prerequisite headers?
configure: WARNING: sys/proc.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for sys/proc.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking mntent.h usability... no
checking mntent.h presence... no
checking for mntent.h... no
checking sys/mntent.h usability... no
checking sys/mntent.h presence... no
checking for sys/mntent.h... no
checking kstat.h usability... no
checking kstat.h presence... no
checking for kstat.h... no
checking utsname.h usability... no
checking utsname.h presence... no
checking for utsname.h... no
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking linux/tasks.h usability... no
checking linux/tasks.h presence... no
checking for linux/tasks.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking net/if_dl.h usability... yes
checking net/if_dl.h presence... yes
checking for net/if_dl.h... yes
checking sys/sysctl.h usability... no
checking sys/sysctl.h presence... yes
configure: WARNING: sys/sysctl.h: present but cannot be compiled
configure: WARNING: sys/sysctl.h: check for missing prerequisite headers?
configure: WARNING: sys/sysctl.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for sys/sysctl.h... yes
checking for stdlib.h... (cached) yes
checking net/if_mib.h usability... no
checking net/if_mib.h presence... no
checking for net/if_mib.h... no
checking net/if_types.h usability... yes
checking net/if_types.h presence... yes
checking for net/if_types.h... yes
checking net/if_var.h usability... no
checking net/if_var.h presence... no
checking for net/if_var.h... no
checking sys/queue.h usability... yes
checking sys/queue.h presence... yes
checking for sys/queue.h... yes
checking osreldate.h usability... no
checking osreldate.h presence... no
checking for osreldate.h... no
checking machine/types.h usability... yes
checking machine/types.h presence... yes
checking for machine/types.h... yes
checking sys/socketvar.h usability... yes
checking sys/socketvar.h presence... yes
checking for sys/socketvar.h... yes
checking sys/conf.h usability... yes
checking sys/conf.h presence... yes
checking for sys/conf.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking netinet/udp.h usability... yes
checking netinet/udp.h presence... yes
checking for netinet/udp.h... yes
checking netinet/in_var.h usability... no
checking netinet/in_var.h presence... yes
configure: WARNING: netinet/in_var.h: present but cannot be compiled
configure: WARNING: netinet/in_var.h: check for missing prerequisite headers?
configure: WARNING: netinet/in_var.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/in_var.h... yes
checking netinet/if_ether.h usability... no
checking netinet/if_ether.h presence... yes
configure: WARNING: netinet/if_ether.h: present but cannot be compiled
configure: WARNING: netinet/if_ether.h: check for missing prerequisite headers?
configure: WARNING: netinet/if_ether.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/if_ether.h... yes
checking netinet/ip_var.h usability... no
checking netinet/ip_var.h presence... yes
configure: WARNING: netinet/ip_var.h: present but cannot be compiled
configure: WARNING: netinet/ip_var.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip_var.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/ip_var.h... yes
checking netinet/tcp_timer.h usability... yes
checking netinet/tcp_timer.h presence... yes
checking for netinet/tcp_timer.h... yes
checking netinet/tcp_var.h usability... no
checking netinet/tcp_var.h presence... yes
configure: WARNING: netinet/tcp_var.h: present but cannot be compiled
configure: WARNING: netinet/tcp_var.h: check for missing prerequisite headers?
configure: WARNING: netinet/tcp_var.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/tcp_var.h... yes
checking netinet/tcp_fsm.h usability... yes
checking netinet/tcp_fsm.h presence... yes
checking for netinet/tcp_fsm.h... yes
checking netinet/udp_var.h usability... no
checking netinet/udp_var.h presence... yes
configure: WARNING: netinet/udp_var.h: present but cannot be compiled
configure: WARNING: netinet/udp_var.h: check for missing prerequisite headers?
configure: WARNING: netinet/udp_var.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/udp_var.h... yes
checking netinet/icmp_var.h usability... no
checking netinet/icmp_var.h presence... yes
configure: WARNING: netinet/icmp_var.h: present but cannot be compiled
configure: WARNING: netinet/icmp_var.h: check for missing prerequisite headers?
configure: WARNING: netinet/icmp_var.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/icmp_var.h... yes
checking sys/protosw.h usability... yes
checking sys/protosw.h presence... yes
checking for sys/protosw.h... yes
checking nlist.h usability... yes
checking nlist.h presence... yes
checking for nlist.h... yes
checking ioctls.h usability... no
checking ioctls.h presence... no
checking for ioctls.h... no
checking asm/page.h usability... no
checking asm/page.h presence... no
checking for asm/page.h... no
checking netipx/ipx.h usability... no
checking netipx/ipx.h presence... no
checking for netipx/ipx.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking kvm.h usability... yes
checking kvm.h presence... yes
checking for kvm.h... yes
checking sys/pool.h usability... yes
checking sys/pool.h presence... yes
checking for sys/pool.h... yes
checking uvm/uvm_param.h usability... yes
checking uvm/uvm_param.h presence... yes
checking for uvm/uvm_param.h... yes
checking uvm/uvm_extern.h usability... yes
checking uvm/uvm_extern.h presence... yes
checking for uvm/uvm_extern.h... yes
checking vm/vm_param.h usability... no
checking vm/vm_param.h presence... no
checking for vm/vm_param.h... no
checking vm/vm_extern.h usability... no
checking vm/vm_extern.h presence... no
checking for vm/vm_extern.h... no
checking sys/mount.h usability... no
checking sys/mount.h presence... yes
configure: WARNING: sys/mount.h: present but cannot be compiled
configure: WARNING: sys/mount.h: check for missing prerequisite headers?
configure: WARNING: sys/mount.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for sys/mount.h... yes
checking vm/swap_pager.h usability... no
checking vm/swap_pager.h presence... no
checking for vm/swap_pager.h... no
checking ufs/ufs/dinode.h usability... yes
checking ufs/ufs/dinode.h presence... yes
checking for ufs/ufs/dinode.h... yes
checking for sys/stat.h... (cached) yes
checking sys/vnode.h usability... yes
checking sys/vnode.h presence... yes
checking for sys/vnode.h... yes
checking ufs/ufs/quota.h usability... yes
checking ufs/ufs/quota.h presence... yes
checking for ufs/ufs/quota.h... yes
checking ufs/ufs/inode.h usability... yes
checking ufs/ufs/inode.h presence... yes
checking for ufs/ufs/inode.h... yes
checking sys/hashing.h usability... no
checking sys/hashing.h presence... no
checking for sys/hashing.h... no
checking sys/tcpipstats.h usability... no
checking sys/tcpipstats.h presence... no
checking for sys/tcpipstats.h... no
checking sys/sysmp.h usability... no
checking sys/sysmp.h presence... no
checking for sys/sysmp.h... no
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking sys/filio.h usability... yes
checking sys/filio.h presence... yes
checking for sys/filio.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking net/route.h usability... yes
checking net/route.h presence... yes
checking for net/route.h... yes
checking sys/dkio.h usability... yes
checking sys/dkio.h presence... yes
checking for sys/dkio.h... yes
checking sys/diskio.h usability... no
checking sys/diskio.h presence... no
checking for sys/diskio.h... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking linux/hdreg.h usability... no
checking linux/hdreg.h presence... no
checking for linux/hdreg.h... no
checking pkglocs.h usability... no
checking pkglocs.h presence... no
checking for pkglocs.h... no
checking pkginfo.h usability... no
checking pkginfo.h presence... no
checking for pkginfo.h... no
checking winsock.h usability... no
checking winsock.h presence... no
checking for winsock.h... no
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking netinet/ip6.h usability... no
checking netinet/ip6.h presence... yes
configure: WARNING: netinet/ip6.h: present but cannot be compiled
configure: WARNING: netinet/ip6.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip6.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/ip6.h... yes
checking netinet6/in6_var.h usability... no
checking netinet6/in6_var.h presence... yes
configure: WARNING: netinet6/in6_var.h: present but cannot be compiled
configure: WARNING: netinet6/in6_var.h: check for missing prerequisite headers?
configure: WARNING: netinet6/in6_var.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet6/in6_var.h... yes
checking netinet6/in6_pcb.h usability... no
checking netinet6/in6_pcb.h presence... yes
configure: WARNING: netinet6/in6_pcb.h: present but cannot be compiled
configure: WARNING: netinet6/in6_pcb.h: check for missing prerequisite headers?
configure: WARNING: netinet6/in6_pcb.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet6/in6_pcb.h... yes
checking netinet6/ip6_var.h usability... no
checking netinet6/ip6_var.h presence... yes
configure: WARNING: netinet6/ip6_var.h: present but cannot be compiled
configure: WARNING: netinet6/ip6_var.h: check for missing prerequisite headers?
configure: WARNING: netinet6/ip6_var.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet6/ip6_var.h... yes
checking netinet6/tcp6.h usability... no
checking netinet6/tcp6.h presence... no
checking for netinet6/tcp6.h... no
checking netinet6/tcp6_fsm.h usability... no
checking netinet6/tcp6_fsm.h presence... no
checking for netinet6/tcp6_fsm.h... no
checking netinet6/nd6.h usability... no
checking netinet6/nd6.h presence... yes
configure: WARNING: netinet6/nd6.h: present but cannot be compiled
configure: WARNING: netinet6/nd6.h: check for missing prerequisite headers?
configure: WARNING: netinet6/nd6.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet6/nd6.h... yes
checking netinet6/tcp6_timer.h usability... no
checking netinet6/tcp6_timer.h presence... no
checking for netinet6/tcp6_timer.h... no
checking netinet6/tcp6_var.h usability... no
checking netinet6/tcp6_var.h presence... no
checking for netinet6/tcp6_var.h... no
checking for dlfcn.h... (cached) yes
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking rpmio.h usability... no
checking rpmio.h presence... no
checking for rpmio.h... no
checking rpm/rpmio.h usability... no
checking rpm/rpmio.h presence... no
checking for rpm/rpmio.h... no
checking for netinet/in_pcb.h... yes
checking for sys/disklabel.h... yes
checking openssl/hmac.h usability... yes
checking openssl/hmac.h presence... yes
checking for openssl/hmac.h... yes
checking openssl/evp.h usability... yes
checking openssl/evp.h presence... yes
checking for openssl/evp.h... yes
checking openssl/aes.h usability... yes
checking openssl/aes.h presence... yes
checking for openssl/aes.h... yes
checking openssl/des.h usability... yes
checking openssl/des.h presence... yes
checking for openssl/des.h... yes
checking security/cryptoki.h usability... no
checking security/cryptoki.h presence... no
checking for security/cryptoki.h... no
checking for lpstat... (cached) no
checking for cgetnext... yes
checking for authentication support... OpenSSL Support
checking for off_t... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for socklen_t... yes
checking for in_addr_t... yes
checking for ssize_t... yes
checking for correct flags to ps... acx
checking whether byte ordering is bigendian... yes
checking for working alloca.h... no
checking for alloca... yes
checking whether cc needs -traditional... no
checking for working memcmp... yes
checking return type of signal handlers... void
checking for getmntent in -lsun... no
checking for getmntent in -lseq... no
checking for getmntent in -lgen... no
checking for getmntent... no
checking for setmntent... no
checking for gethostname... yes
checking for uname... yes
checking for gettimeofday... yes
checking for select... yes
checking for socket... yes
checking for strtol... yes
checking for strtoul... yes
checking for strlcpy... yes
checking for strchr... yes
checking for strdup... yes
checking for memcpy... yes
checking for memmove... yes
checking for index... yes
checking for bcopy... yes
checking for strcasestr... yes
checking for regcomp... yes
checking for signal... yes
checking for setsid... yes
checking for sigset... yes
checking for sigblock... yes
checking for sighold... yes
checking for strerror... yes
checking for setenv... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for sigaction... yes
checking for snprintf... (cached) yes
checking for strtoul... (cached) yes
checking for random... yes
checking for lrand48... yes
checking for rand... yes
checking for execv... yes
checking for system... yes
checking for fork... yes
checking for getpid... yes
checking for strncasecmp... yes
checking for sigalrm... no
checking for rpmGetPath... no
checking for getloadavg... yes
checking for getaddrinfo... yes
checking for getipnodebyname... no
checking for statvfs... no
checking for statfs... yes
checking for getdtablesize... yes
checking for getfsstat... yes
checking for usleep... yes
checking for setlocale... yes
checking for tcgetattr... yes
checking for if_nameindex... yes
checking for if_freenameindex... yes
checking for getpagesize... yes
checking for mkstemp... yes
checking for getpwnam... yes
checking for getgrnam... yes
checking for setgid... yes
checking for setuid... yes
checking for setgroups... yes
checking for setitimer... yes
checking for SIOCGIFADDR in sys/ioctl.h... yes
checking for two-argument statfs with struct fs_data (Ultrix)... no
checking if __FUNCTION__ is defined... yes
checking for sigaction.sa_sigaction... yes
checking for sockaddr.sa_len... yes
checking for sockaddr.sa_union.sa_generic.sa_family2... no
checking for rtentry.rt_dst... no
checking type of rtentry structure... BSD-4.4
checking for rtentry.rt_unit... no
checking for rtentry.rt_refcnt... yes
checking for rtentry.rt_hash... no
checking for rtentry.rt_use... yes
checking for tcpstat.tcp_rcvmemdrop... no
checking for ifnet.if_mtu... yes
checking for ifaddr.ifa_next... no
checking for ifnet.if_baudrate... yes
checking for ifnet.if_baudrate.ifs_value... no
checking for ifnet.if_speed... no
checking for ifnet.if_type... yes
checking for ifnet.if_imcasts... yes
checking for ifnet.if_iqdrops... yes
checking for ifnet.if_noproto... yes
checking for ifnet.if_omcasts... yes
checking for ifnet.if_xname... yes
checking for ifnet.if_lastchange.tv_sec... yes
checking for ifnet.if_obytes... yes
checking for ifnet.if_ibytes... yes
checking for ifnet.if_addrlist... no
checking for ifnet.if_addrhead.tqh_first... no
checking for udpstat.udps_discard... no
checking for udpstat.udps_noport... yes
checking for udpstat.udps_noportbcast... yes
checking for udpstat.udps_fullsock... yes
checking for arphd.at_next... no
checking for swdevt.sw_nblksenabled... no
checking for statvfs.f_frsize... no
checking for statfs.f_frsize... no
checking for statvfs.f_files... no
checking for statfs.f_files... yes
checking for statfs.f_ffree... yes
checking for statfs.f_favail... no
checking for nlist.n_value... yes
checking for ipstat.ips_cantforward... yes
checking for ipstat.ips_cantfrag... yes
checking for ipstat.ips_delivered... yes
checking for ipstat.ips_fragdropped... yes
checking for ipstat.ips_fragtimeout... yes
checking for ipstat.ips_localout... yes
checking for ipstat.ips_noproto... yes
checking for ipstat.ips_noroute... yes
checking for ipstat.ips_odropped... yes
checking for ipstat.ips_ofragments... yes
checking for ipstat.ips_reassembled... yes
checking for des_ks_struct.weak_key... no
checking if sysctl can read kernel information... yes
checking whether TCP timers depend on `hz'... no
checking if you have run configure before... no
checking Default version of SNMP to use... 
setting Default version of SNMP to use to...  3
checking System Contact Information... (cached) default_user@contact.domain
checking System Location... (cached) defaultlocation
checking Location to write logfile... (cached) none
checking Location to write persistent information... (cached) /var/net-snmp
configure: creating ./config.status
config.status: creating Makefile
config.status: creating snmplib/Makefile
config.status: creating apps/Makefile
config.status: creating apps/snmpnetstat/Makefile
config.status: creating agent/Makefile
config.status: creating agent/helpers/Makefile
config.status: creating agent/mibgroup/Makefile
config.status: creating local/Makefile
config.status: creating testing/Makefile
config.status: creating man/Makefile
config.status: creating mibs/Makefile
config.status: creating net-snmp-config
config.status: creating include/net-snmp/net-snmp-config.h
config.status: executing default commands

---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  UCD-SNMP compatability:     enabled
  Net-SNMP Version:           5.1.2
  Building for:               netbsd
  Network transport support:  Callback Unix TCP UDP TCPIPv6 UDPIPv6
  SNMPv3 Security Modules:    usm
  Agent MIB code:             mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities smux host mibII/ipv6
  SNMP Perl modules:          building -- not embeddable
  Embedded perl support:      disabled
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES128 AES192 AES256

---------------------------------------------------------

===> Building for net-snmp-5.1.2nb2
running config.status because the following file(s) changed:
  config.status
config.status: creating Makefile
config.status: creating snmplib/Makefile
config.status: creating apps/Makefile
config.status: creating apps/snmpnetstat/Makefile
config.status: creating agent/Makefile
config.status: creating agent/helpers/Makefile
config.status: creating agent/mibgroup/Makefile
config.status: creating local/Makefile
config.status: creating testing/Makefile
config.status: creating man/Makefile
config.status: creating mibs/Makefile
config.status: creating net-snmp-config
config.status: creating include/net-snmp/net-snmp-config.h
config.status: include/net-snmp/net-snmp-config.h is unchanged
config.status: executing default commands
cc -E                                            -Iinclude -I./include -I./agent/mibgroup -I. -I.        -DDONT_INC_STRUCTS -DBINDIR=/usr/pkg/bin                        -x c ./sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript
echo 's#DATADIR#/usr/pkg/share#g' >> sedscript
echo 's#LIBDIR#/usr/pkg/lib#g' >> sedscript
echo 's#BINDIR#/usr/pkg/bin#g' >> sedscript
echo 's#PERSISTENT_DIRECTORY#/var/net-snmp#g' >> sedscript
echo 's#SYSCONFDIR#/usr/pkg/etc#g' >> sedscript
/usr/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
making all in /usr/pkgsrc/net/net-snmp/work/net-snmp-5.1.2/snmplib
/bin/sh ../libtool --mode=compile cc -I../include -I../include  -I. -I.. -I. -I./.. -I/usr/include -I/usr/pkg/include -DINET6 -O2 -Dnetbsd1 -I/usr/include -I/usr/pkg/include -Dnetbsd -c -o snmp_client.lo snmp_client.c
mkdir .libs
 cc -I../include -I. -I.. -I./.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c snmp_client.c  -fPIC -DPIC -o .libs/snmp_client.o
 cc -I../include -I. -I.. -I./.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c snmp_client.c -o snmp_client.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile cc -I../include -I../include  -I. -I.. -I. -I./.. -I/usr/include -I/usr/pkg/include -DINET6 -O2 -Dnetbsd1 -I/usr/include -I/usr/pkg/include -Dnetbsd -c -o mib.lo mib.c
.. clean build through here ...
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c mibII/setSerialNo.c  -fPIC -DPIC -o mibII/.libs/setSerialNo.o
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c mibII/setSerialNo.c -o mibII/setSerialNo.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile cc -I../../include -I../../include  -I. -I../.. -I. -I./../..  -I./../../snmplib -I./.. -I.. -I/usr/include -I/usr/pkg/include  -DINET6 -O2 -Dnetbsd1 -I/usr/include -I/usr/pkg/include -Dnetbsd -c -o ucd-snmp/vmstat_netbsd1.lo ucd-snmp/vmstat_netbsd1.c
mkdir ucd-snmp/.libs
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/vmstat_netbsd1.c  -fPIC -DPIC -o ucd-snmp/.libs/vmstat_netbsd1.o
ucd-snmp/vmstat_netbsd1.c: In function `var_extensible_vmstat':
ucd-snmp/vmstat_netbsd1.c:191: warning: passing arg 4 of `sysctl' from incompatible pointer type
ucd-snmp/vmstat_netbsd1.c:224: warning: passing arg 4 of `sysctl' from incompatible pointer type
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/vmstat_netbsd1.c -o ucd-snmp/vmstat_netbsd1.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile cc -I../../include -I../../include  -I. -I../.. -I. -I./../..  -I./../../snmplib -I./.. -I.. -I/usr/include -I/usr/pkg/include  -DINET6 -O2 -Dnetbsd1 -I/usr/include -I/usr/pkg/include -Dnetbsd -c -o ucd-snmp/memory_netbsd1.lo ucd-snmp/memory_netbsd1.c
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/memory_netbsd1.c  -fPIC -DPIC -o ucd-snmp/.libs/memory_netbsd1.o
ucd-snmp/memory_netbsd1.c: In function `var_extensible_mem':
ucd-snmp/memory_netbsd1.c:186: warning: passing arg 4 of `sysctl' from incompatible pointer type
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/memory_netbsd1.c -o ucd-snmp/memory_netbsd1.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile cc -I../../include -I../../include  -I. -I../.. -I. -I./../..  -I./../../snmplib -I./.. -I.. -I/usr/include -I/usr/pkg/include  -DINET6 -O2 -Dnetbsd1 -I/usr/include -I/usr/pkg/include -Dnetbsd -c -o ucd-snmp/proc.lo ucd-snmp/proc.c
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/proc.c  -fPIC -DPIC -o ucd-snmp/.libs/proc.o
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/proc.c -o ucd-snmp/proc.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile cc -I../../include -I../../include  -I. -I../.. -I. -I./../..  -I./../../snmplib -I./.. -I.. -I/usr/include -I/usr/pkg/include  -DINET6 -O2 -Dnetbsd1 -I/usr/include -I/usr/pkg/include -Dnetbsd -c -o ucd-snmp/versioninfo.lo ucd-snmp/versioninfo.c
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/versioninfo.c  -fPIC -DPIC -o ucd-snmp/.libs/versioninfo.o
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/versioninfo.c -o ucd-snmp/versioninfo.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile cc -I../../include -I../../include  -I. -I../.. -I. -I./../..  -I./../../snmplib -I./.. -I.. -I/usr/include -I/usr/pkg/include  -DINET6 -O2 -Dnetbsd1 -I/usr/include -I/usr/pkg/include -Dnetbsd -c -o ucd-snmp/pass.lo ucd-snmp/pass.c
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/pass.c  -fPIC -DPIC -o ucd-snmp/.libs/pass.o
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/pass.c -o ucd-snmp/pass.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile cc -I../../include -I../../include  -I. -I../.. -I. -I./../..  -I./../../snmplib -I./.. -I.. -I/usr/include -I/usr/pkg/include  -DINET6 -O2 -Dnetbsd1 -I/usr/include -I/usr/pkg/include -Dnetbsd -c -o ucd-snmp/pass_persist.lo ucd-snmp/pass_persist.c
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/pass_persist.c  -fPIC -DPIC -o ucd-snmp/.libs/pass_persist.o
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/pass_persist.c -o ucd-snmp/pass_persist.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile cc -I../../include -I../../include  -I. -I../.. -I. -I./../..  -I./../../snmplib -I./.. -I.. -I/usr/include -I/usr/pkg/include  -DINET6 -O2 -Dnetbsd1 -I/usr/include -I/usr/pkg/include -Dnetbsd -c -o ucd-snmp/disk.lo ucd-snmp/disk.c
 cc -I../../include -I. -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/pkgsrc/net/net-snmp/work/.buildlink/include -DINET6 -O2 -Dnetbsd1 -Dnetbsd -c ucd-snmp/disk.c  -fPIC -DPIC -o ucd-snmp/.libs/disk.o
In file included from ucd-snmp/disk.c:71:
/usr/include/sys/statvfs.h:53: error: parse error before "fsblkcnt_t"
/usr/include/sys/statvfs.h:58: error: parse error before "fsfilcnt_t"
/usr/include/sys/statvfs.h:79: error: parse error before "__fsblkcnt_t"
/usr/include/sys/statvfs.h:82: error: parse error before "f_bavail"
/usr/include/sys/statvfs.h:83: error: parse error before "f_bresvd"
/usr/include/sys/statvfs.h:85: error: parse error before "f_files"
/usr/include/sys/statvfs.h:86: error: parse error before "f_ffree"
/usr/include/sys/statvfs.h:87: error: parse error before "f_favail"
/usr/include/sys/statvfs.h:88: error: parse error before "f_fresvd"
/usr/include/sys/statvfs.h:107: error: parse error before '}' token
In file included from ucd-snmp/disk.c:78:
/usr/include/sys/mount.h:51: error: conflicting types for `fsid_t'
/usr/include/sys/fstypes.h:37: error: previous declaration of `fsid_t'
/usr/include/sys/mount.h:59: error: redefinition of `struct fid'
/usr/include/sys/mount.h:455: error: redefinition of `struct fhandle'
/usr/include/sys/mount.h:567: error: conflicting types for `getmntinfo'
/usr/include/sys/statvfs.h:156: error: previous declaration of `getmntinfo'
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/net-snmp/work/net-snmp-5.1.2/agent/mibgroup
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/net-snmp/work/net-snmp-5.1.2/agent
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/net-snmp/work/net-snmp-5.1.2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/net-snmp
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/net-snmp
zany# 
>How-To-Repeat:
'make package' in pkgsrc/net/net-snmp
>Fix: