VFS version error

Sharayu Mantri sm25541994 at gmail.com
Fri Feb 27 02:40:00 MST 2015


Thank you , Now our samba and vfs_demo is runnung perfectly fine.

But while running skel_transparent.c from samba-3.6.3/examples/VFS wew got
this error

Feb 27 09:32:10 ubuntu smbd[22083]: [2015/02/27 09:32:10.287997,  0]
lib/module.c:59(do_smb_load_module)
Feb 27 09:32:10 ubuntu smbd[22083]:   Error trying to resolve symbol
'init_samba_module' in /usr/local/samba/lib/vfs/skel_transparent:
/usr/local/samba/lib/vfs/skel_transparent: undefined symbol:
init_samba_module
Feb 27 09:32:10 ubuntu smbd[22083]: [2015/02/27 09:32:10.288321,  0]
smbd/vfs.c:173(vfs_init_custom)
Feb 27 09:32:10 ubuntu smbd[22083]:   error probing vfs module
'/usr/local/samba/lib/vfs/skel_transparent': NT_STATUS_UNSUCCESSFUL
Feb 27 09:32:10 ubuntu smbd[22083]: [2015/02/27 09:32:10.288513,  0]
smbd/vfs.c:315(smbd_vfs_init)
Feb 27 09:32:10 ubuntu smbd[22083]:   smbd_vfs_init: vfs_init_custom failed
for /usr/local/samba/lib/vfs/skel_transparent
Feb 27 09:32:10 ubuntu smbd[22083]: [2015/02/27 09:32:10.288677,  0]
smbd/service.c:869(make_connection_snum)
Feb 27 09:32:10 ubuntu smbd[22083]:   vfs_init failed for service share1

let me know a way to solve this, It seems dlsym() in module.c return NULL.
but i dont find any reason. Since in similar fashion i tried to execute
vfs_demo.c and it executed prefectly.

I am attaching skel_transpaarent.c for refrence

Thank you.


On Fri, Feb 27, 2015 at 3:10 AM, Richard Sharpe <realrichardsharpe at gmail.com
> wrote:

> 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
> (何以解憂?唯有杜康。--曹操)
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skel_transparent.c
Type: text/x-csrc
Size: 26948 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150227/a64ad060/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vfs_demo.c
Type: text/x-csrc
Size: 12905 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150227/a64ad060/attachment-0001.c>


More information about the samba-technical mailing list