Subject: pkg/23325: net/net-snmp error compile in Darwin 7 with USE_INET6 = YES
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <king@v2project.com>
List: netbsd-bugs
Date: 10/31/2003 17:46:48
>Number:         23325
>Category:       pkg
>Synopsis:       net/net-snmp error compile in Darwin 7 with USE_INET6 = YES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 31 17:47:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jose R.Rey
>Release:        
>Organization:
Materia Gris
>Environment:
Darwin tech2.local 7.0.0 Darwin Kernel Version 7.0.0: Wed Sep 24 15:48:39 PDT 2003; root:xnu/xnu-517.obj~1/RELEASE_PPC  Power Macintosh powerpc
>Description:
bmake with default "USE_INET6 = YES" options give an error, with "USE_INET6 = NO" it make the job

snmpUDPIPv6Domain.c: In function `inet_make_mask_addr':
snmpUDPIPv6Domain.c:615: error: `uint8_t' undeclared (first use in this function)
snmpUDPIPv6Domain.c:615: error: (Each undeclared identifier is reported only once
snmpUDPIPv6Domain.c:615: error: for each function it appears in.)
snmpUDPIPv6Domain.c:615: error: parse error before ')' token
snmpUDPIPv6Domain.c:622: error: parse error before ')' token
snmpUDPIPv6Domain.c:628: error: parse error before ')' token
snmpUDPIPv6Domain.c: In function `inet_addr_complement':
snmpUDPIPv6Domain.c:663: error: `uint8_t' undeclared (first use in this function)
snmpUDPIPv6Domain.c:663: error: parse error before ')' token
snmpUDPIPv6Domain.c:664: error: parse error before ')' token
snmpUDPIPv6Domain.c: In function `inet_addr_and':
snmpUDPIPv6Domain.c:701: error: `uint8_t' undeclared (first use in this function)
snmpUDPIPv6Domain.c:701: error: parse error before ')' token
snmpUDPIPv6Domain.c:702: error: parse error before ')' token
snmpUDPIPv6Domain.c:703: error: parse error before ')' token
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/net-snmp/work/net-snmp-5.0.9/snmplib
*** Error code 1


full config messages begin:

