Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Aug 2000 14:38:51 -0600
From:      Warner Losh <imp@village.org>
To:        Matt Dillon <dillon@earth.backplane.com>
Cc:        Gunnar Flygt <gunnar@pluto.sr.se>, Ruslan Ermilov <ru@sunbay.com>, freebsd-stable@FreeBSD.ORG
Subject:   Re: agp_if.c 
Message-ID:  <200008092038.OAA50466@harmony.village.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> 

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




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