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
Created attachment 14049 [details] samba-4.7.4-no_ads.patch This has already been reported in the samba-technical mailing list along with a possible fix: https://lists.samba.org/archive/samba-technical/2017-December/124629.html The attached patch is the fix provided by Timur I. Bakeyev <timur@freebsd.org> in that mail. I am not(!) the author of the patch.
*** Bug 13333 has been marked as a duplicate of this bug. ***
(In reply to Lars Wendler from comment #1) I guess this is to be marked as wont fix, I note another samba release couple days ago and still broken after 6 months (4.6.11 was last compilable version), if this is case please mark it as such, so we can take appropriate action,like move back to windows servers.
Created attachment 14144 [details] Patch for v4-6-test
Created attachment 14145 [details] Patch for v4-7-test
Created attachment 14146 [details] Patch for v4-8-test
Patch applied against 4.7.7 Patch applies cleanly configure succeeded make succeeded :) Thanks, hope this makes it into next releases
correction. was applied against 4.7.6
Now applied to the just released 4.7.7 Build succeeds, thanks.
Pushed to autobuild-v4-[8,7]-test.
(In reply to Karolin Seeger from comment #10) Pushed to both branches. Closing out bug report. Thanks!