summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2008-12-15 19:27:41 +0100
committerMartin Nagy <mnagy@redhat.com>2009-02-11 20:40:41 +0100
commitf3a3742cd2cfaae7bb45aab43a92468c04451271 (patch)
treedddf9ace700b19585215867b4c89913104068997
parent91cc19721a9adafa8710b39ece79f2ffec664a4c (diff)
downloadbind_dynamic-f3a3742cd2cfaae7bb45aab43a92468c04451271.tar.gz
bind_dynamic-f3a3742cd2cfaae7bb45aab43a92468c04451271.tar.xz
bind_dynamic-f3a3742cd2cfaae7bb45aab43a92468c04451271.zip
Print out an error message if dlfcn.h is missing.
-rw-r--r--lib/dns/dynamic_db.c8
1 files 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;
}