Subject: Re: kernel compile, 20 Oct. sources
To: None <riz@boogers.sf.ca.us>
From: None <Havard.Eidnes@runit.sintef.no>
List: port-alpha
Date: 10/21/1997 22:19:26
> did I miss something?  Here's what I get when compiling the GENERIC kernel
> from tarballed sources I just downloaded:
>
> cc -g -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wno-format -mno-fp-regs -I. -I../../../../arch -I../../../.. -nostdinc
> -DEXEC_ECOFF -DEXEC_ELF64 -DEXEC_SCRIPT -DKTRACE -DDIAGNOSTIC -DFFS -DMFS
> -DCD9660 -DMSDOSFS -DNFS -DFIFO -DNFSSERVER -DINET -DCOMPAT_43 -DCOMPAT_10
> -DCOMPAT_11 -DCOMPAT_12 -DSYSVSHM -DLKM -DUCONSOLE -DMAXUSERS=8 -D_KERNEL
> -Dalpha  -c ../../../../dev/rnd.c
> cc1: warnings being treated as errors
> ../../../../dev/rnd.c:728: warning: function declaration isn't a prototype
> *** Error code 1
> 
> Stop.

I reported this yesterday with a fix, see PR kern/4306.
Essentially you need to provide a prototype for rnd_detach_source
in /sys/sys/rnd.h, like this:

void            rnd_detach_source __P((rndsource_element_t *));

Regards,

- Havard