Subject: Broken sysctl.h on fresh 1.6.1 install?
To: None <port-cobalt@NetBSD.org>
From: Christopher Schultz <christopher.d.schultz@comcast.net>
List: port-cobalt
Date: 10/21/2004 10:08:42
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigEF82260C134397E64A98ED1D
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
All,
I have recently done a fresh install of both NetBSD 1.6 and (afterwards)
NetBSD 1.6.1, and both installs had non-compilable sysctl.h header files.
I noticed this while running 'configure' on Apache 2 sources direclty
from httpd.apache.org:
-------------------------------------------------------------------------
configure: WARNING: sys/sysctl.h: present but cannot be compiled
configure: WARNING: sys/sysctl.h: check for missing prerequisite headers?
configure: WARNING: sys/sysctl.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
-------------------------------------------------------------------------
I wrote my own quickie C program and compiled it. Sure enough, sysctl.h
does not compile:
-------------------------------------------------------------------------
# cat test.c
#include <sys/sysctl.h>
int main(int argc, char *argv[])
{
return 0;
}
cc test.c
In file included from /usr/include/sys/sysctl.h:48,
from test.c:1:
/usr/include/sys/ucred.h:51: `NGROUPS' undeclared here (not in a function)
/usr/include/sys/ucred.h:59: `NGROUPS' undeclared here (not in a function)
In file included from /usr/include/machine/proc.h:3,
from /usr/include/sys/proc.h:53,
from /usr/include/sys/sysctl.h:49,
from test.c:1:
/usr/include/mips/proc.h:52: `UPAGES' undeclared here (not in a function)
In file included from /usr/include/sys/proc.h:57,
from /usr/include/sys/sysctl.h:49,
from test.c:1:
/usr/include/sys/signalvar.h:50: `NSIG' undeclared here (not in a function)
/usr/include/sys/signalvar.h:60: parse error before `sigset_t'
/usr/include/sys/signalvar.h:60: warning: no semicolon at end of struct
or union
/usr/include/sys/signalvar.h:66: parse error before `ps_oldmask'
/usr/include/sys/signalvar.h:66: warning: data definition has no type or
storage class
/usr/include/sys/signalvar.h:71: parse error before `ps_sigmask'
/usr/include/sys/signalvar.h:71: warning: data definition has no type or
storage class
/usr/include/sys/signalvar.h:72: parse error before `ps_sigignore'
/usr/include/sys/signalvar.h:72: warning: data definition has no type or
storage class
/usr/include/sys/signalvar.h:73: parse error before `ps_sigcatch'
/usr/include/sys/signalvar.h:73: warning: data definition has no type or
storage class
In file included from /usr/include/sys/sysctl.h:49,
from test.c:1:
/usr/include/sys/proc.h:67: `MAXLOGNAME' undeclared here (not in a function)
/usr/include/sys/proc.h:104: parse error before `int'
/usr/include/sys/proc.h:226: field `p_sigctx' has incomplete type
/usr/include/sys/proc.h:231: `MAXCOMLEN' undeclared here (not in a function)
/usr/include/sys/proc.h:231: size of array `p_comm' has non-integer type
In file included from test.c:1:
/usr/include/sys/sysctl.h:294: `MAXLOGNAME' undeclared here (not in a
function)
/usr/include/sys/signalvar.h:65: storage size of `ps_sigstk' isn't known
-------------------------------------------------------------------------
Assuming someone has fixed this at some point, what's the best way to
fix or upgrade my header files?
Thanks,
-chris
--------------enigEF82260C134397E64A98ED1D
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBd8Lq9CaO5/Lv0PARAuOuAKCWGyX7RhtJc64jLLKI9JL+mfQ3ogCgwRZ8
4QdrWit92i7xU8YF7t+n4HE=
=+y8N
-----END PGP SIGNATURE-----
--------------enigEF82260C134397E64A98ED1D--