In file 'source4/dns_server/wscript_build' every target is marked with condition 'enabled=bld.AD_DC_BUILD_IS_ENABLED()' except for 'python_dsdb_dns'; but it does depend on 'dnsserver_common'.
So when I compile samba-4.4.2 without AD_DC, I get a 'python_dsdb_dns.so' which has unresolved externals like 'dns_common_zones'.
It's hardly a problem in Linux (unless you actually want to use this module), but I'm trying to compile in Aix -- in Aix-world, unresolved externals aren't usually welcome (they cause disturbance in the Force, or something like that.)
I'd like to suggest adding this condition to 'python_dsdb_dns' or remove it from 'dnsserver_common'
*** This bug has been marked as a duplicate of bug 13542 ***