Subject: current build problem, linux_exec_setup_stack undeclared
To: None <current-users@netbsd.org>
From: Russell McManus <russell_mcmanus@yahoo.com>
List: current-users
Date: 08/09/2003 14:42:28
I'm trying to build a current macppc kernel using my i386 NetBSD box.
I'm running into some trouble building exec_conf.c.  The error message
is attached.  Any ideas?

My source tree is two days old.

-russ


/export/src/tooldir.NetBSD-1.6-i386/bin/powerpc--netbsd-gcc  -msoft-float   -ffreestanding  -O2 -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized  -Dmacppc -I.  -I/export/src/sys/arch -I/export/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DZS_CONSOLE_ABORT -DCAPS_IS_CONTROL -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c /export/src/sys/kern/exec_conf.c
/export/src/sys/kern/exec_conf.c:380: `linux_exec_setup_stack' undeclared here (not in a function)
/export/src/sys/kern/exec_conf.c:380: initializer element is not constant
/export/src/sys/kern/exec_conf.c:380: (near initialization for `execsw_builtin[3].es_setup_stack')
/export/src/sys/kern/exec_conf.c:578: `linux_exec_setup_stack' undeclared here (not in a function)
/export/src/sys/kern/exec_conf.c:578: initializer element is not constant
/export/src/sys/kern/exec_conf.c:578: (near initialization for `execsw_builtin[5].es_setup_stack')
*** Error code 1