Bug 860023 - Make error: "clang: error: linker command failed with exit code 1"
Make error: "clang: error: linker command failed with exit code 1"
Product: GlusterFS
Classification: Community
Component: unclassified (Show other bugs)
x86_64 Mac OS
medium Severity urgent
: ---
: ---
Assigned To: Raghavendra Bhat
Depends On:
  Show dependency treegraph
Reported: 2012-09-24 12:03 EDT by Phil Salesses
Modified: 2012-12-21 07:03 EST (History)
2 users (show)

See Also:
Fixed In Version: glusterfs-3.4.0qa6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-12-21 07:03:57 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Phil Salesses 2012-09-24 12:03:57 EDT
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:
duplicate symbol _k in:
duplicate symbol _k in:
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 07:03:57 EST
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.