Subject: Re: libkern compile on hp300
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Wolfgang Solfrank <ws@tools.de>
List: netbsd-bugs
Date: 03/11/1994 12:55:50
> cc -O -DKERNEL -c /usr/src/sys/lib/libkern/kernel/disklib.c 
> In file included from /usr/src/sys/lib/libkern/kernel/disklib.c:41:
> /usr/include/sys/disklabel.h:376: warning: `struct cpu_disklabel' declared inside parameter list
> /usr/include/sys/disklabel.h:376: warning: its scope is only this definition or declaration,
> /usr/include/sys/disklabel.h:376: warning: which is probably not what you want.
> /usr/include/sys/disklabel.h:379: warning: `struct cpu_disklabel' declared inside parameter list
> /usr/include/sys/disklabel.h:382: warning: `struct cpu_disklabel' declared inside parameter list
> 
> I got these warnings when I tried to compile libkern.

This seems to indicate that hp300 isn't set when you compile the kernel
library. I would have expected these architecture flags set automatically
on any compiler invocation.

Well, probably we have to include a line

CFLAGS+=	-D${MACHINE}

in sys/lib/libkern/Makefile.

Would this work on all architectures? (And fix the problem John is seeing?)
--
ws@TooLs.DE     (Wolfgang Solfrank, TooLs GmbH) +49-228-985800

------------------------------------------------------------------------------