From owner-svn-src-stable@FreeBSD.ORG Mon Apr 1 15:12:40 2013 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 47FB3DA8; Mon, 1 Apr 2013 15:12:40 +0000 (UTC) Date: Mon, 1 Apr 2013 15:12:40 +0000 From: Alexey Dokuchaev To: Alexander Motin Subject: Re: svn commit: r236750 - in stable/8: share/man/man4 sys/conf sys/dev/sound/pci/hda sys/modules/sound/driver/hda Message-ID: <20130401151240.GA75193@FreeBSD.org> References: <201206081235.q58CZiiK059149@svn.freebsd.org> <20130321162521.GA82532@FreeBSD.org> <20130401085049.GA84064@FreeBSD.org> <515966CC.2000108@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <515966CC.2000108@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@freebsd.org X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Apr 2013 15:12:40 -0000 On Mon, Apr 01, 2013 at 01:51:56PM +0300, Alexander Motin wrote: > On 01.04.2013 11:50, Alexey Dokuchaev wrote: > >While trying to debug this problem, I've noticed that though I can > >recompile snd_hda(4), I cannot load it: > > > > # kldload ./snd_hda.ko > > kldload: can't load ./snd_hda.ko: No such file or directory > > > >The message is clearly bogus, but in /var/log/messages I see this line: > > > > link_elf: symbol snd_verbose undefined > > > >Is this known behavior? How to remedy it? > > I guess it is result of some mismatch between sources used for > building and the running kernel. I haven't tested it last time, but > previously snd_hda perfectly worked as module. It works perfectly as a module, indeed: if I do full "make kernel". I use modules whenever it's possible in fact. The problem is that once I rebuild (in exactly the same source base) just snd_hda(4), that is "cd /sys/modules /sound/driver/hda && make", I cannot load newly built ./snd_hda.ko anymore, while "kldload /boot/kernel/snd_hda.ko" works fine. On the same running kernel, against the very same sources. I needed sound to work very soon this time (upcoming Skype conference call), so I just rolled back your changes and did "make kernel", but honestly I find it very annoying having to rebuild entire kernel when just snd_hda(4) rebuild should suffice. BTW, any ideas why my nid patches from pre-r236750 no longer apply? ./danfe