Subject: Re: error in compile kernel and make build
To: CHAN Yiu Wah <clarence@cs.cuhk.hk>
From: Erik Bertelsen <erik@sockdev.uni-c.dk>
List: current-users
Date: 02/12/1996 12:48:26
On Mon, 12 Feb 1996, CHAN Yiu Wah wrote:

> cc -O -I/usr/src/libexec/lfs_cleanerd -DDIAGNOSTIC  -Werror  -c /usr/src/libexec/lfs_cleanerd/../../sys/ufs/lfs/lfs_cksum.c
> cc1: warnings being treated as errors
> In file included from /usr/src/libexec/lfs_cleanerd/../../sys/ufs/lfs/lfs_cksum.c:39:
> /usr/include/ufs/lfs/lfs_extern.h:116: warning: `struct ucred' declared inside parameter list
> /usr/include/ufs/lfs/lfs_extern.h:116: warning: its scope is only this definition or declaration,
> /usr/include/ufs/lfs/lfs_extern.h:116: warning: which is probably not what you want.
> /usr/include/ufs/lfs/lfs_extern.h:118: warning: `struct ucred' declared inside parameter list
> *** Error code 1
> 
This can be cured by adding a line of the form

      struct ucred;

in the top of lfs_extern.h with the list of a bunch of other incomplete 
struct declarations. This is in line with other similar header files
below /usr/include/ufs.

regards
Erik Bertelsen