[Pkg-sssd-devel] Bug#1009223: Bug#1009223: Bug#1009223: sssd fails on startup: Module [memberof] not found - do you need to set LDB_MODULES_PATH

Chris Boot bootc at debian.org
Sat Apr 9 16:54:13 BST 2022


On 09/04/2022 14:26, Timo Aaltonen wrote:
> Timo Aaltonen kirjoitti 9.4.2022 klo 16.01:
[...]
>> The reason if fails is probably that libldb got a new version and sssd 
>> needs a rebuild. Could you try building the current package against 
>> current samba?
> 
> oh well, it actually fails to build now, so I need to fix that anyway

I spent some time on this today as I ran into the same issue. There are 
two issues as you've probably already worked out:

1. The LDB module should probably be installed in 
/usr/lib/$(DEB_HOST_MULTIARCH)/samba/ldb. symlinking memberof.so to that 
directory on my system fixed that part of the problem for me.

2. The Samba 4.16 source uses C11 features now, which is why the build 
fails. The following patch fixed that issue for me:

--- sssd-2.6.3.orig/Makefile.am
+++ sssd-2.6.3/Makefile.am
@@ -137,7 +137,7 @@ if HAVE_GCC
                   -Werror-implicit-function-declaration -Winit-self \
                   -Wmissing-include-dirs \
                   -fno-strict-aliasing \
-                 -std=gnu99
+                 -std=gnu11
  endif

  CMOCKA_CFLAGS = -fno-lto

Thanks for maintaining sssd.

Cheers,
Chris

-- 
Chris Boot
bootc at debian.org



More information about the Pkg-sssd-devel mailing list