Subject: pkg/29935: warning in pkg_install: /sys/mount.h cannot be compiled
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 04/10/2005 17:50:00
>Number:         29935
>Category:       pkg
>Synopsis:       warning in pkg_install: /sys/mount.h cannot be compiled
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 10 17:50:00 +0000 2005
>Originator:     Rudi Ludwig
>Release:        2.0
newly installed NetBSD 2.0 i386-iso
(cannot yet remotely log-in to easily copy from the terminal, sorry)

To install packages from pkgsrc-2005Q1 on a 2.0 NetBSD (newly installed
i386-iso with a recent 2.99 kernel) I had to update pkg_install first.
While doing so a warning rushed over the console asking to inform you.

The only information I could get hold of is an exzerpt from

In file included from /usr/include/sys/mount.h:43,
                 from conftest.c:79:
/usr/include/sys/ucred.h:47: error: `NGROUPS' undeclared here (not in a
function )
/usr/include/sys/ucred.h:55: error: `NGROUPS' undeclared here (not in a
function )
configure:4196: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "pkg_install"
| #define PACKAGE_TARNAME "pkg_install"
| #define PACKAGE_VERSION "20040813"
| #define PACKAGE_STRING "pkg_install 20040813"


| #include <sys/mount.h>
configure:4219: result: no
configure:4223: checking sys/mount.h presence
configure:4233: cc -E  -DDEF_UMASK=0022
-I/mnt/pkgsrc/pkgtools/pkg_install/work/ libnbcompat  conftest.c
configure:4239: $? = 0
configure:4259: result: yes
configure:4272: WARNING: sys/mount.h: present but cannot be compiled
configure:4274: WARNING: sys/mount.h:     check for missing prerequisite
headers ?
configure:4276: WARNING: sys/mount.h: see the Autoconf documentation
configure:4278: WARNING: sys/mount.h:     section "Present But Cannot Be
Compile d"
configure:4280: WARNING: sys/mount.h: proceeding with the preprocessor's
result configure:4282: WARNING: sys/mount.h: in the future, the compiler
will take prec edence
configure:4294: checking for sys/mount.h
configure:4301: result: yes