From owner-freebsd-current Wed May 22 1:58:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from sdns.kv.ukrtel.net (sdns.kv.ukrtel.net [195.5.27.246]) by hub.freebsd.org (Postfix) with ESMTP id 7106737B40B for ; Wed, 22 May 2002 01:58:22 -0700 (PDT) Received: from vega.vega.com (195.5.51.243 [195.5.51.243]) by sdns.kv.ukrtel.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id J9KHZ7AH; Wed, 22 May 2002 12:00:13 +0300 Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.6/8.11.3) with ESMTP id g4M8wQc10663; Wed, 22 May 2002 11:58:26 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3CEB5DB7.6F6DE853@FreeBSD.org> Date: Wed, 22 May 2002 11:58:32 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: Martin Kacerovsky Cc: current@freebsd.org Subject: Re: cannot make vidcontrol References: <20020522092802.A3286@amutor.kolej.mff.cuni.cz> <3CEB5553.E5E96E13@FreeBSD.org> <20020522103935.A4593@amutor.kolej.mff.cuni.cz> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Martin Kacerovsky wrote: > > On Wed, May 22, 2002 at 11:22:43AM +0300, Maxim Sobolev wrote: > > sys/consio.h header installed on your system is too old. You need to > > do a fresh `make world' and rebuild/reinstall your kernel - it's the > > only way to do vidcontrol upgrade properly. > > I don't understand, I have CVSUPed the whole tree and rebuilt the kernel, > after boot when I launched vidcontrol it said me unapropriate ioctl ..., > so I've decided to rebuild it from the same tree as kernel, so IMO the > sys/consio.h is the same version as vidcontrol is, isn't it? > > I don't understand why I must build the whole world, if only vidcontrol > has problems with the new kernel. (The "old world" is snapshot > 5.0-20020302-PREVIEW). > > Maybe I don't understand, because I am stupid, but I thought making new > world is neccesary only when upgrading from -stable. I thought that in > that snapshot the world already is 5.0, so it isn't neccessary to rebuild > it all. > > If I am wrong (99.9% probability), be so kind and correct me or at least > "show me the right way" (drop some links). You are seeing this because you didn't follow proper upgrade procedure. Each time you are rebuilding your kernel from the freshly cvsuped sources you need to do make world as well, because in FreeBSD kernel and some utilities in the base system are tightly integrated. Therefore you can't use September kernel with August world, and vice-versa (actually you can, but then you will see the problems like this one or even worse). Rebuilding only problematic utilities from the sources isn't going to help you either, because without make world, your set of C header files in /usr/include/sys describing kernel interfaces remains outdated, so that compilation would either fail or doesn't produce any sensible results. I believe that there is a chapter in the FreeBSD Handbook about doing source upgrades properly - please check it out. Handbook itself is available from the www.FreeBSD.org site. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message