VFS version error

Richard Sharpe realrichardsharpe at gmail.com
Fri Feb 27 08:00:11 MST 2015


On Fri, Feb 27, 2015 at 1:40 AM, Sharayu Mantri <sm25541994 at gmail.com> wrote:
> 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

Why do you want to use skel_transparent? If you have your own vfs
module and it is working you have no need for skel_transparent.

However, there is probably an error in the build because the symbol
should have been changed (I think) to what Samba searches for.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list