From owner-freebsd-current Thu Oct 24 11:00:47 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA10388 for current-outgoing; Thu, 24 Oct 1996 11:00:47 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA10258; Thu, 24 Oct 1996 10:59:22 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id KAA12345; Thu, 24 Oct 1996 10:56:27 -0700 From: Terry Lambert Message-Id: <199610241756.KAA12345@phaeton.artisoft.com> Subject: Re: Can't compile profiled kernel To: bde@zeta.org.au (Bruce Evans) Date: Thu, 24 Oct 1996 10:56:27 -0700 (MST) Cc: bde@FreeBSD.ORG, current@FreeBSD.ORG, julian@whistle.com In-Reply-To: <199610240953.TAA06113@godzilla.zeta.org.au> from "Bruce Evans" at Oct 24, 96 07:53:51 pm X-Mailer: ELM [version 2.4 PL24] 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 > >where do these come from? > > These are inline functions defined in . > is included by . I removed the include > of in mcount.c because it is unused. It is only unused > in the !GUPROF case. Oops. (There are some macros which expand to > read_eflags() etc. in the !GUPROF case but the GUPROF case requires > assembler stubs which have to disable interrupts, so the C code doesn't > need to disable interrupts again.) > > This is easy to fix by including again or using option > GUPROF (config with -pp). I think someone wants you to test GUPROF :-). Ugh. Please add: #ifdef GUPROF #include #endif /* !GUPROF*/ to mcount.c. The code should compile independent of the compile time options selected. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.