gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] Two patches against glusterfs-1.3.10


From: Amar S. Tumballi
Subject: Re: [Gluster-devel] Two patches against glusterfs-1.3.10
Date: Thu, 14 Aug 2008 03:38:06 -0700

Hi Mateusz,
 I just upgraded to gcc-4.3.1 and tried to compile with and without LDADD,
and with both things glusterfs worked fine. (even the translator linking).

 (I just checked posix and client protocol translators, [on qa34 tarball]
but the behavior should be same for all translators).

Regards,
Amar

2008/8/13 Mateusz Korniak <address@hidden>

> 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
>
>


-- 
Amar Tumballi
Gluster/GlusterFS Hacker
[bulde on #gluster/irc.gnu.org]
http://www.zresearch.com - Commoditizing Super Storage!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]