Subject: port-i386/3845: kernel won't build with options KGDB
To: None <gnats-bugs@gnats.netbsd.org>
From: None <enami@but-b.or.jp>
List: netbsd-bugs
Date: 07/09/1997 12:46:43
>Number: 3845
>Category: port-i386
>Synopsis: kernel won't build with options KGDB
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 8 20:50:01 1997
>Last-Modified:
>Originator: enami tsugutomo
>Organization:
>Release: NetBSD-current 1997 Jul 07
>Environment:
System: NetBSD pavlov.enami.ba2.so-net.or.jp 1.2G NetBSD 1.2G (PAVLOV) #301: Mon Jun 30 20:32:49 JST 1997 enami@pavlov.enami.ba2.so-net.or.jp:/b/netbsd/kernel/compile/PAVLOV i386
>Description:
I've enabled KGDB in my kernel config file and tried to compile,
but it failed.
>How-To-Repeat:
Add options KGDB, and compile, then got:
cc -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -I. -I/usr/s
rc/sys/arch -I/usr/src/sys -nostdinc -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -D
EXEC_AOUT -DEXEC_SCRIPT -DI586_CPU -DBUFPAGES="0x800" -DXSERVER -DUCONSOLE
-DINSECURE -DRTC_OFFSET="0xfffffde4" -DNTP -DKGDB -DKGDB_DEV="makedev(8,0)"
-DDIAGNOSTIC -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DCOMPAT_10 -DCOMPAT_1
1 -DCOMPAT_12 -DCOMPAT_43 -DTCP_COMPAT_42 -DFFS -DMFS -DNFS -DCD9660 -DFDES
C -DNFSSERVER -DFIFO -DGATEWAY -DINET -DCOM_HAYESP -DTULIP_DEBUG -DMAXUSERS
=32 -D_KERNEL -Di386 -c /usr/src/sys/arch/i386/i386/kgdb_machdep.c
/usr/src/sys/arch/i386/i386/kgdb_machdep.c: In function `kgdb_signal':
/usr/src/sys/arch/i386/i386/kgdb_machdep.c:103: `T_MACHCHECK' undeclared (f
irst use this function)
/usr/src/sys/arch/i386/i386/kgdb_machdep.c:103: (Each undeclared identifier
is reported only once
/usr/src/sys/arch/i386/i386/kgdb_machdep.c:103: for each function it appear
s in.)
*** Error code 1
Stop.
>Fix:
I don't know. Or mm I missing something?
T_MACHCHECK seems not defined anywhere under /usr/src/sys/.
>Audit-Trail:
>Unformatted: