From owner-freebsd-questions Fri Dec 8 22:30:38 2000 From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 22:30:35 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 9F9DC37B400 for ; Fri, 8 Dec 2000 22:30:33 -0800 (PST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 1EA876AB68; Sat, 9 Dec 2000 17:00:31 +1030 (CST) Date: Sat, 9 Dec 2000 17:00:31 +1030 From: Greg Lehey To: chip Cc: freebsd-questions@freebsd.org Subject: Re: Kernel compile error Message-ID: <20001209170031.U53111@wantadilla.lemis.com> References: <3A31BF2E.30EA2F1D@wiegand.org> <20001209154129.P53111@wantadilla.lemis.com> <3A31D08A.39BF963A@wiegand.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A31D08A.39BF963A@wiegand.org>; from chip@wiegand.org on Fri, Dec 08, 2000 at 10:26:18PM -0800 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Friday, 8 December 2000 at 22:26:18 -0800, chip wrote: > Greg Lehey wrote: >> >> On Friday, 8 December 2000 at 21:12:14 -0800, chip wrote: >>> I copied the GENERIC kernel to WIEGAND, ran vi to add one >>> line at the bottom of the file - >>> device pcm then ran >>> /usr/sbin/config -g WIEGAND and all is okay >>> ../../compile/WIEGAND and get the following error: >>> cc -c -0 -Wall -Wredundant-decls -Wnested-externs >>> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith >>> -Winline -Wcast-qual -fformat-extensions -ansi -g -nostdinc >>> -I- -I. -I../.. -I../../../include -D_KERNEL -include >>> opt_global.h -el -mpreferred-stack-boundary=2 >>> ../../dev/aic7xxx/aic7770.c In file included from >>> ../../dev/aic7xxx/aic7xxx_freebsd.h:176, from >>> ../../dev/aic7xxx/aic7770.c:41: >>> ../../dev/aic7xxx/aic7xxx.h:40: aic7xxx_reg.h: >>> no such file or directory Error Code 1 >>> stop in /usr/src/sys/compile/WIEGAND >>> >>> I then ran vi WIEGAND and found one line with aic and >>> commented out that one line, reran the above and got >>> the same results. I then deleted WIEGAND and started >>> over but did not comment out the aic line, just added >>> the device pcm only, and now get access denied even >>> though I am doing this as root. >>> >>> I can't find a log file of the errors, is there one? >>> I wrote all that stuff down on paper then typed it all >>> in this long-hand. >>> Help please, I just want to enable a sb64 card. >> >> Did you read this message? > > Yeah, for whatever reason I figured doing the make was > the same, in your book (3rd ed. 1999) it shows make with > the depend. Was this corrected in one of the addendums I > haven't read all of? :) Yup. It's counterintuitive to *require* a make depend if you have just created the directory, and it took me a while to realise that people depended on it. > Anyway, now the following happens quite a ways in to the > process (I'm now running make depend) - > ===> agp > make: don't know how to make apg_if.c stop > error code 2 > stop in /usr/src/sys/modules > error code 1 > stop in /usr/src/sys/compile/WIEGAND > > I went through the WIEGAND kernel and do not see any > references to agp at all. What am I missing now? These are the modules, not the kernel. I don't know why this isn't working, but it points to problems in your makefile configuration. The good news is that you don't need it. Just go back and build the kernel. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message