If you enable USE=cluster on samba-4.5.10 without also enabling USE=ads, it will fail to compile. See the upstream report where he says that "idmap_ad" cannot be enabled if --without-ads is set, and really this makes sense. I think the easiest fix would be to add "cluster? ( ads )" in REQUIRED_USE, but I'm not familiar with what USE=cluster does or implies in this context. Thanks!
Created attachment 484636 [details] gzipped build log
Same for 4.5.16.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4117767bbc179bfd13c0268b08984fe3dfddcf06 commit 4117767bbc179bfd13c0268b08984fe3dfddcf06 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2018-03-15 08:33:33 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2018-03-15 08:34:02 +0000 net-fs/samba: USE="cluster" requires USE="ads" Closes: https://bugs.gentoo.org/625138 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-fs/samba/samba-4.5.15.ebuild | 7 +++++-- net-fs/samba/samba-4.5.16.ebuild | 4 +++- net-fs/samba/samba-4.6.14.ebuild | 9 ++++++--- net-fs/samba/samba-4.7.6.ebuild | 9 ++++++--- net-fs/samba/samba-4.8.0.ebuild | 1 + 5 files changed, 21 insertions(+), 9 deletions(-)