net-fs/samba-4.2.4 fails to build. My build.log and emerge --info are included below. Reproducible: Always
I can't add build.log in attachment because it says "Access denied".
Created attachment 411374 [details] build.log
Created attachment 411376 [details] My emerge --info
Do you have dev-libs/libtasn1 package installed? If not, does samba compile after you've installed that package?
Ignore my previous comment. Does samba build when you disable the ldap USE flag?
(In reply to Lars Wendler (Polynomial-C) from comment #5) > Ignore my previous comment. Does samba build when you disable the ldap USE > flag? No, it also fails to compile with the same error (asn_compile not found).
Had the same Problem here. asn1_compile seems to be located at /usr/sbin/heimdal/asn1_compile symlinking it to /usr/sbin/asn1_compile fixed the issue. Adding /usr/sbin/heimdal/ to PATH might also work. Anyways, not sure if that is a good idea.
It's not the libtasn1 but the disabled gnutls support. As the output says: /var/tmp/portage/net-fs/samba-4.2.4/work/samba-4.2.4/source4/lib/tls/wscript:21: error: --disable-gnutls given: Building the AD DC requires GnuTLS (eg libgnutls-dev, gnutls-devel) for ldaps:// support and for the BackupKey protocol Putting gnutls to USE-flags for samba fixed it.
Right now I think it's a result of a bad USE flag combination and I'm trying to figure out which combination is causing this. Once this has been found out I can fix it in the ebuild via REQUIRED_USE.
FWIW, I have all feature flags disabled: # emerge -pv samba These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] net-fs/samba-4.2.4::gentoo [4.1.20-r1::gentoo] USE="-acl -addns -ads -aio -avahi -client -cluster -cups -dmapi -fam -gnutls -iprint -ldap -quota (-selinux) -syslog -systemd {-test} -winbind" PYTHON_TARGETS="python2_7" 0 KiB And got the same error. After enabling gnutls USE flag samba-4.2.4 builds fine.
This is related to the configure option --without-ad-dc, which is not related to any useflag currently. So, at the moment, gnutls is a hard dependency, as there are no means to disable the ad-dc functionality. I'd suggest to add a useflag which disables the ad-dc functionality, as it's propably not needed by a lot of people anyway.
(In reply to Timo Rothenpieler from comment #11) > This is related to the configure option --without-ad-dc, which is not > related to any useflag currently. > So, at the moment, gnutls is a hard dependency, as there are no means to > disable the ad-dc functionality. > > I'd suggest to add a useflag which disables the ad-dc functionality, as it's > propably not needed by a lot of people anyway. That's what I am currently working on.
commit 49121e9eaba6949df4c0de3f13a85c25932b5d51 Author: Lars Wendler <polynomial-c@gentoo.org> Date: Wed Sep 9 15:37:47 2015 net-fs/samba: Fixed compilation without gnutls (bug #559996). Added two new USE flags: -addc controls installation of Active Directory Domain Controller functionality -system-mitkrb5 uses app-crypt/mit-krb5 instead of app-crypt/heimdal Re-added pam USE flag although samba still unconditionally links against libpam when being found on the system. USE flag controls installation of pam modules for now. Slightly reworked ebuilds. Added missing files for samba-4.3 Package-Manager: portage-2.2.20.1 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> net-fs/samba/files/4.3/samba4.confd | 38 +++++++ net-fs/samba/files/4.3/samba4.initd-r1 | 56 ++++++++++ net-fs/samba/metadata.xml | 53 ++++----- net-fs/samba/samba-4.2.4-r1.ebuild | 197 +++++++++++++++++++++++++++++++++ net-fs/samba/samba-4.3.0.ebuild | 96 +++++++++------- 5 files changed, 372 insertions(+), 68 deletions(-) should be fixed in =net-fs/samba-4.2.4-r1