Subject: kern/1818: kern
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chase@ece.utexas.edu>
List: netbsd-bugs
Date: 12/06/1995 16:35:16
>Number: 1818
>Category: kern
>Synopsis: kern
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 6 17:50:09 1995
>Last-Modified:
>Originator: Craig Chase
>Organization:
Electrical and Computer Engineering, the University of Texas at Austin
>Release: 1.1 (current as of Dec. 5, 1995)
>Environment:
System: NetBSD orac 1.1 NetBSD 1.1 (ORAC) #12: Mon Dec 4 10:37:07 CST 1995 chase@orac:/a/orac/home/orac/src/sys/arch/i386/compile/ORAC i386
P5-100, Adaptec 2940W controller, 64Meg RAM, ATI Mach64 video
>Description:
I can not compile the kernel with gcc-2.7.2 because of incorrect prototypes
in the /usr/src/sys/ddb subdirectory.
>How-To-Repeat:
>Fix:
NOTE: db_command.c assumes that a vm_map_t (which is a pointer) will fit in
a db_expr_t (which is an int). This may not be true on all architectures
*** ddb/db_command.c.dist Fri Oct 13 21:36:23 1995
--- ddb/db_command.c Wed Dec 6 14:26:32 1995
***************
*** 285,297 ****
db_expr_t count;
char * modif;
{
- extern void _vm_map_print();
boolean_t full = FALSE;
if (modif[0] == 'f')
full = TRUE;
! _vm_map_print(addr, full, db_printf);
}
/*ARGSUSED*/
--- 285,296 ----
db_expr_t count;
char * modif;
{
boolean_t full = FALSE;
if (modif[0] == 'f')
full = TRUE;
! _vm_map_print((vm_map_t)addr, full, db_printf);
}
/*ARGSUSED*/
***************
*** 302,314 ****
db_expr_t count;
char * modif;
{
- extern void _vm_object_print();
boolean_t full = FALSE;
if (modif[0] == 'f')
full = TRUE;
! _vm_object_print(addr, full, db_printf);
}
/*
--- 301,312 ----
db_expr_t count;
char * modif;
{
boolean_t full = FALSE;
if (modif[0] == 'f')
full = TRUE;
! _vm_object_print((vm_object_t)addr, full, db_printf);
}
/*
*** ddb/db_output.c.dist Fri Oct 13 21:36:28 1995
--- ddb/db_output.c Wed Dec 6 14:29:21 1995
***************
*** 186,191 ****
--- 186,192 ----
extern int db_radix;
/*VARARGS1*/
+ void
#ifdef __STDC__
db_printf(char *fmt, ...)
#else
*** ddb/db_output.h.dist Fri Oct 13 21:36:29 1995
--- ddb/db_output.h Wed Dec 6 14:29:42 1995
***************
*** 35,38 ****
void db_force_whitespace __P((void));
int db_print_position __P((void));
void db_end_line __P((void));
! int db_printf __P((char *, ...));
--- 35,38 ----
void db_force_whitespace __P((void));
int db_print_position __P((void));
void db_end_line __P((void));
! void db_printf __P((const char *, ...));
>Audit-Trail:
>Unformatted:
ddb prototypes have errors, patch enclosed