Subject: kern/11421: 1.5BETA DEBUG build is broke
To: None <gnats-bugs@gnats.netbsd.org>
From: None <joff@gci-net.com>
List: netbsd-bugs
Date: 11/04/2000 15:14:12
>Number:         11421
>Category:       kern
>Synopsis:       1.5BETA DEBUG build is broke
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 04 15:14:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jesse Off
>Release:        1.5BETA
>Organization:
>Environment:
NetBSD construct.home 1.5_BETA NetBSD 1.5_BETA (CONSTRUCT) #50: Mon Oct 23 00:16:33 MST 2000     root@construct.home:/usr/src/sys/arch/i386/compile/CONSTRUCT i386

fresh sources checked out 2 hours ago.
>Description:
with options DEBUG in kernel config, the kernel build dies at exec_subr.c

cc -g -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DDEBUG -DMAXUSERS=32 -D_KERNEL -Di386  -c ../../../../kern/exec_subr.c
../../../../kern/exec_subr.c: In function `new_vmcmd':
../../../../kern/exec_subr.c:70: number of arguments doesn't match prototype
../../../../sys/exec.h:188: prototype declaration
*** Error code 1

Stop.

>How-To-Repeat:
try building a DEBUG kernel.
>Fix:
This patch fixes the build, but it almost looks like somebody was 
modifying this stuff lately and forgot to commit a file.  

===================================================================
RCS file: /cvsroot/syssrc/sys/kern/exec_subr.c,v
retrieving revision 1.18.2.1
diff -u -r1.18.2.1 exec_subr.c
--- exec_subr.c 2000/06/22 16:26:13     1.18.2.1
+++ exec_subr.c 2000/11/04 23:05:34
@@ -59,7 +59,7 @@
  */
 
 void
-new_vmcmd(evsp, proc, len, addr, vp, offset, prot)
+new_vmcmd(evsp, proc, len, addr, vp, offset, prot, flags)
        struct  exec_vmcmd_set *evsp;
        int     (*proc) __P((struct proc * p, struct exec_vmcmd *));
        u_long  len;
@@ -67,6 +67,7 @@
        struct  vnode *vp;
        u_long  offset;
        u_int   prot;
+       int     flags;
 {
        struct exec_vmcmd    *vcp;
 

>Release-Note:
>Audit-Trail:
>Unformatted: