From 3527c6a7dfe435c3b6b8d89a325ae0603f2c08a1 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Mon, 27 Apr 2015 15:00:36 +0200 Subject: tier: relax libgfdb required version number When calling dlopen() for libgfdb, do not specify the library version number "libgfdb.so.0.0.1", since libtool will not always create libraries or link with that name with the full 3-digit version. For instance on NetBSD only up to the 2-digit version is available and "libgfdb.so.0.0.1" does not exist. Instead, just specify "libgfdb.so" and rely on smymlinks installed by libtool to find the relevant library. BUG: 1129939 Change-Id: I074b1009d3622a122fdaeb4b99658bca3277e211 Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.org/10407 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/cluster/dht/src/tier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c index 3e3fad7ca26..593a2cc29ed 100644 --- a/xlators/cluster/dht/src/tier.c +++ b/xlators/cluster/dht/src/tier.c @@ -994,7 +994,7 @@ static int tier_load_externals (xlator_t *this) { int ret = -1; - char *libpathfull = (LIBDIR "/libgfdb.so." LIBGFDB_VERSION); + char *libpathfull = (LIBDIR "/libgfdb.so"); get_gfdb_methods_t get_gfdb_methods; GF_VALIDATE_OR_GOTO("this", this, out); -- cgit