Samba 4.10.4 - Error loading module nfs4acl_xattr due to dependent libraries

L. van Belle belle at samba.org
Tue Jul 21 08:23:31 UTC 2020


What did you use as build paramaters? 
I had the same problem, about 1.5 years ago. 

Fix was this commit in debian. 
https://salsa.debian.org/samba-team/samba/commit/247316b0b2fb712c506c461459c
0138f212a9257 

And was nfs-common install prio to the build? So check which packages you
need as build depend. 

I noticed you mentioned yum.. I only do debian (and related) 
But this should give the hint to fix you build. 


Greetz, 

Louis



> -----Oorspronkelijk bericht-----
> Van: samba-technical 
> [mailto:samba-technical-bounces at lists.samba.org] Namens 
> Sandeep Nashikkar via samba-technical
> Verzonden: maandag 20 juli 2020 17:07
> Aan: Ralph Boehme; samba-technical at lists.samba.org
> Onderwerp: RE: Samba 4.10.4 - Error loading module 
> nfs4acl_xattr due to dependent libraries
> 
> > -----Original Message-----
> > From: Ralph Boehme <slow at samba.org> 
> > Sent: Monday, July 20, 2020 1:45 PM
> > To: Sandeep Nashikkar <snashikkar at commvault.com>; 
> samba-technical at lists.samba.org
> > 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/nfs4acl_xattr.so': 
> > > libgssapi-samba4.so.2: 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/libgssapi-samba4.so 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 libgssapi-samba4.so to 
> nfs4acl_xattr.so... why don't you just package them so 
> they're available at runtime?
> >
> > -slow
> >
> > -- 
> > Ralph Boehme, Samba Team                https://samba.org/
> > Samba Developer, SerNet GmbH   https://sernet.de/en/samba/
> > GPG-Fingerprint   FAE2C6088A24252051C559E4AA1E9B7126399E46
> 
> Ralph, 
> 
> 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:
> 
>     HEIMDAL_LIBRARY('gssapi',
>                     HEIMDAL_GSSAPI_SPNEGO_SOURCE + 
> HEIMDAL_GSSAPI_KRB5_SOURCE + '''
> 
> It is not linked explicitly anywhere else as far as I could grep. 
> 
> I see following libs which are required by nfs4acl_xattr module. 
> 
> libgssapi-samba4.so.2
> libroken-samba4.so.19
> libcom_err-samba4.so.0
> libasn1-samba4.so.8
> libkrb5-samba4.so.26
> libz-samba4.so
> libwind-samba4.so.0
> libhcrypto-samba4.so.5
> libhx509-samba4.so.5
> libheimbase-samba4.so.1
> libsmbldaphelper-samba4.so
> 
> Please correct me if I am wrong, but are you asking to bundle 
> and ship all those libs which are referred by 
> nfs4acl_xattr.so module just like libgssapi-samba4?
> 
> Thanks,
> Sandeep
> 




More information about the samba-technical mailing list