From owner-freebsd-current Sat Mar 23 11:05:17 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA03090 for current-outgoing; Sat, 23 Mar 1996 11:05:17 -0800 (PST) Received: from lear35.cytex.com (root@lear35.cytex.com [38.252.97.5]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id LAA03083 for ; Sat, 23 Mar 1996 11:05:15 -0800 (PST) Received: (from mbartley@localhost) by lear35.cytex.com (8.7.5/8.6.12) id LAA02099 for freebsd-current@freebsd.org; Sat, 23 Mar 1996 11:05:13 -0800 (PST) From: Matt Bartley Message-Id: <199603231905.LAA02099@lear35.cytex.com> Subject: kern/subr_prf.c To: freebsd-current@freebsd.org Date: Sat, 23 Mar 1996 11:05:13 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL13 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I just ran sup this morning. This is what happened when I tried to recompile the kernel: cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Winline -nostdinc -I. -I../.. -I../../sys -I../../../include -DI386_CPU -DI486_CPU -DI586_CPU -DI686_CPU -DATAPI -DFAILSAFE -DCOMPAT_43 -DCD9660 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL ../../kern/subr_prf.c ../../kern/subr_prf.c: In function `panic': ../../kern/subr_prf.c:123: `debugger_on_panic' undeclared (first use this function) ../../kern/subr_prf.c:123: (Each undeclared identifier is reported only once ../../kern/subr_prf.c:123: for each function it appears in.) *** Error code 1 Stop. That was with the GENERIC kernel - I tried that after my custom kernel failed the same way. from kern/subr_prf.c: debugger_on_panic is declared ---------------------------------------------------------------------- #if defined(DDB) || defined (KGDB) #ifdef DDB_UNATTENDED static int debugger_on_panic = 0; #else static int debugger_on_panic = 1; #endif SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, CTLFLAG_RW, &debugger_on_panic, 0, ""); #endif ---------------------------------------------------------------------- here is where it failed in compile, at the end of the fuction panic(): ---------------------------------------------------------------------- printf("\n"); if (debugger_on_panic) { <---- source of error #ifdef KGDB kgdb_panic(); #endif #ifdef DDB Debugger ("panic"); #endif } boot(bootopt); } ----------------------------------------------------------------------