From f3a3742cd2cfaae7bb45aab43a92468c04451271 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Mon, 15 Dec 2008 19:27:41 +0100 Subject: Print out an error message if dlfcn.h is missing. --- lib/dns/dynamic_db.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/dns/dynamic_db.c b/lib/dns/dynamic_db.c index 5c4ea74..d376c8e 100644 --- a/lib/dns/dynamic_db.c +++ b/lib/dns/dynamic_db.c @@ -83,7 +83,7 @@ load_symbol(void *handle, const char *symbol_name, void **symbol) errmsg = "returned function pointer is NULL"; isc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE, DNS_LOGMODULE_DYNDB, ISC_LOG_ERROR, - "Failed to lookup symbol %s: %s", + "failed to lookup symbol %s: %s", symbol_name, errmsg); return ISC_R_FAILURE; } @@ -106,7 +106,7 @@ load_library(isc_mem_t *mctx, const char *filename, dyndb_implementation_t **imp if (handle == NULL) { isc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE, DNS_LOGMODULE_DYNDB, ISC_LOG_ERROR, - "Failed to dynamically load driver '%s': %s", + "failed to dynamically load driver '%s': %s", filename, dlerror()); CHECK(ISC_R_FAILURE); } @@ -155,6 +155,10 @@ load_library(isc_mem_t *mctx, const char *filename, dyndb_implementation_t **imp UNUSED(filename); UNUSED(imp); + isc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE, DNS_LOGMODULE_DYNDB, + ISC_LOG_ERROR, + "dynamic database support is not implemented") + return ISC_R_NOTIMPLEMENTED; } -- cgit