NetBSD Problem Report #6441

Received: (qmail 10952 invoked from network); 14 Nov 1998 12:43:14 -0000
Message-Id: <199811141243.VAA10036@shampoo.ics.es.osaka-u.ac.jp>
Date: Sat, 14 Nov 1998 21:43:08 +0900 (JST)
From: h-masuda@ics.es.osaka-u.ac.jp
Reply-To: h-masuda@ics.es.osaka-u.ac.jp
To: gnats-bugs@gnats.netbsd.org
Subject: variable "machine_arch" is undefined at compiling kernel.
X-Send-Pr-Version: 3.95

>Number:         6441
>Category:       port-newsmips
>Synopsis:       variable machine_arch is undefined at compiling kernel.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-newsmips-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 14 04:50:01 +0000 1998
>Closed-Date:    Thu Jan 28 12:50:43 +0000 1999
>Last-Modified:  Thu Jan 28 12:51:19 +0000 1999
>Originator:     
>Release:        NetBSD-current  1998/11/12
>Organization:
	Education Center for Information Processing, OSAKA Univ.
>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 */
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->port-newsmips-maintainer 
Responsible-Changed-By: fair 
Responsible-Changed-When: Mon Dec 28 09:40:06 PST 1998 
Responsible-Changed-Why:  
This PR is the responsibility of the portmaster, 
not the GNATS database administrator. 
State-Changed-From-To: open->closed 
State-Changed-By: jonathan 
State-Changed-When: Thu Jan 28 04:50:43 PST 1999 
State-Changed-Why:  
Fixed by  Tsubai on December 26, 1999, in rev 1.17 of machdep.c. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.