VFS version error
Jeremy Allison
jra at samba.org
Thu Feb 26 09:51:34 MST 2015
On Thu, Feb 26, 2015 at 11:56:19AM +0000, Sharayu Mantri wrote:
> Hello,
> while working on samba vfs modules , i was trying to create my own
> vfs_demo module. but when i try to connect to samba , Error occurs saying (
> in syslog)
>
> Feb 26 11:43:04 ubuntu smbd[21038]: Failed to register vfs module.
> Feb 26 11:43:04 ubuntu smbd[21038]: The module was compiled against
> SMB_VFS_INTERFACE_VERSION 31,
> Feb 26 11:43:04 ubuntu smbd[21038]: current SMB_VFS_INTERFACE_VERSION is
> 28.
> Feb 26 11:43:04 ubuntu smbd[21038]: Please recompile against the current
> Samba Version!
> Feb 26 11:43:04 ubuntu smbd[21038]: [2015/02/26 11:43:04.118551, 0]
> lib/module.c:69(do_smb_load_module)
> Feb 26 11:43:04 ubuntu smbd[21038]: Module
> '/usr/local/samba/lib/vfs/vfs_demo' initialization failed:
> NT_STATUS_OBJECT_TYPE_MISMATCH
> Feb 26 11:43:04 ubuntu smbd[21038]: [2015/02/26 11:43:04.118784, 0]
> smbd/vfs.c:173(vfs_init_custom)
> Feb 26 11:43:04 ubuntu smbd[21038]: error probing vfs module
> '/usr/local/samba/lib/vfs/vfs_demo': NT_STATUS_OBJECT_TYPE_MISMATCH
> Feb 26 11:43:04 ubuntu smbd[21038]: [2015/02/26 11:43:04.118897, 0]
> smbd/vfs.c:315(smbd_vfs_init)
> Feb 26 11:43:04 ubuntu smbd[21038]: smbd_vfs_init: vfs_init_custom failed
> for /usr/local/samba/lib/vfs/vfs_demo
> Feb 26 11:43:04 ubuntu smbd[21038]: [2015/02/26 11:43:04.118996, 0]
> smbd/service.c:869(make_connection_snum)
> Feb 26 11:43:04 ubuntu smbd[21038]: vfs_init failed for service share1
>
>
> I have installed samba-3.6.3 an my smbd -V version is also 3.6.3 . still
> this error.
> Please provide me with some steps which will help me recompile my code with
> same version.
You need to build against *exactly* the same source
code you're running in production.
Ensure you have 3.6.3 source to build against.
More information about the samba-technical
mailing list