On Wednesday 13 of August 2008, Mateusz Korniak wrote: > > Thanks for the patches, they are committed to mainline now :-) [In both > > branches] > > Hi, Amar > > Unfortunately link patch solves only build issues. > When trying to start glusterfs client I get: > > 2008-08-13 10:04:23 E [xlator.c:120:xlator_set_type] xlator: > dlopen(/usr/lib/glusterfs/1.3.10/xlator/protocol/client.so): > /usr/lib/glusterfs/1.3.10/xlator/protocol/client.so: cannot dynamically > load executable I found solution to that problem which seems be: change xlator_PROGRAMS to xlator_LTLIBRARIES so whole Makefile.am looks like [1] which seems to produce proper valid shared object [2]. I will test that solution and provide you with another version of link patch. Sorry for inconvenience, best wishes and regards, [1]: # xlator_PROGRAMS = client.so version_type = None xlator_LTLIBRARIES = client.la xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/protocol # client_so_SOURCES = client-protocol.c # client_so_LDADD = $(top_builddir)/libglusterfs/src/.libs/libglusterfs.so client_la_SOURCES = client-protocol.c ## client_la_LIBADD = $(top_srcdir)/libglusterfs/src/libglusterfs.la client_la_LDFLAGS = -module -avoid-version noinst_HEADERS = client-protocol.h AM_CFLAGS = -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -D$(GF_HOST_OS) \ -I$(top_srcdir)/libglusterfs/src -shared -nostartfiles $(GF_DARWIN_BUNDLE_CFLAGS) CLEANFILES = *~ [2] file client.so client.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped -- Mateusz Korniak