Subject: kern/3589: kern_proc.c fails to compile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nimenees@par0163.urh.uiuc.edu>
List: netbsd-bugs
Date: 05/08/1997 13:16:52
>Number: 3589
>Category: kern
>Synopsis: kern_proc.c is missing some ddb includes: Compile fails.
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 8 11:20:01 1997
>Last-Modified:
>Originator: Eric Haszlakiewicz
>Organization:
>Release: 1.2D
>Environment:
Pentium. NetBSD-current as of 5/8/97.
>Description:
Compiling the current kernel with DDB results in this error message:
cc <stuff> kern_proc.c
cc1: warnings being treated as errors
../../../../kern/kern_proc.c: In function `db_kill_proc':
../../../../kern/kern_proc.c:405: warning: implicit declaration of function `db_expression'
../../../../kern/kern_proc.c:406: warning: implicit declaration of function `db_error'
*** Error code 1
>How-To-Repeat:
build kernel with DDB.
>Fix:
patch w/ this:
*** kern_proc.c.old Thu May 8 13:13:51 1997
--- kern_proc.c Thu May 8 13:13:44 1997
*************** pgrpdump()
*** 386,391 ****
--- 386,394 ----
#include <ddb/db_interface.h>
#include <ddb/db_lex.h>
#include <ddb/db_output.h>
+ #include <ddb/db_sym.h>
+ #include <ddb/db_extern.h>
+ #include <ddb/db_command.h>
void
db_kill_proc(addr, haddr, count, modif)
>Audit-Trail:
>Unformatted:
>System: NetBSD par0163.urh.uiuc.edu 1.2D NetBSD 1.2D (REALMS) #58: Tue May 6 15:15:05 CDT 1997 nimenees@par0163.urh.uiuc.edu:/usr/src/sys/arch/i386/compile/REALMS i386