===> Configuring for net-snmp-5.0.9
creating cache ./config.cache
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 gcc... gcc
checking whether the C compiler (gcc -O2 -I/usr/pkg/include  -L/usr/pkg/lib) works... yes
checking whether the C compiler (gcc -O2 -I/usr/pkg/include  -L/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking host system type... powerpc-apple-darwin
checking build system type... powerpc-apple-darwin
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... no
checking for ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking for a sed that does not truncate output... /usr/pkg/bin/gsed
checking whether ln -s works... yes
checking how to recognise dependent libraries... file_magic Mach-O dynamically linked shared library
checking for object suffix... o
checking command to parse /usr/bin/nm -p output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (ld) supports shared libraries... yes
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... darwin dyld
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... 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... (cached) yes
checking whether bmake sets ${MAKE}... yes
checking for ps... /bin/ps
checking for perl... /usr/pkg/bin/perl
checking for whoami... whoami
checking for sed... /usr/pkg/bin/gsed
checking for autoconf... no
checking for autoheader... no
checking for uname... /usr/bin/uname
checking for working const... yes
checking for inline... inline
checking for net-snmp version number... 5.0.9
checking for developer gcc flags... 
checking host system type... powerpc-apple-darwin
checking target system type... powerpc-apple-darwin
checking build system type... powerpc-apple-darwin
checking for system include file... net-snmp/system/darwin.h
checking for machine-type include file... net-snmp/machine/generic.h
checking for gcc... /usr/pkgsrc/net/net-snmp/work/.buildlink/bin/gcc
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 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 agent_mibs utilities smux host mibII/ipv6.
checking for and configuring mib modules pieces to use...  mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx agent_mibs 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/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 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 agentx/master agentx/subagent utilities/override smux/smux host/hr_system host/hr_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 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:SNMPv2-MIB:RFC1213-MIB:NOTIFICATION-LOG-MIB:UCD-SNMP-MIB:UCD-DEMO-MIB:SNMP-TARGET-MIB:NET-SNMP-AGENT-MIB:HOST-RESOURCES-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... /mach_kernel
checking for mount table location... unknown
checking for location of swap device... none
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 tcpd.h... yes
checking for TCP wrappers library -lwrap... 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... yes
checking for dlopen... (cached) 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... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdarg.h... yes
checking for string.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for netinet/tcpip.h... yes
checking for netinet/in.h... yes
checking for netinet/ip.h... yes
checking for netinet/ip_icmp.h... yes
checking for net/if.h... yes
checking for netdb.h... yes
checking for sys/dmap.h... yes
checking for machine/pte.h... no
checking for xti.h... no
checking for sys/sockio.h... yes
checking for sys/socket.h... yes
checking for sys/un.h... yes
checking for fstab.h... yes
checking for sys/fs.h... no
checking for mtab.h... no
checking for ufs/fs.h... no
checking for ufs/ffs/fs.h... yes
checking for sys/fixpoint.h... no
checking for machine/param.h... yes
checking for sys/vm.h... yes
checking for vm/vm.h... no
checking for sys/vmmeter.h... yes
checking for sys/vmparam.h... yes
checking for sys/vmmac.h... no
checking for sys/vmsystm.h... no
checking for sys/mbuf.h... yes
checking for sys/time.h... yes
checking for sys/swap.h... no
checking for inet/mib2.h... no
checking for sys/statvfs.h... no
checking for sys/vfs.h... no
checking for sys/mnttab.h... no
checking for sys/user.h... yes
checking for sys/proc.h... yes
checking for sys/select.h... yes
checking for mntent.h... no
checking for sys/mntent.h... no
checking for kstat.h... no
checking for utsname.h... no
checking for sys/utsname.h... yes
checking for sys/cdefs.h... yes
checking for getopt.h... yes
checking for locale.h... yes
checking for pthread.h... yes
checking for sys/loadavg.h... no
checking for regex.h... yes
checking for linux/tasks.h... no
checking for pwd.h... yes
checking for grp.h... yes
checking for utmpx.h... no
checking for malloc.h... no
checking for sys/param.h... yes
checking for net/if_dl.h... yes
checking for sys/sysctl.h... yes
checking for stdlib.h... yes
checking for net/if_mib.h... yes
checking for net/if_types.h... yes
checking for net/if_var.h... yes
checking for sys/queue.h... yes
checking for osreldate.h... no
checking for machine/types.h... yes
checking for sys/socketvar.h... yes
checking for sys/conf.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/tcp.h... yes
checking for netinet/udp.h... yes
checking for netinet/in_var.h... yes
checking for netinet/if_ether.h... yes
checking for netinet/ip_var.h... yes
checking for netinet/tcp_timer.h... yes
checking for netinet/tcp_var.h... yes
checking for netinet/tcp_fsm.h... yes
checking for netinet/udp_var.h... yes
checking for netinet/icmp_var.h... yes
checking for sys/protosw.h... yes
checking for nlist.h... yes
checking for ioctls.h... no
checking for asm/page.h... no
checking for netipx/ipx.h... no
checking for arpa/inet.h... yes
checking for kvm.h... yes
checking for sys/pool.h... no
checking for uvm/uvm_param.h... no
checking for uvm/uvm_extern.h... no
checking for vm/vm_param.h... no
checking for vm/vm_extern.h... no
checking for sys/mount.h... yes
checking for vm/swap_pager.h... no
checking for ufs/ufs/dinode.h... yes
checking for sys/stat.h... yes
checking for sys/vnode.h... yes
checking for ufs/ufs/quota.h... yes
checking for ufs/ufs/inode.h... yes
checking for sys/hashing.h... no
checking for sys/tcpipstats.h... no
checking for sys/sysmp.h... no
checking for err.h... yes
checking for sys/filio.h... yes
checking for sgtty.h... yes
checking for sys/statfs.h... no
checking for net/route.h... yes
checking for sys/dkio.h... no
checking for sys/diskio.h... no
checking for sys/pstat.h... no
checking for linux/hdreg.h... no
checking for pkglocs.h... no
checking for pkginfo.h... no
checking for winsock.h... no
checking for io.h... no
checking for sys/stream.h... no
checking for netinet/ip6.h... yes
checking for netinet6/in6_var.h... yes
checking for netinet6/in6_pcb.h... no
checking for netinet6/ip6_var.h... no
checking for netinet6/tcp6.h... no
checking for netinet6/tcp6_fsm.h... no
checking for netinet6/nd6.h... yes
checking for netinet6/tcp6_timer.h... no
checking for netinet6/tcp6_var.h... no
checking for dlfcn.h... (cached) yes
checking for search.h... yes
checking for rpmio.h... no
checking for rpm/rpmio.h... no
checking for netinet/in_pcb.h... yes
checking for sys/disklabel.h... yes
checking for openssl/hmac.h... yes
checking for openssl/evp.h... yes
checking for openssl/aes.h... yes
checking for openssl/des.h... yes
checking for lpstat... /usr/bin/lpstat
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 correct flags to ps... acx
checking whether byte ordering is bigendian... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether gcc needs -traditional... no
checking for 8-bit clean 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... no
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... yes
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... no
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... yes
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 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) no
checking Location to write persistent information... (cached) /var/net-snmp
updating cache ./config.cache
creating ./config.status
creating Makefile
creating snmplib/Makefile
creating apps/Makefile
creating apps/snmpnetstat/Makefile
creating agent/Makefile
creating agent/helpers/Makefile
creating agent/mibgroup/Makefile
creating local/Makefile
creating testing/Makefile
creating man/Makefile
creating mibs/Makefile
creating net-snmp-config
creating include/net-snmp/net-snmp-config.h

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

  UCD-SNMP compatability:     enabled
  Net-SNMP Version:           5.0.9
  Building for:               darwin
  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 agent_mibs utilities smux host mibII/ipv6
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES128 AES192 AES256

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


>How-To-Repeat:

>Fix:

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