Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 1996 11:05:13 -0800 (PST)
From:      Matt Bartley <mbartley@lear35.cytex.com>
To:        freebsd-current@freebsd.org
Subject:   kern/subr_prf.c
Message-ID:  <199603231905.LAA02099@lear35.cytex.com>

next in thread | raw e-mail | index | archive | help
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);
}
----------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603231905.LAA02099>