From owner-freebsd-stable Wed Aug 9 13:39:24 2000 Delivered-To: freebsd-stable@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 92BE437BAEB for ; Wed, 9 Aug 2000 13:39:18 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id OAA99239; Wed, 9 Aug 2000 14:39:16 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id OAA50466; Wed, 9 Aug 2000 14:38:51 -0600 (MDT) Message-Id: <200008092038.OAA50466@harmony.village.org> To: Matt Dillon Subject: Re: agp_if.c Cc: Gunnar Flygt , Ruslan Ermilov , freebsd-stable@FreeBSD.ORG In-reply-to: Your message of "Wed, 09 Aug 2000 00:43:36 PDT." <200008090743.AAA50631@earth.backplane.com> References: <200008090743.AAA50631@earth.backplane.com> <134950593991.20000808104445@corbina.net> <20000808104924.E11454@sunbay.com> <20000808123728.D92082@sr.se> Date: Wed, 09 Aug 2000 14:38:51 -0600 From: Warner Losh Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200008090743.AAA50631@earth.backplane.com> Matt Dillon writes: : : : : :On Tue, Aug 08, 2000 at 10:49:24AM +0300, Ruslan Ermilov wrote: : :> On Tue, Aug 08, 2000 at 10:44:45AM +0400, Dmitry Malov wrote: : :> > Hello, : :> > : :> > just cvsuped FreeBSD-4.x-STABLE and I've got : :> > : :> > make: don't know how to make agp_if.c. Stop : :> > *** Error code 2 : :> > : :... : : I got hit with this too, and spent an hour trying to figure out : what was broken. Not fun. : : Updating and installing /usr/src/share/mk fixed the problem for me. : : Perhaps the time has come to move the kernel-specific .mk files into : /usr/src/sys/Mk where they belong, rather then /usr/share/mk. Something : akin to what the ports hierarchy has done w/ /usr/ports/Mk (with : astounding success, I might add!). I'm starting to get tired of : the kernel builds failing in -stable every few days and seeing : *nothing* in UPDATING describing the problem other then 'use the magic : kernel build mechanism and it ought to work'. That doesn't help at all, : it's dumbed down too much. The problem was because the bsd.kmod.mk stuff in 4.0 didn't have enough support for building *_if.h files. There's a second problem that you'll hit which is binutils being otu of date. The UPDATING file is known to work. Other kludges to kinda sorta work around the problem arn't, change too much and generally are a big pita to keep up to date in UPDATING. Searching the archives for -stable will show a posting where I went through this in some detail. That should be enough to know how to kludge around it. It really is *MUCH* easier to use {build,install}kernel. Finally, the kernel specific .mk files have already moved to /usr/src/sys/conf, where they belong. That's why things broke, actually, the functionality moved to the conf directory. The versions that are in /usr/share/mk are just place holders. They find the kernel sources and include the right $(SYSDIR)/conf/kmod.mk. BTW, I couldn't find the phrase 'use the magic kernel building mechanism and it ought to work' in my UPDATING file. Such a phrase is patronizing and in appropriate for UDPATING. Can you tell me which version you found it in? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message