From owner-freebsd-stable Fri Feb 1 22:29:49 2002 Delivered-To: freebsd-stable@freebsd.org Received: from creme-brulee.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id CD89037B402; Fri, 1 Feb 2002 22:29:40 -0800 (PST) Received: from shumai.marcuscom.com (marcus@shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.11.6/8.11.6) with ESMTP id g126Sqm45630; Sat, 2 Feb 2002 01:28:53 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Re: smbfs breakage in 4.5-stable From: Joe Clarke To: peter.lai@uconn.edu Cc: FreeBSD User Questions List , freebsd-stable@freebsd.org In-Reply-To: <20020202010922.A212@cowbert.2y.net> References: <20020202010922.A212@cowbert.2y.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 02 Feb 2002 01:29:58 -0500 Message-Id: <1012631398.27638.8.camel@shumai.marcuscom.com> Mime-Version: 1.0 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 2002-02-02 at 01:09, Peter C. Lai wrote: > After 4.5 was released, i cvsup'd a complete fresh set of sources > (e.g. deleting /usr/src/* and /usr/obj/*), > made world, installed world and a new kernel, and now mount_smbfs errors > out the first time with 'exec format' and if you try it again, > it says 'file exists'. kldstat shows the smbfs.ko not loaded the first time > it fails but it does load the second time, and remains loaded. There is no > error with the module loading. The smbfs kernel module was modified in the 4.5-PRERELEASE track so to depend on the libiconv and libmchain modules. Before that, doing a mount_smbfs resulted in an "exec format error" with a message in /var/log/messages indicated a symbol in smbfs.ko was undefined. You might want to verify that all of those modules are up-to-date. I just tried this on a recent 4.5-RC machine with no smbfs-related options in the kernel, and it worked like a champ. > > After perusing the mailing lists, I realized the problem could be caused by > the smbfs port which i didn't remove prior to make and install world. > I pkg_delete'd it, during which it noted that /sbin/mount_smbfs and > /modules/smbfs.ko had been modified. Thus, the installworld did overwrite > those two files into the 4.5 versions. Make sure that when you rebuild world, you build all the kernel modules as well. When you mount a smb share, you should have the following modules loaded: 5 1 0xc3417000 1a000 smbfs.ko 6 1 0xc3432000 3000 libiconv.ko 7 1 0xc3436000 3000 libmchain.ko Joe > > on bootup, netsmb_dev loads fine. Another note: I installed the same world > onto another machine running a completely new install of 4.5-rc3 via samba > export, and now that machine's mount_smbfs is broken too. > > any help would be appreciated > Please cc responses to sirmoo@cowbert.2y.net since i don't subscribe to > either -questions or -stable > -- > Peter C. Lai > University of Connecticut > Dept. of Residential Life | Programmer > Dept. of Molecular and Cell Biology | Undergraduate Research Assistant > http://cowbert.2y.net/ > 860.427.4542 (Room) > 860.486.1899 (Lab) > 203.206.3784 (Cellphone) > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message