Subject: pkg_install build fails
To: None <netbsd-help@netbsd.org>
From: Ja'far Railton <zen25058@zen.co.uk>
List: netbsd-help
Date: 03/30/2005 14:45:48
hello

I have broached this subject on the tech-pkg list but no one replied.
Perhaps that was not the right place for it so I am posting here.

The problem is that I need to update pkg_install before I can build
any packages. I always get the same error even after making clean the
whole of pkgsrc and the updating with cvs. Does anyone have any advice
- at all?

Error message follows.

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 for gcc... cc

<snip>

/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 /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