Bug 860023 - Make error: "clang: error: linker command failed with exit code 1"
Summary: Make error: "clang: error: linker command failed with exit code 1"
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: GlusterFS
Classification: Community
Component: unclassified
Version: 3.3.0
Hardware: x86_64
OS: Mac OS
medium
urgent
Target Milestone: ---
Assignee: Raghavendra Bhat
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-24 16:03 UTC by Phil Salesses
Modified: 2012-12-21 12:03 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.4.0qa6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-21 12:03:57 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Phil Salesses 2012-09-24 16:03:57 UTC
Description of problem:
Can't build on mac. Throws error

Version-Release number of selected component (if applicable):


How reproducible:
Consistently reproducible.


Steps to Reproduce:
1. Download source on Mac 10.8 Mountain Lion and extract
2. $ ./configure
3. $ make
  
Actual results:
Error with clang.

Expected results:
Make should complete

Additional info:
Partial error log:
all -fno-strict-aliasing -DGFDARWIN_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 -nostartfiles -g -O2 -MT marker-common.lo -MD -MP -MF .deps/marker-common.Tpo -c marker-common.c -fno-common -DPIC -o .libs/marker-common.o
In file included from ../../../../libglusterfs/src/stack.h:46,
from ../../../../libglusterfs/src/xlator.h:71,
from ../../../../libglusterfs/src/inode.h:42,
from marker-common.h:27,
from marker-common.c:24:
../../../../libglusterfs/src/globals.h:26: warning: unknown option after '#pragma GCC diagnostic' kind
glibtool: link: cc -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.dylib -ll -lpthread -O0 -O2

duplicate symbol _k in:
.libs/marker.o
.libs/marker-quota.o
duplicate symbol _k in:
.libs/marker.o
.libs/marker-quota-helper.o
duplicate symbol _k in:
.libs/marker.o
.libs/marker-common.o
ld: 3 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [marker.la] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Comment 1 Amar Tumballi 2012-12-21 12:03:57 UTC
try glusterfs-3.4.0qa6 and this issue should be fixed.


Note You need to log in before you can comment on or make changes to this bug.