Subject: compile problems? was Re: sparc kernel configuration tutoral?
To: Brett Lymn <blymn@baesystems.com.au>
From: Koyote <koyote@koyote.cx>
List: port-sparc
Date: 04/01/2003 21:24:50
Brett Lymn <blymn@baesystems.com.au> writes:
> On Mon, Mar 31, 2003 at 09:36:19PM -0800, Koyote wrote:
> >
> > I realize I removed a lot of stuff, but there is a lot fo stuff I'm just
> > plain not using. It's just an LX with a spare scsi/le card. nothing
> > special :)
> >
>
> Ah - sounds like you were a bit too vicious in your pruning then,
> sometimes the depedencies and required bits are not well marked in the
> config file. I have done that in the past, used an old config file
> that was missing a line that was required in the newer sources,
> compile goes fine but the link barfs with unresolved
> symbols.... ooops.
>
So I decided to try starting with the GENERIC kernel config file and
copied that to netbsd_lx_1.6
configure and make depend worked, make gave me:
cc -mno-fpu -ffreestanding -O2 -Werror -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wno-uninitialized -I. -I../../../../arch
-I../../../.. -nostdinc -DRASTERCONSOLE -DLKM -DMAXUSERS=32 -D_KERNEL
-D_KERNEL_OPT -c
/usr/src/sys/arch/sparc/compile/netbsd_lx_1.6/../../../../nfs/nfs_vnops.c
In file included from ../../../../sys/vnode.h:48,
from
/usr/src/sys/arch/sparc/compile/netbsd_lx_1.6/../../../../nfs/nfs_vnops.c:62:
../../../../uvm/uvm_extern.h:318: parse error before character 01
cc1: warnings being treated as errors
../../../../uvm/uvm_extern.h:318: warning: no semicolon at end of struct
or union
../../../../uvm/uvm_extern.h:352: parse error before `}'
In file included from ../../../../uvm/uvm_extern.h:451,
from ../../../../sys/vnode.h:48,
from
/usr/src/sys/arch/sparc/compile/netbsd_lx_1.6/../../../../nfs/nfs_vnops.c:62:
../../../../uvm/uvm_page.h: In function `PHYS_TO_VM_PAGE':
../../../../uvm/uvm_page.h:414: invalid use of undefined type `struct
uvmexp'
In file included from ../../../../uvm/uvm.h:194,
from
/usr/src/sys/arch/sparc/compile/netbsd_lx_1.6/../../../../nfs/nfs_vnops.c:71:
../../../../uvm/uvm_fault_i.h: In function `uvmfault_relock':
../../../../uvm/uvm_fault_i.h:211: invalid use of undefined type `struct
uvmexp'
../../../../uvm/uvm_fault_i.h:224: invalid use of undefined type `struct
uvmexp'
*** Error code 1
Stop.
make: stopped in /usr/src/sys/arch/sparc/compile/netbsd_lx_1.6
botsnack: {189}
(yep, botsnack is the machine name.)
I haven't tried another version yet, I could try 1.5.3...
-C