[Gluster-devel] Re: Attempting to build glusterfs on Mac OS X 10.6

Anand Avati avati at gluster.com
Mon Sep 27 02:51:22 UTC 2010


Noah,
  Thank you for your contribution! Can you please submit the patches to gluster-devel at nongnu.org using git-send-email command? That will make the patches line up into patches.gluster.com and will become part of our regular development work flow.

Thanks again,
Avati

----- Original Message -----
> Hi,
> 
> I noticed you were active in supplying Mac OS X related patches for
> glusterfs here:
> http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
> 
> I've attached a few minor patches in an attempt to get it to build on
> Mac OS X 10.6.
> Note that they have only been compiled tested as there are still a
> number of issues that I'm not sure how to fix.
> 
> One of the issues are that I'm getting an error about a duplicate
> symbol, which seems to be an enum {} declaration in
> rpc/rpc-lib/src/xdr-common.h
> 
> make all-recursive
> Making all in .
> Making all in libglusterfs
> Making all in src
> make[3]: Nothing to be done for `all'.
> make[3]: Nothing to be done for `all-am'.
> Making all in rpc
> Making all in rpc-lib
> Making all in src
> glibtool --tag=CC --mode=link gcc -fPIC -D_FILE_OFFSET_BITS=64
> -D_GNU_SOURCE -Wall -DGF_DARWIN_HOST_OS -I../../../libglusterfs/src
> -shared -nostartfiles -I../../../argp-standalone
> -D__DARWIN_64_BIT_INO_T -bundle -undefined suppress -flat_namespace
> -D_XOPEN_SOURCE -O0 -I../../../rpc/xdr/src
> -DRPC_TRANSPORTDIR=\"/usr/local/lib/glusterfs/3.1.0git/rpc-transport\"
> -g -O2 -module -avoidversion -o libgfrpc.la -rpath /usr/local/lib
> auth-unix.lo rpcsvc-auth.lo rpcsvc.lo auth-null.lo rpc-transport.lo
> xdr-rpc.lo xdr-rpcclnt.lo rpc-clnt.lo auth-glusterfs.lo rpc-common.lo
> ../../../libglusterfs/src/libglusterfs.la -lpthread
> glibtool: link: /usr/bin/gcc-4.2 -Wl,-undefined -Wl,dynamic_lookup -o
> .libs/libgfrpc.0.so -bundle .libs/auth-unix.o .libs/rpcsvc-auth.o
> .libs/rpcsvc.o .libs/auth-null.o .libs/rpc-transport.o .libs/xdr-rpc.o
> .libs/xdr-rpcclnt.o .libs/rpc-clnt.o .libs/auth-glusterfs.o
> .libs/rpc-common.o
> ../../../libglusterfs/src/.libs/libglusterfs.dylib -lfl -lpthread
> ld: duplicate symbol _gf_dump_procnum_t in .libs/xdr-rpc.o and
> .libs/rpcsvc.o
> collect2: ld returned 1 exit status
> make[4]: [libgfrpc.la] Error 1 (ignored)
> 
> 
> The other problem has to do with EBADFD being undeclared in
> fuse-bridge.c.
> I don't know what the proper way of fixing that would be.
> 
> Making all in mount
> Making all in fuse
> Making all in src
> glibtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I../../../.. -I../../../../libglusterfs/src
> -I../../../../contrib/uuid -fPIC -D_FILE_OFFSET_BITS=64
> -D_GNU_SOURCE -DGF_DARWIN_HOST_OS -Wall -I../../../../libglusterfs/src
> -I../../../../contrib/fuse-include -I../../../../glusterfsd/src
> -I../../../../argp-standalone -D__DARWIN_64_BIT_INO_T -bundle
> -undefined suppress -flat_namespace -D_XOPEN_SOURCE -O0
> -I../../../../contrib/macfuse -g -O2 -MT fuse-bridge.lo -MD -MP -MF
> .deps/fuse-bridge.Tpo -c -o fuse-bridge.lo fuse-bridge.c
> glibtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../..
> -I../../../../libglusterfs/src -I../../../../contrib/uuid -fPIC
> -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DGF_DARWIN_HOST_OS -Wall
> -I../../../../libglusterfs/src -I../../../../contrib/fuse-include
> -I../../../../glusterfsd/src -I../../../../argp-standalone
> -D__DARWIN_64_BIT_INO_T -bundle -undefined suppress -flat_namespace
> -D_XOPEN_SOURCE -O0 -I../../../../contrib/macfuse -g -O2 -MT
> fuse-bridge.lo -MD -MP -MF .deps/fuse-bridge.Tpo -c fuse-bridge.c
> -fno-common -DPIC -o .libs/fuse-bridge.o
> fuse-bridge.c: In function ‘fuse_write_resume’:
> fuse-bridge.c:1758: error: ‘EBADFD’ undeclared (first use in this
> function)
> fuse-bridge.c:1758: error: (Each undeclared identifier is reported
> only once
> fuse-bridge.c:1758: error: for each function it appears in.)
> make[5]: [fuse-bridge.lo] Error 1 (ignored)
> 
> 
> --
> Best regards,
> Noah Williamsson




More information about the Gluster-devel mailing list