Samba 4.10.4 - Error loading module nfs4acl_xattr due to dependent libraries
snashikkar at commvault.com
Mon Jul 20 08:02:48 UTC 2020
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.
More information about the samba-technical