Subject: Kernel Compilation problem on AXPPci33 (noname)
To: None <port-alpha@netbsd.org>
From: Pierre Emmanuel Brinette <brinette@hrnet.fr>
List: port-alpha
Date: 01/23/2003 16:36:42
Hello,

I'm newbie with NetBSD.

I tried to compile the NetBSD 1.6 kernel on a Alpha AXIPci33 (Noname)
system. I've got some compilation errors:

...
cc  -mno-fp-regs -ffreestanding  -O2 -Wall -Wno-main -Wno-format-zero-length
 -Wpointer-arith
-Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialize
d  -Dalpha -I.  -
I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DLKM -DMAXUSERS=32 -
D_KERNEL -D_KERNE
L_OPT   -c
/usr/src/sys/arch/alpha/compile/NONAME/../../../../dev/scsipi/scsipiconf.c

/usr/src/sys/arch/alpha/compile/NONAME/../../../../dev/scsipi/scsipiconf.c:
    In function `scsipi_command':
/usr/src/sys/arch/alpha/compile/NONAME/../../../../dev/scsipi/scsipiconf.c:9
4:
    structure hasno member named `l_holdcnt'
/usr/src/sys/arch/alpha/compile/NONAME/../../../../dev/scsipi/scsipiconf.c:9
4:
    structure hasno member named `l_flag'
/usr/src/sys/arch/alpha/compile/NONAME/../../../../dev/scsipi/scsipiconf.c:9
4:
warning: passing arg 1 of `uvm_swapin' from incompatible pointer type
/usr/src/sys/arch/alpha/compile/NONAME/../../../../dev/scsipi/scsipiconf.c:9
9:
    structure hasno member named `l_holdcnt'
*** Error code 1

It seem that the macros PHOLD(curproc) and PRELE(curproc) generate these
errors. It is like that the struct curproc was not defined.

# FILE: /usr/include/proc.h
..
383: extern struct proc      *curproc;
...

# FILE: /usr/include/machine/proc.h ...
# FILE: /usr/include/machine/cpu.h ...
278: struct proc;
...


The only structure i've found in the kernel source that has this kind of
field is the struct kinfo_proc2 in sys/sysctl.h

anybody as an idea about this ?

Thanks in advance.

Pierre-Emmanuel Brinette