Bug 765024 (GLUSTER-3292)

Summary: Linking failure with duplicate symbol _volname
Product: [Community] GlusterFS Reporter: cove_s
Component: quotaAssignee: Raghavendra G <raghavendra>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: urgent    
Version: 3.2.2CC: gluster-bugs, junaid, ukastens
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: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description cove_s 2011-07-31 19:20:37 UTC
Under OSX 10.7 Lion, compiling from source:
ld: duplicate symbol _volname in .libs/marker-quota.o and .libs/marker.o for architecture x86_64

Seems to have something with an the char array volname being defined in marker-quota.h and then included in multiple files.

Comment 1 Junaid 2011-08-01 02:52:49 UTC
Can you provide the glusterfs version that you are using?

Comment 2 cove_s 2011-08-01 02:58:44 UTC
Shoot, sorry: 3.2.2

Comment 3 ukastens 2011-08-05 11:05:06 UTC
I have the same issue with Mac OS X 10.6.8 (10K549). I tested several versions from gluster 3.1.x, 3.2.x and the latest beta. The error ist still the same. 

gcc  -Wl,-undefined -Wl,dynamic_lookup -o .libs/marker.0.so -bundle  .libs/marker.o .libs/marker-quota.o .libs/marker-quota-helper.o .libs/marker-common.o   ../../../../libglusterfs/src/.libs/libglusterfs.0.0.0.dylib -lfl -lpthread
ld: duplicate symbol _k in .libs/marker-quota.o and .libs/marker.o
collect2: ld returned 1 exit status

Comment 4 ukastens 2011-08-05 16:43:41 UTC
Looks like there is a fix within Bug 2966