From owner-freebsd-current@FreeBSD.ORG Tue Jan 26 23:27:13 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6868C106566B for ; Tue, 26 Jan 2010 23:27:13 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 281E98FC0C for ; Tue, 26 Jan 2010 23:27:13 +0000 (UTC) Received: from isis.bris.ac.uk ([137.222.10.63]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1NZuoO-0005PV-VE for freebsd-current@freebsd.org; Tue, 26 Jan 2010 23:27:12 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by isis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1NZuoO-0000mE-01 for freebsd-current@freebsd.org; Tue, 26 Jan 2010 23:27:08 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.3/8.14.3) with ESMTP id o0QNR7Yw057481 for ; Tue, 26 Jan 2010 23:27:07 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.3/8.14.3/Submit) id o0QNR70E057469 for freebsd-current@freebsd.org; Tue, 26 Jan 2010 23:27:07 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Tue, 26 Jan 2010 23:27:07 +0000 From: Anton Shterenlikht To: freebsd-current@freebsd.org Message-ID: <20100126232707.GG26462@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -1.4 X-Spam-Level: - Subject: can't load smbfs kernel module X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2010 23:27:13 -0000 I didn't get any luck asking in questions@, so maybe this is a current@ issue: On Mon, Jan 25, 2010 at 09:56:54PM +0000, Anton Shterenlikht wrote: > On Mon, Jan 25, 2010 at 10:38:47AM -0600, Kevin Kinsey wrote: > > Anton Shterenlikht wrote: > > > This is on FreeBSD 9.0-CURRENT #0 r202964M ia64 > > > > > > I've built a kernel with smbfs module: > > > > > > # ls -al /boot/kernel/smb* > > > -r-xr-xr-x 1 root wheel 265579 25 Jan 13:36 /boot/kernel/smbfs.ko > > > -r-xr-xr-x 1 root wheel 680186 25 Jan 13:36 /boot/kernel/smbfs.ko.symbols > > > > > > but can't load it: > > > > > > # kldload smbfs > > > kldload: can't load smbfs: No such file or directory > > > > > > > > > Other modules load fine with kldload, e.g.: > > > > Does it make any difference to use the ".ko" extension, to > > call it by absolute path, or to use "-v" for more information, > > per The Friendly Manual? > > no, doesn't make any difference: > > # kldload -v /boot/kernel/smbfs.ko > kldload: can't load /boot/kernel/smbfs.ko: No such file or directory > # > > but I see in /var/log/messages: > > kernel: KLD smbfs.ko: depends on libiconv - not available or version mismatch > > I've rebuilt world, rebuilt and reinstalled kernel, installed world, > and merged, etc., including rm -rf /usr/obj/* , so there shouldn't > be any version mismatch. > > Is there a way to debug this further? well.. maybe this is irrelevant, but I disovered that there is actually a module libiconv, despite the fact that there are already libiconv lib built with the base OS: > ls -al /usr/local/lib/libiconv.* -rw-r--r-- 1 root wheel 1113476 4 Aug 22:40 /usr/local/lib/libiconv.a -r--r--r-- 1 root wheel 920 4 Aug 22:40 /usr/local/lib/libiconv.la lrwxr-xr-x 1 root wheel 13 4 Aug 22:40 /usr/local/lib/libiconv.so -> libiconv.so.3 -r--r--r-- 1 root wheel 1102764 4 Aug 22:40 /usr/local/lib/libiconv.so.3 Anyway, I've built the libiconv module, and loaded it to the kernel, but still get the same error trying to load smbfs. Please advise many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ----- End forwarded message ----- -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423