[Samba] Build error with Samba-4.3.0

Reuben Farrelly reuben-samba at reub.net
Sat Sep 19 10:59:21 UTC 2015


I've been battling to get Samba-4.3 to install on my Gentoo x86_64 box. 
  It has been failing to build with the following error:

[1153/2753] Compiling source4/libnet/py_net.c
[1154/2753] Compiling source4/libnet/py_net_dckeytab.c
[1155/2753] Compiling source4/libnet/libnet_export_keytab.c
[1156/2753] Compiling source4/kdc/hdb-samba4.c
[1157/2753] Compiling source4/kdc/hdb-samba4-plugin.c
[1158/2753] Compiling source4/kdc/db-glue.c
../source4/kdc/db-glue.c: In function 'samba_kdc_lookup_realm':
../source4/kdc/db-glue.c:2144:9: error: 'HDB_ERR_WRONG_REALM' undeclared 
(first use in this function)
../source4/kdc/db-glue.c:2144:9: note: each undeclared identifier is 
reported only once for each function it appears in
Waf: Leaving directory `/var/tmp/samba-4.3.0/bin'
Build failed:  -> task failed (err #1):
         {task: cc db-glue.c -> db-glue_13.o}
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 1

This works OK with Samba-4.2.4 and below - it's new breakage with 
Samba-4.3.0.  This occurs with a vanilla samba tarball (no extra patches).

./configure is running with:

CCFLAGS="-O2 -pipe -march=native -mtune=native" LINKFLAGS="-O2 -pipe 
-march=native -mtune=native -Wl,-O1 -Wl,--as-needed" 
"/var/tmp/portage/net-fs/samba-4.3.0/work/samba-4.3.0/buildtools/bin/waf" --prefix=/usr 
--libdir=/usr/lib64 --enable-fhs --sysconfdir=/etc --localstatedir=/var 
--with-modulesdir=/usr/lib64/samba --with-piddir=/var/run/samba 
--bundled-libraries=NONE --builtin-libraries=NONE --disable-rpath 
--disable-rpath-install --nopyc --nopyo --with-acl-support 
--without-ad-dc --without-dnsupdate --without-ads --without-aio-support 
--disable-avahi --without-cluster-support --disable-cups --without-dmapi 
--with-fam --enable-gnutls --disable-iprint --without-ldap --with-pam 
--with-pam_smbpass --with-pammodulesdir=/lib64/security --without-quotas 
--with-syslog --without-systemd --without-winbind configure

This is for a basic environment with no AD. I only need Samba as a file 
server.  The system heimdal is 1.5.3-r2 .

Can anyone give me any ideas as to where to start looking?  I'm guessing 
that the make should not be failing, if there's an inherent problem it 
should be being picked up by the configure script and failing there 


More information about the samba mailing list