From: Mark Andrews Date: Fri, 6 Oct 2017 05:41:30 +0000 (+1100) Subject: call ns_log_init so that the categories there are registered X-Git-Tag: v9.12.0b1~72 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b386a826a6ea3b796bcbf8a6a96fb7531f7fa8e6;p=thirdparty%2Fbind9.git call ns_log_init so that the categories there are registered --- diff --git a/bin/check/Makefile.in b/bin/check/Makefile.in index 23d32a1d109..54866b748d7 100644 --- a/bin/check/Makefile.in +++ b/bin/check/Makefile.in @@ -23,11 +23,13 @@ ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@ ISCLIBS = ../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@ ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@ @ISC_OPENSSL_LIBS@ BIND9LIBS = ../../lib/bind9/libbind9.@A@ +NSLIBS = ../../lib/ns/libns.@A@ DNSDEPLIBS = ../../lib/dns/libdns.@A@ ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@ ISCDEPLIBS = ../../lib/isc/libisc.@A@ BIND9DEPLIBS = ../../lib/bind9/libbind9.@A@ +NSDEPENDLIBS = ../../lib/ns/libns.@A@ LIBS = ${ISCLIBS} @LIBS@ NOSYMLIBS = ${ISCNOSYMLIBS} @LIBS@ @@ -59,14 +61,15 @@ named-checkzone.@O@: named-checkzone.c -c ${srcdir}/named-checkzone.c named-checkconf@EXEEXT@: named-checkconf.@O@ check-tool.@O@ ${ISCDEPLIBS} \ - ${DNSDEPLIBS} ${ISCCFGDEPLIBS} ${BIND9DEPLIBS} + ${NSDEPENDLIBS} ${DNSDEPLIBS} ${ISCCFGDEPLIBS} ${BIND9DEPLIBS} export BASEOBJS="named-checkconf.@O@ check-tool.@O@"; \ - export LIBS0="${BIND9LIBS} ${ISCCFGLIBS} ${DNSLIBS}"; \ + export LIBS0="${NSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} ${DNSLIBS}"; \ ${FINALBUILDCMD} -named-checkzone@EXEEXT@: named-checkzone.@O@ check-tool.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} +named-checkzone@EXEEXT@: named-checkzone.@O@ check-tool.@O@ ${ISCDEPLIBS} \ + ${NSDEPENDLIBS} ${DNSDEPLIBS} export BASEOBJS="named-checkzone.@O@ check-tool.@O@"; \ - export LIBS0="${ISCCFGLIBS} ${DNSLIBS}"; \ + export LIBS0="${NSLIBS} ${ISCCFGLIBS} ${DNSLIBS}"; \ ${FINALBUILDCMD} doc man:: ${MANOBJS} diff --git a/bin/check/check-tool.c b/bin/check/check-tool.c index 1c00a4a0c2c..62377b5c432 100644 --- a/bin/check/check-tool.c +++ b/bin/check/check-tool.c @@ -48,6 +48,8 @@ #include +#include + #ifndef CHECK_SIBLING #define CHECK_SIBLING 1 #endif @@ -112,13 +114,7 @@ unsigned int zone_options2 = 0; */ static isc_logcategory_t categories[] = { { "", 0 }, - { "client", 0 }, - { "network", 0 }, - { "update", 0 }, - { "queries", 0 }, { "unmatched", 0 }, - { "update-security", 0 }, - { "query-errors", 0 }, { NULL, 0 } }; @@ -562,6 +558,7 @@ setup_logging(isc_mem_t *mctx, FILE *errout, isc_log_t **logp) { dns_log_init(log); dns_log_setcontext(log); cfg_log_init(log); + ns_log_init(log); destination.file.stream = errout; destination.file.name = NULL;