summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2015-04-27 15:50:19 +0200
committerVijay Bellur <vbellur@redhat.com>2015-04-28 10:30:05 -0700
commit211b75e21e3f4a93307ae47b4fc9dc6cd3681394 (patch)
tree8177f77779b69a0af2390e41edf81d609aa06240
parenta7e04388e03f3706c40be9d9444784a1579ed51d (diff)
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. Backport of: I074b1009d3622a122fdaeb4b99658bca3277e211 BUG: 1212676 Change-Id: I334cb6be8508051105c393ce4bb350f9df014df5 Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.org/10408 Reviewed-by: Dan Lambright <dlambrig@redhat.com> Tested-by: NetBSD Build System Tested-by: Gluster Build System <jenkins@build.gluster.com>
-rw-r--r--xlators/cluster/dht/src/tier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c
index f9c47fd..0663a7f 100644
--- a/xlators/cluster/dht/src/tier.c
+++ b/xlators/cluster/dht/src/tier.c
@@ -952,7 +952,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);