VFS version error
Richard Sharpe
realrichardsharpe at gmail.com
Thu Feb 26 20:10:06 MST 2015
On Thu, Feb 26, 2015 at 5:50 PM, Sharayu Mantri <sm25541994 at gmail.com> wrote:
> I have downloaded samba from
> https://download.samba.org/pub/samba/stable/samba-3.6.3.tar.gz and my smbd
> -V also says Version 3.6.3 . Please let me know what is wrong or which
> other samba should be downloaded.
So now you have to build your module against it. There is a section in
the Wiki on how to build a module out-of-tree which you can do for
Samba 3.x.
> Thanks
>
> On Thu, Feb 26, 2015 at 4:51 PM, Jeremy Allison <jra at samba.org> wrote:
>
>> 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.
>>
--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
More information about the samba-technical
mailing list