NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/50744: uvm/uvm_extern.h: present but cannot be compiled



>Number:         50744
>Category:       bin
>Synopsis:       uvm/uvm_extern.h: present but cannot be compiled
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 02 07:45:00 +0000 2016
>Originator:     NONAKA Kimihiro
>Release:        HEAD (20160201)
>Organization:
>Environment:
NetBSD netbsd-vm 7.99.26 NetBSD 7.99.26 (GENERIC) #3: Tue Feb  2 12:39:18 JST 2016  nonaka@netbsd:/home/storage/snapshot/NetBSD/HEAD-20160127/obj.NetBSD-amd64/amd64/sys/arch/amd64/compile/GENERIC amd64
>Description:
When net-snmp build, the following message was displayed.
It was caused by the recent "Hide {p,v}{addr,size}_t and register_t" changes.

-----
checking uvm/uvm_extern.h usability... no
checking uvm/uvm_extern.h presence... yes
configure: WARNING: uvm/uvm_extern.h: present but cannot be compiled
configure: WARNING: uvm/uvm_extern.h:     check for missing prerequisite headers?
configure: WARNING: uvm/uvm_extern.h: see the Autoconf documentation
configure: WARNING: uvm/uvm_extern.h:     section "Present But Cannot Be Compiled"
configure: WARNING: uvm/uvm_extern.h: proceeding with the compiler's result
configure: WARNING:     ## ---------------------------------------------------- ##
configure: WARNING:     ## Report this to net-snmp-coders%lists.sourceforge.net@localhost ##
configure: WARNING:     ## ---------------------------------------------------- ##
-----

----- config.log
configure:16275: checking uvm/uvm_extern.h usability
configure:16275: gcc -c -fno-strict-aliasing -g -O2 -Unetbsd7 -Dnetbsd7=netbsd7  conftest.c >&5
In file included from /usr/include/uvm/uvm_extern.h:472:0,
                 from conftest.c:129:
/usr/include/uvm/uvm_map.h:130:2: error: unknown type name 'vsize_t'
  vsize_t   gap;  /* free space after */
  ^
/usr/include/uvm/uvm_map.h:131:2: error: unknown type name 'vsize_t'
  vsize_t   maxgap;  /* space in subtree */
  ^
/usr/include/uvm/uvm_map.h:134:2: error: unknown type name 'vaddr_t'
  vaddr_t   start;  /* start address */
  ^
/usr/include/uvm/uvm_map.h:135:2: error: unknown type name 'vaddr_t'
  vaddr_t   end;  /* end address */
  ^
/usr/include/uvm/uvm_map.h:218:2: error: unknown type name 'vsize_t'
  vsize_t   size;  /* virtual size */
  ^
In file included from /usr/include/uvm/uvm_extern.h:473:0,
                 from conftest.c:129:
/usr/include/uvm/uvm_pager.h:128:43: error: unknown type name 'vaddr_t'
  int (*pgo_fault)(struct uvm_faultinfo *, vaddr_t, struct vm_page **,
                                           ^
configure:16275: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Net-SNMP"
| #define PACKAGE_TARNAME "net-snmp"
| #define PACKAGE_VERSION "5.7.3"
| #define PACKAGE_STRING "Net-SNMP 5.7.3"
| #define PACKAGE_BUGREPORT "net-snmp-coders%lists.sourceforge.net@localhost"
| #define PACKAGE_URL ""
| #define NETSNMP_CONFIGURE_OPTIONS " '--with-defaults'"
| #define NETSNMP_ENABLE_SCAPI_AUTHPRIV 1
| #define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1
| #define NETSNMP_PERSISTENT_MASK 077
| #define NETSNMP_TEMP_FILE_PATTERN "/tmp/snmpdXXXXXX"
| #define NETSNMP_NO_DUMMY_VALUES 1
| #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
| #define NETSNMP_DEFAULT_SNMP_VERSION 3
| #define NETSNMP_SYS_CONTACT "@localdomain"
| #define NETSNMP_SYS_LOC "Unknown"
| #define NETSNMP_LOGFILE "/var/log/snmpd.log"
| #define NETSNMP_PERSISTENT_DIRECTORY "/var/net-snmp"
| #define UNAMEPROG "/usr/bin/uname"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define NETSNMP_SYSTEM_INCLUDE_FILE "net-snmp/system/netbsd.h"
| #define NETSNMP_MACHINE_INCLUDE_FILE "net-snmp/machine/generic.h"
| #define SNMPLIBPATH "/usr/local/lib/snmp"
| #define SNMPDLMODPATH "/usr/local/lib/snmp/dlmod"
| #define SNMPSHAREPATH "/usr/local/share/snmp"
| #define NETSNMP_DEFAULT_MIBDIRS "$HOME/.snmp/mibs:/usr/local/share/snmp/mibs"
| #define SNMPCONFPATH "/usr/local/etc/snmp"
| #define STDC_HEADERS 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_REGEX_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMEB_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_NLIST_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_SOCKIO_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_SYS_UTSNAME_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ERR_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_FSTAB_H 1
| #define HAVE_GRP_H 1
| #define HAVE_KVM_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_PWD_H 1
| #define HAVE_UTMPX_H 1
| #define HAVE_SYS_DKIO_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_SYS_FILIO_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_POOL_H 1
| #define HAVE_SYS_PROTOSW_H 1
| #define HAVE_SYS_SOCKIO_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_STATVFS_H 1
| #define HAVE_SYS_UTSNAME_H 1
| #define HAVE_SYS_VMMETER_H 1
| #define HAVE_MACHINE_PARAM_H 1
| #define HAVE_NETINET_TCP_FSM_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <uvm/uvm_extern.h>
configure:16275: result: no
configure:16275: checking uvm/uvm_extern.h presence
configure:16275: gcc -E  conftest.c
configure:16275: $? = 0
configure:16275: result: yes
configure:16275: WARNING: uvm/uvm_extern.h: present but cannot be compiled
configure:16275: WARNING: uvm/uvm_extern.h:     check for missing prerequisite headers?
configure:16275: WARNING: uvm/uvm_extern.h: see the Autoconf documentation
configure:16275: WARNING: uvm/uvm_extern.h:     section "Present But Cannot Be Compiled"
configure:16275: WARNING: uvm/uvm_extern.h: proceeding with the compiler's result
configure:16275: checking for uvm/uvm_extern.h
configure:16275: result: no
----- config.log

>How-To-Repeat:
Compile the following source.

-----
#include <stdint.h>
#include <uvm/uvm_extern.h>
-----

netbsd-7: compile success.
HEAD: compile failure.

>Fix:
N/A



Home | Main Index | Thread Index | Old Index