NetBSD Problem Report #8637
Received: (qmail 26325 invoked from network); 17 Oct 1999 02:33:37 -0000
Message-Id: <199910170233.LAA26241@mirage.ceres.dti.ne.jp>
Date: Sun, 17 Oct 1999 11:33:31 +0900 (JST)
From: tsutsui@ceres.dti.ne.jp
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: sun3 zs.c and si.c does not include "opt_ddb.h"
X-Send-Pr-Version: 3.95
>Number: 8637
>Category: port-sun3
>Synopsis: sun3 zs.c and si.c does not include "opt_ddb.h"
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: jdolecek
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 16 19:36:00 +0000 1999
>Closed-Date: Sun Oct 17 09:33:26 +0000 1999
>Last-Modified: Sun Oct 17 09:34:51 +0000 1999
>Originator: Izumi Tsutsui
>Release: NetBSD-current 1.4L 19991015
>Organization:
Izumi Tsutsui Himeji City, Japan
>Environment:
System: NetBSD 1.4L sun3/80
>Description:
sun3/dev/zs.c and sun3/dev/si.c does not include "opt_ddb.h".
"DDB" would not defined in si.c so Debugger() is never called.
zs.c does not use "#if DDB" etc. but it is used in <sys/systm.h>
to define Debugger() as cpu_Debugger(), so it causes
"Undefined symbol" error.
>How-To-Repeat:
Configure and make a sun3 GENERIC kernel.
---
ld -N -Ttext F8004000 -e start -S -o netbsd ${SYSTEM_OBJ} vers.o
zs.o: Undefined symbol `_Debugger' referenced from text segment
*** Error code 1
Stop.
>Fix:
Index: si.c
===================================================================
RCS file: /cvs/repository/src/sys/arch/sun3/dev/si.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 si.c
--- si.c 1999/09/11 15:54:45 1.1.1.1
+++ si.c 1999/10/17 02:17:42
@@ -76,6 +76,8 @@
* The autoconfiguration boilerplate came from Adam Glass.
*/
+#include "opt_ddb.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/errno.h>
Index: zs.c
===================================================================
RCS file: /cvs/repository/src/sys/arch/sun3/dev/zs.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 zs.c
--- zs.c 1999/09/11 15:54:46 1.1.1.1
+++ zs.c 1999/10/16 21:21:51
@@ -44,6 +44,8 @@
* Sun keyboard/mouse uses the zs_kbd/zs_ms slaves.
*/
+#include "opt_ddb.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jdolecek
State-Changed-When: Sun Oct 17 02:33:26 PDT 1999
State-Changed-Why:
Fixed, thanks.
Responsible-Changed-From-To: port-sun3-maintainer->jdolecek
Responsible-Changed-By: jdolecek
Responsible-Changed-When: Sun Oct 17 02:33:26 PDT 1999
Responsible-Changed-Why:
My last changes broke this.
>Unformatted:
(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.