Subject: Re: Kernel Compile Errors
To: John Plotecher <jplotech@diisd.k12.mi.us>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 02/03/1997 11:52:19
> 
> >On Wed, 29 Jan 1997 17:20:15 -0800 (PST) 
> > Jerry Thomas <bob@hotcity.com> wrote:
> >
> > > I have a problem compiling a kernel i get the following errors when i type
> > > make depend ; make
> > > 
> > > myname# make depend ; make
> > > "Makefile", line 325: Inconsistent operator for clean
> > > "Makefile", line 348: Inconsistent operator for depend
> > > Fatal errors encountered -- cannot continue
> > > "Makefile", line 325: Inconsistent operator for clean
> > > "Makefile", line 348: Inconsistent operator for depend
> > > Fatal errors encountered -- cannot continue
> >
> >Rerun config(8) on your kernel config file; you need to generate a new
> >Makefile... there were some slight changes to how kernel libraries
> >are built.
> 
> I was having the same problem, except the numbers were different... anyway,
> I tried running config on the GENERIC file again as suggested and it still
> gave me the same errors.. What's wrong?

What version of the kernel are you trying to compile? The current one?
If so, (I think) you need to rebuild make.

There's a whole mailing list devoted to problems involving the "current"
kernel, called current-users. It deals w/ port-independant problems in
the current kernel. There was a post a few weeks back about changes which
need a new version of make. That might be your problem. Or it might not. :-)

To compile a new version of make, make a src/usr.bin/make directory,
and fill it with the source from ftp.netbsd.org (for this directory).
You can either do an mget * in this directory, or pull over the
usr.bin.tar.gz file and only decompress part of it. Also get the
Makefile.ins for src/usr.bin (which defines the final home of make
and friends as being usr/bin). Then cd to src/usr.bin/make and type make.
Then make install.

Take care,

Bill