From owner-freebsd-stable@FreeBSD.ORG Fri Oct 19 15:13:17 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 C875316A41A for ; Fri, 19 Oct 2007 15:13:17 +0000 (UTC) (envelope-from pj@smo.de) Received: from ilk.de (mx-out13.ilk.de [194.121.104.13]) by mx1.freebsd.org (Postfix) with ESMTP id 5F14A13C4B6 for ; Fri, 19 Oct 2007 15:13:16 +0000 (UTC) (envelope-from pj@smo.de) Received: from bologna.intern.smo.de (pool52.ka.ilk.net [212.86.194.52]) by ilk.de (8.13.4/8.13.4/ilk-relay) with ESMTP id l9JFDE17008596; Fri, 19 Oct 2007 17:13:14 +0200 Received: from [192.168.153.209] (askja.intern.smo.de [192.168.153.209]) by bologna.intern.smo.de (8.13.8+Sun/8.13.8) with ESMTP id l9JF9MI8029394; Fri, 19 Oct 2007 17:09:22 +0200 (CEST) Message-ID: <4718C952.5010402@smo.de> Date: Fri, 19 Oct 2007 17:12:18 +0200 From: Philipp Ost User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070527 X-Accept-Language: de-de, en-us, en MIME-Version: 1.0 To: Ruslan Ermilov References: <47177F6C.4060600@smo.de> <4717AECF.40503@smo.de> <20071019142122.GA53214@team.vega.ru> In-Reply-To: <20071019142122.GA53214@team.vega.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 15:13:17 -0000 Ruslan Ermilov wrote: > 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. Thanks for the explanation of the technical background. In the meantime I did the upgrade to 7.0 and also rebuilt the kernel -- as pointed out the warnings are gone ;-) Seems like I was a little bit too concernced about some (possible) breakage... Thanks again for all the answers! Cheers, Philipp -- http://www.familie-ost.info/~pj