The option "--with-system-mitkrb5" returns the following ERROR: MIT krb5 build requires at least 1.9.0. Kerberos 5 release 1.7-prerelease is found and cannot be used ERROR: You may try to build with embedded Heimdal Kerebros by not specifying --with-system-mitkrb5 " Compiling without the above option returns the following [ 573/3582] Compiling lib/addns/dnsrecord.c In file included from ../lib/addns/dnsrecord.c:24: In file included from ../lib/addns/dns.h:31: In file included from ../lib/replace/system/gssapi.h:47: ../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h:41:1: fatal error: unknown type name 'GSSAPI_CPP_START' GSSAPI_CPP_START ^ 1 error generated. Waf: Leaving directory `/Volumes/home/opt/src/samba-4.4.5/bin' Build failed: -> task failed (err #1): {task: cc dnsrecord.c -> dnsrecord_1.o} make: *** [all] Error 1
*** This bug has been marked as a duplicate of bug 12142 ***