From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 14 16:30:00 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49DE316A49E for ; Thu, 14 Sep 2006 16:30:00 +0000 (UTC) (envelope-from psthomso@hotmail.com) Received: from bay0-omc1-s13.bay0.hotmail.com (bay0-omc1-s13.bay0.hotmail.com [65.54.246.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9576643DD6 for ; Thu, 14 Sep 2006 16:29:50 +0000 (GMT) (envelope-from psthomso@hotmail.com) Received: from BAY102-W5 ([64.4.61.105]) by bay0-omc1-s13.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 14 Sep 2006 09:29:50 -0700 X-Originating-IP: [143.182.124.3] X-Originating-Email: [psthomso@hotmail.com] Message-ID: MIME-Version: 1.0 From: "Sean Thomson" To: "John-Mark Gurney" Date: Thu, 14 Sep 2006 10:29:50 -0600 X-OriginalArrivalTime: 14 Sep 2006 16:29:50.0715 (UTC) FILETIME=[00492CB0:01C6D81B] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: RE: Issue with loading a module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2006 16:30:00 -0000 Hey John, =20 thanks for responding :)> > In working with a device driver, sometimes> > a= fter I rebuild it and reload it, I'll get> > system log errors like> > > >= 'link_elf: symbol yyz undefined'> > I assume that it fails to load when yo= u get this message? yes. The thing to note, and i probably wasn't very clea= r,is that the module loaded initially without any problems,but in the proce= ss of debugging, I unload it, rebuiltit and try to load it again, which it = then fails> > > Actually, I'll get an entry for all my > > exported symbol= s. If I reboot, it clears> > up.> > exported from your kernel module? yes> = > > I'm working on a stock 6.1 kernel.> > > > Has anyone else seen this? I= poked around> > the mailing lists but didn't find any> > like this?> > Usu= ally this is due to depending upon symbols that another module> exports, bu= t not having a MODULE_DEPEND line to let one module see> the other module's= symbols... This particular module is not dependant on any other modules, t= houghother modules are dependant on it. It's choking on the symbols I'mtryi= ng to export.=20 =20 After the reboot, the module loads fine. I'm suspecting that a symbol table is not being cleared properly, but that is only SWAG =20 Pat _________________________________________________________________ Search from any Web page with powerful protection. Get the FREE Windows Liv= e Toolbar Today! http://get.live.com/toolbar/overview=