Bug 764698 (GLUSTER-2966)

Summary: MacOSX compile failure: duplicate symbol _k
Product: [Community] GlusterFS Reporter: Penelope Fudd <gluster>
Component: buildAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.2.0CC: anush, eco, gluster-bugs, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Mac OS   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: mainline Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
patch to fix build and linking issues on Mac OS X none

Description Penelope Fudd 2011-05-31 19:38:26 UTC
MacOSX 10.6.7 with Xcode, Fink, and MacFuse 2.0.3.2-1 , build proceeds almost all the way, but dies in linking step, with the following error:

Making all in marker
Making all in src
glibtool --tag=CC --mode=link gcc -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -fno-strict-aliasing -DGF_DARWIN_HOST_OS -I../../../../libglusterfs/src -I../../../../xlators/lib/src -I../../../../argp-standalone -D__DARWIN_64_BIT_INO_T -bundle -undefined suppress -flat_namespace -D_XOPEN_SOURCE -O0 -shared -nostartfiles -g -O2   -o marker.la -rpath /usr/local/lib/glusterfs/3.2.0/xlator/features -module -avoidversion marker.lo marker-quota.lo marker-quota-helper.lo marker-common.lo ../../../../libglusterfs/src/libglusterfs.la -lpthread 
gcc ${wl}-undefined ${wl}dynamic_lookup -o .libs/marker.0.0.0.so -bundle  .libs/marker.o .libs/marker-quota.o .libs/marker-quota-helper.o .libs/marker-common.o  ../../../../libglusterfs/src/.libs/libglusterfs.dylib -lpthread 
ld: duplicate symbol _k in .libs/marker-quota.o and .libs/marker.o
collect2: ld returned 1 exit status

While I realize that MacOSX is not a supported system, it's also tantalizingly close to working fully; the compile worked but the link failed.

Comment 1 Amar Tumballi 2011-06-01 07:30:51 UTC
Not having a mac os x locally here at the moment. But I would love to get the access and have this fixed.

Comment 2 Eco 2011-06-03 21:23:46 UTC
Emailed Amar with login details to a Mac client.

Comment 3 Amar Tumballi 2011-06-07 08:46:21 UTC
Created attachment 506


patch taken on git head of 'master' branch. apply using 'git apply <PATCH>'.

Comment 4 Amar Tumballi 2011-06-07 08:48:00 UTC
Also note that, fuse module may not work with Mac, hence use the './configure --disable-fuse-client' before doing the 'make'.

Comment 5 Anand Avati 2011-06-16 13:15:32 UTC
PATCH: http://patches.gluster.com/patch/7427 in master (fixing some build issues in Mac OS X)

Comment 6 Amar Tumballi 2011-06-16 13:27:45 UTC
with the committed patch, GlusterFS should build fine on 'MacOSX'.

Comment 7 Anush Shetty 2011-09-12 07:42:26 UTC
Has been verified as part of build sanity