Subject: Re: unable to compile current kernel on a dec3000/500 => error in scsipiconf.c
To: None <port-alpha@netbsd.org>
From: Pierre Emmanuel Brinette <brinette@hrnet.fr>
List: port-alpha
Date: 01/29/2003 10:51:36
Hello,

I had the same error two days ago !

I have downloaded the kernel sources from the french ftp mirror, but the
version seem to be incomplete.

Donwload the LAST packages sys.tar.gz from ftp.netbsd.org (not from a
mirror). The package size is 24659629 bytes. Remove the /usr/src/sys tree
(keep your config file) and install the new kernel source.

Good luck.

Pierre-Emmanuel Brinette


----- Original Message -----
From: "sferriol" <sylvain.ferriol@imag.fr>
To: <port-alpha@netbsd.org>
Sent: Wednesday, January 29, 2003 10:02 AM
Subject: unable to compile current kernel on a dec3000/500 => error in
scsipiconf.c


> *Environment:*
> NetBSD  1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep  8 12:15:59 UTC 2002
autobuild@cs20.apochromatic.org:/autobuilder/build/alpha/OBJ/autobuilder/bui
ld/src/sys/arch/alpha/compile/GENERIC alpha
> *Description:*
> i'm using the 1.6 version and trying to compile the kernel of the current
version
> i compile and install the current version of config
> and when i 'make', the compilation stop to scsipiconf.c :
>
>
>
cc  -mno-fp-regs -ffreestanding  -O2 -Werror -Wall -Wno-main -Wno-format-zer
o-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-
compare -Wno-uninitialized  -Dalpha -I.  -I../../../../arch -I../../../.. -n
ostdinc -DDIAGNOSTIC -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c
/usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipic
onf.c
>
/usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipic
onf.c: In function `scsipi_command':
>
/usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipic
onf.c:94: structure has no member named `l_holdcnt'
>
/usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipic
onf.c:94: structure has no member named `l_flag'
> cc1: warnings being treated as errors
>
/usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipic
onf.c:94: warning: passing arg 1 of `uvm_swapin' from incompatible pointer
type
>
/usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipic
onf.c:99: structure has no member named `l_holdcnt'
> *** Error code 1
>
>
> ligne 94 in scspiconf.c is:
> PHOLD(curproc)
> and with the -E option, it is:
> do{ if(((((&cpu_info_primary)->ci_curlwp)?
> ((&cpu_info_primary)->ci_curlwp)->l_proc:0))->l_holdcnt++ ........
>
>
> the problem is that l_proc is a 'proc' structure and it does not
> contain 'l_holdcnt' and 'l_flag' attribute.
>
>
> thanks
> Sylvain
>
>