sys-auth/sssd-1.16.3-r3 (current stable version) fails to compile with the "samba" use flag set. Without the use flag, it compiles fine. Reproducible: Always Steps to Reproduce: 1. USE=samba emerge sys-auth/sssd Actual Results: The build fails. The unstable version sys-auth/sssd-2.2.3 builds fine with USE=samba. The problem probably started with the stabilization of net-fs/samba-4.11.6-r2 (bug 704998) If =net-fs/samba-4.11.6-r2 is masked, and world is rebuilt, with: net-fs/samba-4.8.6-r4 sys-libs/talloc-2.1.11 sys-libs/tdb-1.3.15 sys-libs/tevent-0.9.36 it is then possible to emerge sys-auth/sssd-1.16.3-r3 with USE=samba.
Can you test with latest sssd? This stable sssd is pretty ancient and seems to be affected by several other bugs as well.
(In reply to Ben Kohler from comment #1) > Can you test with latest sssd? This stable sssd is pretty ancient and seems > to be affected by several other bugs as well. As I have written "The unstable version sys-auth/sssd-2.2.3 builds fine with USE=samba."
Fails to compile how? Please attach the entire build log to this bug report.
Created attachment 613768 [details] build.log.gz The error itself is: src/providers/ad/ad_gpo_ndr.c: In function ‘ndr_pull_dom_sid’: src/providers/ad/ad_gpo_ndr.c:261:48: error: implicit declaration of function ‘ARRAY_SIZE’ [-Werror=implicit-function-declaration] 261 | if (r->num_auths < 0 || r->num_auths > ARRAY_SIZE(r->sub_auths)) { | ^~~~~~~~~~ cc1: some warnings being treated as errors
I missed your comment about 2.2.3. The old stable sssd-1.16.3 is definitely broken against new samba. This will probably get fixed with stabilization of 2.2.x for bug 699864.
Created attachment 613868 [details, diff] 0001-sys-auth-sssd-1.16.4-version-bump.patch Here is a version bump to 1.16.4. This version which compiles fine with net-fs/samba-4.11.6-r2.
Though I get that 1.16.4 has a security flaw. Sorry for a futile patch.
I have changed my mind and think that the package sys-auth/sssd should be removed from the gentoo main repository.
The ancient version, you mean?
Ancient is indeed now gone.