Subject: unable to compile current kernel on a dec3000/500 => error in scsipiconf.c
To: None <port-alpha@netbsd.org>
From: sferriol <sylvain.ferriol@imag.fr>
List: port-alpha
Date: 01/29/2003 10:02:23
This is a cryptographically signed message in MIME format.

--------------ms070901030707060303070503
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

*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








--------------ms070901030707060303070503
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIILsTCC
A20wggJVoAMCAQICAQIwDQYJKoZIhvcNAQEEBQAwKzELMAkGA1UEBhMCRlIxDTALBgNVBAoT
BENOUlMxDTALBgNVBAMTBENOUlMwHhcNMDEwNDI3MDU0NjQ5WhcNMTEwNDI1MDU0NjQ5WjA0
MQswCQYDVQQGEwJGUjENMAsGA1UEChMEQ05SUzEWMBQGA1UEAxMNQ05SUy1TdGFuZGFyZDCC
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANzhHiE9BovqvV60iNsPk5e0bQc9hmIA
Lcr/tUqO51akj2Es8aAqq/Yq3Xwsv+91VQusCU7nTmHA5wzwkBVFEgLCjOvDEmTiYxAYLssH
MdmB5dwpgpsxVuKBHopvp+ipWBFEVoNds054cC3ftv1ygUXV8e5Nzu++1T0MkCBFmgmArw9M
2iAOgL86s+sngMC5D8ChTkDcOv1qKr9A1SxxgPn4umvk6ioAqy++mvCndm2YKZwPL/BC8hiX
W8n2zBlfusK+EtJcsJCUwLfLBgTvjzDtMi16SveTu6AJpLTuM8vQg5u1tbOQ3o6QHlmcINVL
Hu3XTE+G+hw6KqHprAWgnb8CAwEAAaOBkjCBjzAMBgNVHRMEBTADAQH/MB0GA1UdDgQWBBRn
WaXlB3RJA+8Fz8wupBjVEMiePDBTBgNVHSMETDBKgBRW62i50lx+mLWlU8ORb2NYxPlrt6Ev
pC0wKzELMAkGA1UEBhMCRlIxDTALBgNVBAoTBENOUlMxDTALBgNVBAMTBENOUlOCAQAwCwYD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