Previous builds from source have been fine, but 4.6.12 fails during make
LDFLAGS="-Wl,--no-as-needed" CFLAGS="-O2 -march=i586
-mtune=i686"
./configure --enable-fhs --prefix=/usr --libdir=/usr/lib$
--includedir=/usr/include --bindir=/usr/bin --sbindir=/usr/sbin
--mandir=/usr/man --sysconfdir=/etc --with-configdir=/etc/samba
--with-piddir=/var/run --with-privatedir=/var/lib/samba/private
--with-privatelibdir=/usr/lib --with-modulesdir=/usr/lib
--with-lockdir=/var/cache/samba --with-logfilebase=/var/log/samba
--localstatedir=/var --enable-cups --with-acl-support --with-automount
--with-quotas --with-syslog --with-utmp --with-winbind --without-ldap
--without-ads --without-pam --build=i586-slackware-linux
...
3613/3883] Linking default/source4/auth/libauth-unix-token-samba4.so
[3614/3883] Linking
default/source4/dsdb/samdb/ldb_modules/libldb_module_extended_dn_store.so
[3615/3883] Linking default/examples/libsmbclient/testsmbc
[3616/3883] Linking
default/source4/dsdb/samdb/ldb_modules/libldb_module_extended_dn_in.so
[3617/3883] Linking default/examples/libsmbclient/testfstatvfs
[3618/3883] Linking default/source4/lib/registry/regdiff
[3619/3883] Linking default/source4/auth/ntlm/libauth4-samba4.so
[3620/3883] Linking
default/source4/dsdb/samdb/ldb_modules/libldb_module_password_hash.so
[3621/3883] Linking
default/source4/dsdb/samdb/ldb_modules/libldb_module_samba3sid.so
[3622/3883] Linking default/examples/libsmbclient/testbrowse2
[3623/3883] Linking default/examples/libsmbclient/testacl2
[3624/3883] Linking default/source3/libtrusts-util-samba4.so
[3625/3883] Linking default/lib/ldb-samba/python-samba--ldb.so
[3626/3883] Linking default/source4/smbd/libservice-samba4.so
[3627/3883] Linking default/source4/smbd/samba
[3628/3883] Linking
default/source4/ldap_server/libservice_module_ldap.so
[3629/3883] Linking default/source3/libads-samba4.so
default/source3/libads/kerberos_keytab_64.o: In function
`ads_keytab_list':
kerberos_keytab.c:(.text+0x356): undefined reference to
`ads_keytab_open'
collect2: ld returned 1 exit status
Waf: Leaving directory `/tmp/samba-4.6.12/bin'
Build failed: -> task failed (err #1):
{task: cc_link
ldap_64.o,sasl_64.o,sasl_wrapping_64.o,krb5_setpw_64.o,kerberos_util_64.o,ldap_user_64.o,ads_struct_64.o,kerberos_keytab_64.o,disp_sec_64.o,ldap_utils_64.o,ldap_schema_64.o,util_64.o,ndr_64.o,namequery_dc_105.o,trustdom_cache_105.o,dsgetdcname_105.o
-> libads-samba4.so}