From owner-freebsd-stable@FreeBSD.ORG Fri Oct 19 14:55:59 2007 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A79A716A418 for ; Fri, 19 Oct 2007 14:55:59 +0000 (UTC) (envelope-from rermilov@team.vega.ru) Received: from mail.vega.ru (mx1.vega.ru [87.242.77.163]) by mx1.freebsd.org (Postfix) with ESMTP id 5EC0B13C448 for ; Fri, 19 Oct 2007 14:55:59 +0000 (UTC) (envelope-from rermilov@team.vega.ru) Received: from [87.242.97.68] (port=56694 helo=edoofus.dev.vega.ru) by mail.vega.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1Iisjs-000Gud-1B; Fri, 19 Oct 2007 14:22:12 +0000 Received: from edoofus.dev.vega.ru (localhost [127.0.0.1]) by edoofus.dev.vega.ru (8.14.1/8.14.1) with ESMTP id l9JELNFV053621; Fri, 19 Oct 2007 18:21:23 +0400 (MSD) (envelope-from rermilov@team.vega.ru) Received: (from ru@localhost) by edoofus.dev.vega.ru (8.14.1/8.14.1/Submit) id l9JELMYr053620; Fri, 19 Oct 2007 18:21:22 +0400 (MSD) (envelope-from rermilov@team.vega.ru) X-Authentication-Warning: edoofus.dev.vega.ru: ru set sender to rermilov@team.vega.ru using -f Date: Fri, 19 Oct 2007 18:21:22 +0400 From: Ruslan Ermilov To: Philipp Ost Message-ID: <20071019142122.GA53214@team.vega.ru> References: <47177F6C.4060600@smo.de> <4717AECF.40503@smo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4717AECF.40503@smo.de> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: stable@freebsd.org, Vlad GALU Subject: Re: kldxref: file isn't dynamically-linked -- expected behaviour? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2007 14:55:59 -0000 On Thu, Oct 18, 2007 at 09:06:55PM +0200, Philipp Ost wrote: > Vlad GALU wrote: >> On 10/18/07, Philipp Ost wrote: >>> Hi list, >>> >>> I'm currently upgrading from 6.2-STABLE (13 Oct. 2007) to RELENG_7. I >>> did the following after csup'ing my sources: >>> # make kernel-toolchain >>> # make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=MYKERNEL >>> # make -DALWAYS_CHECK_MAKE installkernel KERNCONF=MYKERNEL >>> >>> The last thing 'installkernel' reports is: >>> [...] >>> kldxref /boot/kernel >>> kldxref: file isn't dynamically-linked >>> [...] >>> >>> This message is repeated 514 times... ;-) Is this expected behaviour? >>> Before I do a reboot I would like to make sure "everything works" as I >>> rely on that particular machine. >>> >>> If needed I can provide full logs; MYKERNEL is a cut down version of >>> GENERIC with atapicam, drm, radeondrm, sound added ;-) >>> >>> >>> Thanks in advance for any hint/help! >>> >> It's harmless. Once you boot with your new RELENG_7 they will >> disappear on the next kernel build/install. > > Thanks a lot. I saw this message for the first time in my life and was a > little bit concerned about it... But if everything seems to be fine I will > give it a try. > As others have pointed out, these messages are harmless. It's caused by the old (6.x version) kldxref(8) binary trying to hash the *.symbols files that are installed along with debug versions of kernel and module objects, and that contain symbol information needed for debugging, and aren't dynamically linked ELF files. So the old kldxref(8) ignores these files, but issues a warning. Once you upgrade to 7.x, you'll have also installed the new (7.x version) of kldxref(8) that is aware of .symbols files, so warnings will be gone. Technically, kldxref(8) should be a cross-tool (in the buildworld sense), but last time I tried to convert it to be a cross-tool several years ago it wasn't very easy. It's quite possible it will be easier now that we only support limited upgrade paths. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer