Samba 4.10.4 - Error loading module nfs4acl_xattr due to dependent libraries

Sandeep Nashikkar snashikkar at
Mon Jul 20 15:07:27 UTC 2020

> -----Original Message-----
> From: Ralph Boehme <slow at> 
> Sent: Monday, July 20, 2020 1:45 PM
> To: Sandeep Nashikkar <snashikkar at>; samba-technical at
> Subject: Re: Samba 4.10.4 - Error loading module nfs4acl_xattr due to dependent libraries

> Am 7/20/20 um 10:02 AM schrieb Sandeep Nashikkar via samba-technical:
> > Hello
> > 
> > I am trying to load VFS module nfs4acl_xattr which is compiled and linked on Samba 4.10.4 as shared module.
> > It fails to load with following error:
> > 
> >   Error loading module '/usr/lib64/samba/vfs/': 
> > cannot open shared object file: No such file or 
> > directory
> > 
> > I have been using the module compiled with source with samba installed from yum repo till Samba 4.8.3. I did not face this issue before.
> > Can someone guide me why does it depend on this library and how can I tackle this? Do we need to install another package to fulfill the deps?
> > 
> > The libgssapi-samba4 library is not present in standard locations on a setup where we upgrade/install the samba-4.10.4 through yum repository.
> > Its present in the ./bin/default/source4/heimdal_build/ when we build the samba for the module itself.
> > If we provide the LD_LIBRARY_PATH and use LD_DEBUG=libs, we see it loads many libraries with -samba4 suffix from that directory.
> > 
> > Do I need to build samba module with a particular configure flag so that these dependencies are not required?
> > Appreciate any help in advance.

> whatever pulls in the depedency for to why don't you just package them so they're available at runtime?
> -slow
> -- 
> Ralph Boehme, Samba Team      
> Samba Developer, SerNet GmbH
> GPG-Fingerprint   FAE2C6088A24252051C559E4AA1E9B7126399E46


I could not find where libgsssapi-samba4 is added in as a dependency. 
Its built as part of heimdal with below wscript:

source4/heimdal_build/wscript_build:        bundled_name = libname + '-samba4'

where libname comes from:


It is not linked explicitly anywhere else as far as I could grep. 

I see following libs which are required by nfs4acl_xattr module.

Please correct me if I am wrong, but are you asking to bundle and ship all those libs which are referred by module just like libgssapi-samba4?


More information about the samba-technical mailing list