Bug 78349

Summary: making of kernel with options SMBFS and NETSMB fails on amd64
Product: Base System Reporter: fredrik <fredrik>
Component: amd64Assignee: freebsd-amd64 (Nobody) <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.4-PRERELEASE   
Hardware: Any   
OS: Any   

Description fredrik 2005-03-03 10:20:04 UTC
	Cannot get mount_smbfs to work,
	mount_smbfs -I 10.0.0.1  //widell@host/share /mnt/share 
	mount_smbfs: kldload(smbfs): No such file or directory

	Trying to get mount_smbfs to work I put these 2 lines in my kernelconfig:

	options                SMBFS
	options                NETSMB

	make fails with the following output:
	...
	smb_usr.o(.text+0x590): In function `smb_usr_simplerequest':
	: undefined reference to `md_get_uint16le'
	smb_usr.o(.text+0x5c7): In function `smb_usr_simplerequest':
	: undefined reference to `md_get_mem'
	smb_usr.o(.text+0x654): In function `smb_cpdatain':
	: undefined reference to `mb_init'
	smb_usr.o(.text+0x66c): In function `smb_cpdatain':
	: undefined reference to `mb_put_mem'
	smb_usr.o(.text+0x7c4): In function `smb_usr_t2request':
	: undefined reference to `md_get_mem'
	smb_usr.o(.text+0x816): In function `smb_usr_t2request':
	: undefined reference to `md_get_mem'
	*** Error code 1
	
	Stop in /usr/src/sys/amd64/compile/NIC2.

How-To-Repeat: 	Make a kernel with the above options,
	options                SMBFS
	options                NETSMB
Comment 1 John Baldwin freebsd_committer freebsd_triage 2005-03-03 16:07:38 UTC
State Changed
From-To: open->closed

NETSMB depends on LIBMCHAIN and LIBICONV as documented in NOTES.
Comment 2 John Baldwin freebsd_committer freebsd_triage 2005-03-03 16:08:33 UTC
On Thursday 03 March 2005 05:13 am, Fredrik Widell wrote:
> 	Cannot get mount_smbfs to work,
> 	mount_smbfs -I 10.0.0.1  //widell@host/share /mnt/share
> 	mount_smbfs: kldload(smbfs): No such file or directory
>
> 	Trying to get mount_smbfs to work I put these 2 lines in my kernelconfig:
>
> 	options                SMBFS
> 	options                NETSMB
>
> 	make fails with the following output:

Check /sys/conf/NOTES again:

#
# SMB/CIFS requester
# NETSMB enables support for SMB protocol, it requires LIBMCHAIN and LIBICONV
# options.
# NETSMBCRYPTO enables support for encrypted passwords.
options         NETSMB                  #SMB/CIFS requester
options         NETSMBCRYPTO            #encrypted password support for SMB

Specifically, note that NETSMB requires LIBMCHAIN and LIBICONV.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org