Bug Report from www.isc.org: Name: David Salt Email: dgsalt@me.com Software Version: BIND 9.10.5-P3 OS: Mac OS 10.12.5 Subject:bind does not build from source Bug Detail =========== If a version of bind has previously been installed in /usr/local and a version of openssl is present in /usr/local, then a clean build fails with: making all in /Users/salty/projects/bind/bind-9.10.5-P3/bin/nsupdate gcc -I/Users/salty/projects/bind/bind-9.10.5-P3 -I../.. -I/Users/salty/projects/bind/bind-9.10.5-P3/lib/lwres/include -I../../lib/lwres/unix/include -I../../lib/lwres/include -I/Users/salty/projects/bind/bind-9.10.5-P3/lib/dns/include -I../../lib/dns/include -I/Users/salty/projects/bind/bind-9.10.5-P3/lib/bind9/include -I../../lib/bind9/include -I/usr/local/include -I/Users/salty/projects/bind/bind-9.10.5-P3/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/pthreads/include -I../../lib/isc/x86_32/include -I/Users/salty/projects/bind/bind-9.10.5-P3/lib/isccfg/include -I../../lib/isccfg/include -D_REENTRANT -DVERSION=\"9.10.5-P3\" -DOPENSSL -DGSSAPI -D__APPLE_USE_RFC_3542 -g -O2 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing \ -DSESSION_KEYFILE=\"/var/run/named/session.key\" \ -c ./nsupdate.c In file included from ./nsupdate.c:57: /Users/salty/projects/bind/bind-9.10.5-P3/lib/dns/include/dns/dispatch.h:573:44: error: unknown type name 'isc_dscp_t' dns_dispatch_setdscp(dns_dispatch_t *disp, isc_dscp_t dscp); ^ /Users/salty/projects/bind/bind-9.10.5-P3/lib/dns/include/dns/dispatch.h:574:1: error: unknown type name 'isc_dscp_t' isc_dscp_t ^ In file included from ./nsupdate.c:72: /Users/salty/projects/bind/bind-9.10.5-P3/lib/dns/include/dns/request.h:230:10: error: unknown type name 'isc_dscp_t' isc_dscp_t dscp, unsigned int options, ^ /Users/salty/projects/bind/bind-9.10.5-P3/lib/dns/include/dns/request.h:297:10: error: unknown type name 'isc_dscp_t' isc_dscp_t dscp, unsigned int options, ^ ./nsupdate.c:2674:7: warning: 'krb5_init_context' is deprecated: use GSS.framework [-Wdeprecated-declarations] rc = krb5_init_context(&ctx); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1450:31: note: 'krb5_init_context' has been explicitly marked deprecated here krb5_error_code KRB5_CALLCONV krb5_init_context ^ ./nsupdate.c:2678:7: warning: 'krb5_cc_default' is deprecated: use GSS.framework [-Wdeprecated-declarations] rc = krb5_cc_default(ctx, &ccache); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1734:31: note: 'krb5_cc_default' has been explicitly marked deprecated here krb5_error_code KRB5_CALLCONV krb5_cc_default ^ ./nsupdate.c:2680:3: warning: 'krb5_free_context' is deprecated: use GSS.framework [-Wdeprecated-declarations] krb5_free_context(ctx); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1454:20: note: 'krb5_free_context' has been explicitly marked deprecated here void KRB5_CALLCONV krb5_free_context ^ ./nsupdate.c:2684:7: warning: 'krb5_cc_get_principal' is deprecated: use GSS.framework [-Wdeprecated-declarations] rc = krb5_cc_get_principal(ctx, ccache, &princ); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1309:1: note: 'krb5_cc_get_principal' has been explicitly marked deprecated here krb5_cc_get_principal (krb5_context context, krb5_ccache cache, ^ ./nsupdate.c:2686:3: warning: 'krb5_cc_close' is deprecated: use GSS.framework [-Wdeprecated-declarations] krb5_cc_close(ctx, ccache); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1297:1: note: 'krb5_cc_close' has been explicitly marked deprecated here krb5_cc_close (krb5_context context, krb5_ccache cache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); ^ ./nsupdate.c:2687:3: warning: 'krb5_free_context' is deprecated: use GSS.framework [-Wdeprecated-declarations] krb5_free_context(ctx); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1454:20: note: 'krb5_free_context' has been explicitly marked deprecated here void KRB5_CALLCONV krb5_free_context ^ ./nsupdate.c:2691:7: warning: 'krb5_unparse_name' is deprecated: use GSS.framework [-Wdeprecated-declarations] rc = krb5_unparse_name(ctx, princ, &name); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1559:31: note: 'krb5_unparse_name' has been explicitly marked deprecated here krb5_error_code KRB5_CALLCONV krb5_unparse_name ^ ./nsupdate.c:2693:3: warning: 'krb5_free_principal' is deprecated: use GSS.framework [-Wdeprecated-declarations] krb5_free_principal(ctx, princ); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1758:20: note: 'krb5_free_principal' has been explicitly marked deprecated here void KRB5_CALLCONV krb5_free_principal ^ ./nsupdate.c:2694:3: warning: 'krb5_cc_close' is deprecated: use GSS.framework [-Wdeprecated-declarations] krb5_cc_close(ctx, ccache); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1297:1: note: 'krb5_cc_close' has been explicitly marked deprecated here krb5_cc_close (krb5_context context, krb5_ccache cache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); ^ ./nsupdate.c:2695:3: warning: 'krb5_free_context' is deprecated: use GSS.framework [-Wdeprecated-declarations] krb5_free_context(ctx); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1454:20: note: 'krb5_free_context' has been explicitly marked deprecated here void KRB5_CALLCONV krb5_free_context ^ ./nsupdate.c:2705:2: warning: 'krb5_free_principal' is deprecated: use GSS.framework [-Wdeprecated-declarations] krb5_free_principal(ctx, princ); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1758:20: note: 'krb5_free_principal' has been explicitly marked deprecated here void KRB5_CALLCONV krb5_free_principal ^ ./nsupdate.c:2706:2: warning: 'krb5_cc_close' is deprecated: use GSS.framework [-Wdeprecated-declarations] krb5_cc_close(ctx, ccache); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1297:1: note: 'krb5_cc_close' has been explicitly marked deprecated here krb5_cc_close (krb5_context context, krb5_ccache cache) KERBEROS_APPLE_DEPRECATED("use GSS.framework"); ^ ./nsupdate.c:2707:2: warning: 'krb5_free_context' is deprecated: use GSS.framework [-Wdeprecated-declarations] krb5_free_context(ctx); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kerberos.framework/Headers/krb5.h:1454:20: note: 'krb5_free_context' has been explicitly marked deprecated here void KRB5_CALLCONV krb5_free_context ^ 13 warnings and 4 errors generated. make[2]: *** [nsupdate.o] Error 1 make[1]: *** [subdirs] Error 1 make: *** [subdirs] Error 1 The four errors are a result of /usr/local/include being in the include path to early and causing some of the bind header files being picked up from the /usr/local rather than the source tree. Here is a patch to source tree which fixes the problem: diff -ruN bind-9.10.5-P3/bin/nsupdate/Makefile.in bind-9.10.5-P3-fixed/bin/nsupdate/Makefile.in --- bind-9.10.5-P3/bin/nsupdate/Makefile.in 2017-07-07 16:02:06.000000000 +0100 +++ bind-9.10.5-P3-fixed/bin/nsupdate/Makefile.in 2017-07-19 10:09:53.000000000 +0100 @@ -28,8 +28,8 @@ DST_GSSAPI_INC = @DST_GSSAPI_INC@ CINCLUDES = ${LWRES_INCLUDES} ${DNS_INCLUDES} \ - ${BIND9_INCLUDES} @DST_OPENSSL_INC@ ${ISC_INCLUDES} \ - ${ISCCFG_INCLUDES} ${DST_GSSAPI_INC} + ${BIND9_INCLUDES} ${ISC_INCLUDES} \ + ${ISCCFG_INCLUDES} ${DST_GSSAPI_INC} @DST_OPENSSL_INC@ CDEFINES = -DVERSION=\"${VERSION}\" @CRYPTO@ @USE_GSSAPI@ CWARNINGS = --- This email was received through isc.org Bug Submission Form