Subject: Re: New kernel probs
To: Michael Richardson <mcr@sandelman.ottawa.on.ca>
From: Richard Horwood <rich@mondial.com.au>
List: netbsd-help
Date: 11/23/1998 14:56:59
>
> You don't need to compile everything. Just:
> cd /usr/src/sys; make includes
> cd /usr/src/lib/libkvm; make && make install
> cd /usr/src/sbin/ps; make && make install
> cd /usr/src/usr.bin/netstat; make && make install
> cd /usr/pkgsrc/sysutils/top; make clean && make && make reinstall
>
> That usually does it for me when I upgrade kernels. There are other
> tools that use libkvm, but I never notice them.
Ok, I've tried that, after taking a few paths out of some top-level makefiles
so a top level 'make includes' will work w/out all the files.
# cd lib/libkvm
# make
cc -O -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-DLIBC_SCCS -DUVM -c kvm.c
In file included from /usr/include/sys/time.h:168,
from /usr/include/sys/user.h:45,
from kvm.c:50:
/usr/include/time.h:93: syntax error before `__aconst'
/usr/include/time.h:109: syntax error before `char'
In file included from kvm.c:68:
/usr/include/nlist.h:59: syntax error before `__aconst'
In file included from kvm.c:71:
/usr/include/stdlib.h:109: syntax error before `char'
/usr/include/stdlib.h:218: syntax error before `char'
In file included from kvm.c:72:
/usr/include/string.h:66: syntax error before `char'
In file included from kvm.c:73:
/usr/include/unistd.h:122: syntax error before `char'
/usr/include/unistd.h:143: syntax error before `char'
/usr/include/unistd.h:206: syntax error before `char'
/usr/include/unistd.h:253: syntax error before `ualarm'
cc1: warnings being treated as errors
/usr/include/unistd.h:253: warning: parameter names (without types) in
function declaration
/usr/include/unistd.h:253: warning: data definition has no type or storage
class
/usr/include/unistd.h:254: warning: parameter names (without types) in
functiondeclaration
/usr/include/unistd.h:297: syntax error before `char'
/usr/include/unistd.h:321: syntax error before `char'
kvm.c: In function `kvm_nlist':
kvm.c:788: structure has no member named `n_name'
kvm.c:788: structure has no member named `n_name'
kvm.c:792: structure has no member named `n_name'
kvm.c:797: structure has no member named `n_name'
kvm.c: In function `kvm_dump_inval':
kvm.c:834: structure has no member named `n_name'
kvm.c:835: structure has no member named `n_name'
*** Error code 1
Stop.
#
*sigh*
I often wonder how people running -current actually ever manage to get anything
compiled at all. There *must* be something glaringly obvious I am missing????
-Richard.