Bug 13273 - Build breaks if ads is disabled (--without-ads)
Build breaks if ads is disabled (--without-ads)
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build
All All
: P5 regression
: ---
Assigned To: Samba QA Contact
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2018-02-14 12:55 UTC by Daubert, Jürgen
Modified: 2018-02-14 22:05 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Daubert, Jürgen 2018-02-14 12:55:04 UTC
I get the following error while trying to build samba 4.7.4 and newer:

    [2948/3058] Linking default/source4/auth/ntlm/libauth4-samba4.so
    default/source3/libads/kerberos_keytab_63.o: In function `ads_keytab_list':
    kerberos_keytab.c:(.text+0x155): undefined reference to `ads_keytab_open'
    collect2: error: ld returned 1 exit status

I did some investigations and found out that the patch introduced with bug:
and commit:

is the reason for the build error above if ads is disabled with --without-ads

My configuration:

    ./configure --enable-fhs \
                --prefix=/usr \
                --libexecdir=/usr/lib \
                --localstatedir=/var \
                --sysconfdir=/etc \
                --with-privatedir=/etc/samba/private \ 
                --bundled-libraries=!tdb,!talloc,!tevent,!popt \
                --without-{ad-dc,ads,ldap,pam} \

    python ./buildtools/bin/waf build --jobs=6