smbfs problems?

Hiten Pandya hmp at backplane.com
Wed Mar 17 03:05:54 PST 2004


Adam K Kirchhoff wrote:

Adam K Kirchhoff <adamk at xxxxxxxxxxxx> wrote:

Adam K Kirchhoff <adamk at xxxxxxxxxxxx> wrote:

Hiten Pandya <hmp at xxxxxxxxxxxxx> wrote:

Adam K Kirchhoff wrote:


Is there something up with smbfs?

[ root at sorrow - /home/adamk ]: kldload smbfs
kldload: can't load smbfs: Exec format error
This is from a build from just last night.

Adam



	Dear Adam,


	I have been aware of this problem for quite a long time now,
	but it got pushed down on my list of things to do.


	Anyway, I have committed a fix to for this problem just a few
	minutes ago.  You will need to build the SMBFS module,
	libmchain and libiconv and install them into /modules.


	Once you have done that, load libiconv, libmchain and finally
	load smbfs.ko:


	# cd /sys/vfs/smbfs && make && make install
	# cd ../../libkern && make && make install
	# cd ../kern/libmchain && make && make install


	# kldload libiconv; kldload libmchain; kldload smbfs
	netsmb_dev: loaded


	Enjoy and thanks for reminding me! :-)


I'm getting closer :-)


I still have one problem, though:


[ root at sorrow - ~ ]: mount /home/adamk/thorn 
smbfs: can't get handle to requester (no /dev/nsmb* device)


I do have /dev/nsmb* devices:


[ root at sorrow - ~ ]: ls -l /dev/nsmb*
crw-------  1 root  wheel  144,   0 Mar 16 08:46 /dev/nsmb0
crw-------  1 root  wheel  144,   1 Mar 16 08:46 /dev/nsmb1
crw-------  1 root  wheel  144,   2 Mar 16 08:46 /dev/nsmb2
crw-------  1 root  wheel  144,   3 Mar 16 08:46 /dev/nsmb3


Any ideas?


So a little more poking reveals the following showing up in dmesg:


error: module compiled without SMP support
netsmb_dev: unloaded
module_register_init: MOD_LOAD (dev_netsmb, ddc6a134, 0) error 1
error: module compiled without SMP support


Could this be the cause of my current problems?


I did some googling and saw that you need options NETSMB and
NETSMBCRYPTO with FreeBSD in the kernel.  So I tried adding 
those two options and recompiling.  Unfortunately, the build dies:

http://memory.visualtech.com/build.txt

	Add LIBMCHAIN  and LIBICONV options to your kernel config
	too.  All mb_* errors are resulting from that, and so are
	the iconv_* errors.
	Cheers.

	-Hiten
	Hiten Pandya
	hmp at xxxxxxxxxxxxx || hmp at xxxxxxxxxxx





More information about the Bugs mailing list