Subject: pkgtools/pkg_install fails to build (revisited)
To: None <tech-pkg@netbsd.org>
From: Ja'far Railton <zen25058@zen.co.uk>
List: tech-pkg
Date: 03/28/2005 01:28:58
Hi

I'm running 2.0.2 kernel and userland and have had a problem building pkg_install. I have read some other posts with similar problems. I was using 2004Q4, tried 2005Q1 today, and finally, updated to pkgsrc-current using cvs update in pkgtools/pkg_install thinking that a patch would have been committed to fix it. The stopped build message is below. What can I do?

TIA
--
Ja'far

===> *** No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Extracting for pkg_install-20050318
===> Patching for pkg_install-20050318
===> Overriding tools for pkg_install-20050318
===> Creating toolchain wrappers for pkg_install-20050318
===> Configuring for pkg_install-20050318
checking build system type... i386-unknown-netbsdelf2.0.2
checking host system type... i386-unknown-netbsdelf2.0.2
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
<snip>
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... 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: see the Autoconf documentation
configure: WARNING: sys/statvfs.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/statvfs.h: proceeding with the preprocessor's result
configure: WARNING: sys/statvfs.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------- ##
configure: WARNING:     ## Report this to grant@NetBSD.org ##
configure: WARNING:     ## ------------------------------- ##
checking for sys/statvfs.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes

<snip>

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
cc -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I. -I.  -O2 -march=pentiumpro -DHAVE_CONFIG_H -c bits.c
cc -I. -I.  -O2 -march=pentiumpro -L/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o bits bits.o
/bits 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 -march=pentiumpro -DHAVE_CONFIG_H -c glob.c
In file included from /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat/statvfs.h:43,
                 from /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:67,
                 from __glob13.c:35,
                 from glob.c:12:
/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 /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat/statvfs.h:52,
                 from /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:67,
                 from __glob13.c:35,
                 from glob.c:12:
/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'
In file included from /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:67,
                 from __glob13.c:35,
                 from glob.c:12:
/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat/statvfs.h:67:1: warning: "VFS_NAMELEN" redefined
In file included from /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat/statvfs.h:43,
                 from /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:67,
                 from __glob13.c:35,
                 from glob.c:12:
/usr/include/sys/statvfs.h:111:1: warning: this is the location of the previous definition
In file included from /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:67,
                 from __glob13.c:35,
                 from glob.c:12:
/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat/statvfs.h:68:1: warning: "VFS_MNAMELEN" redefined
In file included from /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat/statvfs.h:43,
                 from /usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:67,
                 from __glob13.c:35,
                 from glob.c:12:
/usr/include/sys/statvfs.h:112:1: warning: this is the location of the previous definition
*** 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