path: root/rpc/rpc-lib/src/
diff options
authorPrashanth Pai <>2017-06-30 15:52:53 +0530
committerJeff Darcy <>2017-07-03 10:58:14 +0000
commit97a08698058962a4ddc783008c92ee94f08740a9 (patch)
tree31e0a7265a42aa5d835bde962bc8131636e665ed /rpc/rpc-lib/src/
parent5a67bc07db128782024ccb7c8ec3a35a8542e540 (diff)
Link against missed libraries to resolve symbols
When external programs perform a dlopen("", RTLD_LAZY|RTLD_LOCAL) on some shared objects like xlators, it can fail with dlerror set to error string "undefined symbol <some-type>". This was observed for the following shared objects:,,,, and P.S: This was found while running a go program which fetches the list of xlator options (volume_option_t) from xlator's shared object. BUG: 1193929 Change-Id: I7b958409cf11fb67c2be32a3f85a96fb1260236b Signed-off-by: Prashanth Pai <> Reviewed-on: Smoke: Gluster Build System <> Reviewed-by: Amar Tumballi <> CentOS-regression: Gluster Build System <> NetBSD-regression: NetBSD Build System <> Reviewed-by: Jeff Darcy <>
Diffstat (limited to 'rpc/rpc-lib/src/')
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/ b/rpc/rpc-lib/src/
index b9e55c7..c07d001 100644
--- a/rpc/rpc-lib/src/
+++ b/rpc/rpc-lib/src/
@@ -4,7 +4,8 @@ libgfrpc_la_SOURCES = auth-unix.c rpcsvc-auth.c rpcsvc.c auth-null.c \
rpc-transport.c xdr-rpc.c xdr-rpcclnt.c rpc-clnt.c auth-glusterfs.c \
rpc-drc.c $(CONTRIBDIR)/sunrpc/xdr_sizeof.c rpc-clnt-ping.c
-libgfrpc_la_LIBADD = $(top_builddir)/libglusterfs/src/
+libgfrpc_la_LIBADD = $(top_builddir)/libglusterfs/src/ \
+ $(top_builddir)/rpc/xdr/src/
libgfrpc_la_LDFLAGS = -version-info $(LIBGFRPC_LT_VERSION) $(GF_LDFLAGS)
libgfrpc_la_HEADERS = rpcsvc.h rpc-transport.h xdr-common.h xdr-rpc.h xdr-rpcclnt.h \