Subject: pkg/29387: recent pkgtools/pkg_install fails to build
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <Dave.Tyson@liverpool.ac.uk>
List: pkgsrc-bugs
Date: 02/15/2005 15:12:00
>Number:         29387
>Category:       pkg
>Synopsis:       recent pkgtools/pkg_install fails to build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 15 15:12:00 +0000 2005
>Originator:     Dave Tyson
>Release:        NetBSD 2.0_STABLE
>Organization:
The University of Liverpool
>Environment:
	
	
System: NetBSD gdtpc 2.0_STABLE NetBSD 2.0_STABLE (DAVE) #4: Fri Jan 14 10:27:03 GMT 2005 root@gdtpc:/usr/src/sys/arch/i386/compile/DAVE i386
Architecture: i386
Machine: i386
>Description:
following a recent cvs update of pkgsrc it is necessary to update pkgtools
before installing new packages. cd'ing to /usr/pkgsrc/pkgtools/pkg_install
and doing a 'make install' results in compilation errors due to a missing
header file   
>How-To-Repeat:
cvs update -dP in /usr/pkgsrc
cd /usr/pkgsrc/pkgtools/pkg_install
make install

results in:

Script started on Tue Feb 15 14:47:57 2005
# pwd
/usr/pkgsrc/pkgtools/pkg_install
# make install
===> Checking for vulnerabilities in pkg_install-20050210
===> Extracting for pkg_install-20050210
===> Patching for pkg_install-20050210
===> Overriding tools for pkg_install-20050210
===> Creating toolchain wrappers for pkg_install-20050210
===> Configuring for pkg_install-20050210
checking build system type... i386-unknown-netbsdelf2.0.
checking host system type... i386-unknown-netbsdelf2.0.
checking whether make sets $(MAKE)... yes
checking for gcc... cc
checking for C compiler default output file name... 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 for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for gawk... /usr/bin/awk
checking for ar... ar
checking for fparseln in -lutil... yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... 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 for inttypes.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking bind/bitypes.h usability... no
checking bind/bitypes.h presence... no
checking for bind/bitypes.h... no
checking netinet/in6_machtypes.h usability... no
checking netinet/in6_machtypes.h presence... no
checking for netinet/in6_machtypes.h... no
checking alloca.h usability... no
checking alloca.h presence... no
checking for alloca.h... no
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking fts.h usability... yes
checking fts.h presence... yes
checking for fts.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking machine/endian.h usability... yes
checking machine/endian.h presence... yes
checking for machine/endian.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/byteorder.h usability... no
checking sys/byteorder.h presence... no
checking for sys/byteorder.h... no
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking sys/endian.h usability... yes
checking sys/endian.h presence... yes
checking for sys/endian.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/stat.h... (cached) yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking sys/statvfs.h usability... no
checking sys/statvfs.h presence... no
checking for sys/statvfs.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/ttycom.h usability... yes
checking sys/ttycom.h presence... yes
checking for sys/ttycom.h... yes
checking for sys/types.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/vfs.h usability... no
checking sys/vfs.h presence... no
checking for sys/vfs.h... no
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking tzfile.h usability... yes
checking tzfile.h presence... yes
checking for tzfile.h... yes
checking for unistd.h... (cached) yes
checking util.h usability... yes
checking util.h presence... yes
checking for util.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for sys/mount.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking sys/queue.h usability... yes
checking sys/queue.h presence... yes
checking for sys/queue.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for regexec... yes
checking md5.h usability... yes
checking md5.h presence... yes
checking for md5.h... yes
checking for MD5Init in md5.h... yes
checking for md5.h... (cached) yes
checking rmd160.h usability... yes
checking rmd160.h presence... yes
checking for rmd160.h... yes
checking sha1.h usability... yes
checking sha1.h presence... yes
checking for sha1.h... yes
checking for MD5File... yes
checking for RMD160File... yes
checking for SHA1File... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for struct option... yes
checking vis.h usability... yes
checking vis.h presence... yes
checking for vis.h... yes
checking for VIS_WHITE in vis.h... yes
checking for strunvis... yes
checking for strvis... yes
checking for strsvis... yes
checking for svis... yes
checking for unvis... yes
checking for vis... yes
checking for strunvis... (cached) yes
checking for strvis... (cached) yes
checking for strsvis... (cached) yes
checking for svis... (cached) yes
checking for unvis... (cached) yes
checking for vis... (cached) yes
checking for __attribute__... yes
checking for size_t... yes
checking for long long... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for fsid_t... yes
checking whether byte ordering is bigendian... no
checking for off_t... yes
checking size of off_t... 8
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether strerror_r is declared... no
checking for strerror_r... no
checking whether strerror_r returns char *... no
checking for vprintf... yes
checking for _doprnt... no
checking for err... yes
checking for fgetln... yes
checking for fnmatch... yes
checking for fparseln... yes
checking for getenv... yes
checking for isblank... yes
checking for lchflags... yes
checking for lchmod... yes
checking for lchown... yes
checking for lutimes... yes
checking for mkdtemp... yes
checking for mkstemp... yes
checking for setenv... yes
checking for setgroupent... yes
checking for setpassent... yes
checking for setprogname... yes
checking for snprintf... yes
checking for statvfs... no
checking for strdup... yes
checking for strerror... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strmode... yes
checking for strsep... yes
checking for strtoll... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utimes... yes
checking for warn... yes
checking for getenv... (cached) yes
checking for setenv... (cached) yes
checking for unsetenv... (cached) yes
checking for mkdtemp... (cached) yes
checking for mkstemp... (cached) yes
checking for bcopy... yes
checking for bzero... yes
checking for memset... yes
checking for memcpy... yes
checking for setlocale... yes
checking for getmode... yes
checking for setmode... yes
checking for getmode... (cached) yes
checking for setmode... (cached) yes
checking for gid_from_group... yes
checking for group_from_gid... yes
checking for pwcache_groupdb... yes
checking for pwcache_userdb... yes
checking for uid_from_user... yes
checking for user_from_uid... yes
checking for gid_from_group... (cached) yes
checking for group_from_gid... (cached) yes
checking for pwcache_groupdb... (cached) yes
checking for pwcache_userdb... (cached) yes
checking for uid_from_user... (cached) yes
checking for user_from_uid... (cached) yes
checking for fts_open... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for poll.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking for poll... yes
checking if poll() is implemented natively... yes
checking for getpassphrase... no
checking for getpgrp... yes
checking for memmove... yes
checking for select... yes
checking for getpgrp... (cached) yes
checking whether getpgrp requires zero arguments... yes
checking for struct statfs.f_fsize... no
checking for struct statfs.f_iosize... no
checking for struct dirent.d_namlen... yes
checking *printf() support for %lld... yes
checking for strtoll... (cached) yes
checking whether optind is declared... yes
checking whether optreset is declared... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbcompat/config.h
make: Graph cycles through nbcompat/nbtypes.h
/usr/bin/awk -f nbcompat.awk nbcompat/config.h > nbcompat/nbconfig.h
cc -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I. -I.  -O2 -DHAVE_CONFIG_H -c glob.c
In file included from __glob13.c:35,
                 from glob.c:12:
/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:37:30: nbcompat/nbtypes.h: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
===> 
===> There was an error during the ``configure'' phase.
===> Please investigate the following for more information:
===>      * config.log
===>      * /usr/pkgsrc/pkgtools/pkg_install/work/.work.log
===> 
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install

Additional info: Makefile version in pkg_install

# $NetBSD: Makefile,v 1.110 2005/02/14 02:30:39 uebayasi Exp $

>Fix: