building smbfs: undefined reference

Khitai Pang khitai.pang at
Sun Jan 3 17:35:00 UTC 2016

I tried mount_smbfs from ports net/samba-smbclient but got the following 

mount_smbfs: kldload(smbfs): No such file or directory

So I added 'options SMBFS' in my kernel config file, and kernel building 

/var/src/sys/fs/smbfs/smbfs_io.c:(.text+0x94): undefined reference to 
/var/src/sys/fs/smbfs/smbfs_io.c:(.text+0x367): undefined reference to 
/var/src/sys/fs/smbfs/smbfs_io.c:(.text+0x37a): undefined reference to 
smbfs_io.o: In function `smbfs_vinvalbuf':
/var/src/sys/fs/smbfs/smbfs_io.c:(.text+0x6cb): undefined reference to 

A lot of undefined references.  By simple grep I found that the missing 
functions are in sys/netsmb, so maybe I should also add 'options 
NETSMB'?  Anything else?  Where can I find documentation about this?


More information about the freebsd-questions mailing list