Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559996 - net-fs/samba-4.2.4 fails to build
Summary: net-fs/samba-4.2.4 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 01:59 UTC by Rinaldus
Modified: 2015-09-09 13:40 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_559996.txt,64.76 KB, text/plain)
2015-09-09 02:09 UTC, Rinaldus
Details
My emerge --info (emerge_info.txt,16.54 KB, text/plain)
2015-09-09 02:10 UTC, Rinaldus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rinaldus 2015-09-09 01:59:09 UTC
net-fs/samba-4.2.4 fails to build. My build.log and emerge --info are included below.

Reproducible: Always
Comment 1 Rinaldus 2015-09-09 02:07:47 UTC
I can't add build.log in attachment because it says "Access denied".
Comment 2 Rinaldus 2015-09-09 02:09:57 UTC
Created attachment 411374 [details]
build.log
Comment 3 Rinaldus 2015-09-09 02:10:52 UTC
Created attachment 411376 [details]
My emerge --info
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-09-09 05:28:12 UTC
Do you have dev-libs/libtasn1 package installed? If not, does samba compile after you've installed that package?
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-09-09 05:30:45 UTC
Ignore my previous comment. Does samba build when you disable the ldap USE flag?
Comment 6 Rinaldus 2015-09-09 06:05:01 UTC
(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).
Comment 7 Sven B. 2015-09-09 07:46:16 UTC
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.
Comment 8 Johannes Hirte 2015-09-09 07:52:30 UTC
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.
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-09-09 08:00:12 UTC
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.
Comment 10 Paweł Rumian 2015-09-09 10:01:53 UTC
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.
Comment 11 Timo Rothenpieler 2015-09-09 11:22:34 UTC
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.
Comment 12 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-09-09 11:28:12 UTC
(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.
Comment 13 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-09-09 13:40:55 UTC
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