Subject: port-newsmips/6441: variable "machine_arch" is undefined at compiling kernel.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <h-masuda@ics.es.osaka-u.ac.jp>
List: netbsd-bugs
Date: 11/14/1998 21:43:08
>Number:         6441
>Category:       port-newsmips
>Synopsis:       variable machine_arch is undefined at compiling kernel.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 14 04:50:01 1998
>Last-Modified:
>Originator:     
>Organization:
	Education Center for Information Processing, OSAKA Univ.
>Release:        NetBSD-current  1998/11/12
>Environment:
System: NetBSD shampoo.ics.es.osaka-u.ac.jp 1.3H NetBSD 1.3H (SHAMPOO) #1: Fri Nov 13 15:09:01 JST 1998 h-masuda@shampoo.ics.es.osaka-u.ac.jp:/usr/src/sys/arch/newsmips/compile/SHAMPOO newsmips


>Description:
	variable machine_arch is undefined at compiling kernel.

ld -N -Ttext 80001000 -e start -G0 -T ../../conf/kern.ldscript -x -o netbsd ${SYSTEM_OBJ} vers.o
kern_sysctl.o: In function `hw_sysctl':
../../../../kern/kern_sysctl.c(.text+0x91c): undefined reference to `machine_arch'
../../../../kern/kern_sysctl.c(.text+0x920): undefined reference to `machine_arch'
*** Error code 1

Stop.

>How-To-Repeat:
	(cd /usr/src/sys/arch/newsmips/conf; config GENERIC; \
	 cd ../compile/GENERIC; make depend; make )
>Fix:
	add variable machine_arch in sys/arch/newsmips/newsmips/machdep.c.

*** machdep.c-dist	Tue Sep 29 20:12:37 1998
--- machdep.c	Fri Nov 13 15:06:38 1998
***************
*** 103,108 ****
--- 103,109 ----
  
  /* the following is used externally (sysctl_hw) */
  char	machine[] = MACHINE;	/* from <machine/param.h> */
+ char	machine_arch[] = MACHINE_ARCH;	/* from <machine/param.h> */
  char	cpu_model[30];
  
  /* maps for VM objects */
>Audit-Trail:
>Unformatted: