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
4.7.4
All All
: P5 regression
: ---
Assigned To: Samba QA Contact
Samba QA Contact
:
Depends on:
Blocks:
  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:


Attachments

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:
https://bugzilla.samba.org/show_bug.cgi?id=13166
and commit:
https://git.samba.org/samba.git/?p=samba.git;a=commit;h=3048ae318fc8b4d1b7663826972306372430a463

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} \
                --disable-python

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



Thanks,
Juergen