Subject: kern/20103: unable to compile current kernel on a dec3000/500 => error in scsipiconf.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <sylvain.ferriol@imag.fr>
List: netbsd-bugs
Date: 01/28/2003 14:37:53
>Number:         20103
>Category:       kern
>Synopsis:       unable to compile current kernel on a dec3000/500 => error in scsipiconf.c
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 28 14:38:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     ferriol
>Release:        1.6
>Organization:
imag
>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/build/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-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized  -Dalpha -I.  -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c /usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipiconf.c
/usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipiconf.c: In function `scsipi_command':
/usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipiconf.c:94: structure has no member named `l_holdcnt'
/usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipiconf.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/scsipiconf.c:94: warning: passing arg 1 of `uvm_swapin' from incompatible pointer type
/usr/src/sys/arch/alpha/compile/sartre_config/../../../../dev/scsipi/scsipiconf.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



>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: