[Gluster-users] How to compile gluster 3.4 on Mac OS X 10.8.4?

Dennis Schafroth dennis at schafroth.dk
Sat Mar 15 12:59:47 UTC 2014


On 13 Mar 2014, at 23:05 , Justin Clift <justin at gluster.org> wrote:

> On 13/03/2014, at 9:04 PM, Dennis Schafroth wrote:
>> On 31 Aug 2013, at 01:52 , Justin Clift <jclift at redhat.com> wrote:
>>> On 30/08/2013, at 10:59 PM, Peng Yu wrote:
>>>> Hi,
>>>> 
>>>> I run ./configure then make. But I see the following error. Does
>>>> anybody know how to compile gluster 3.4 on Mac OS X 10.8.4? Thanks.
>>> 
>>> Hi Peng,
>>> 
>>> GlusterFS doesn't yet work on OSX. :(
>>> 
>>> A long time ago (many versions), it used to.  But it doesn't
>>> any more.
>>> 
>>> Out of curiosity, are you a C coder, potentially interested
>>> in making it work? :)
>> 
>> I am a C/C++ coder, but I have mostly been in Java land the later years. Interested in making it work, but not sure how big a task it is. 
>> 
>> Some linux / UNIX 2008 functions is missing on OSX (and BSD?), like at-functions. I can see two libraries (gnulib or libspl from MacZFS) that technical could help with this, but are there licensing issue using these? 
> 
> Not sure about any licensing issues, but from a technical standpoint
> gnulib probably won't work for us.  I tried getting it to work with
> gnulib for exactly this a while back. ;)
> 
> Gnulib's approach macro expands every mention of 'stat' through a
> code base... which for GlusterFS is _everywhere_ since we're a
> filesystem project.  It's not something that can be turned off
> either (when checking last year anyway). :(
> 
> When discussing with Eric Blake (Gnulib guy), he said that if we
> really need to use gnulib for this, we'll need to rename our existing
> usages of "stat" to something else.  (pretty sure this isn't
> feasible)
> 
> (Happy to forward the emails about this to you if it helps.  I
> might have been misunderstanding, etc.)

I think I got to the same point and went back to the libspl solution 

> 
> Libspl I hadn't heard of though, so haven't looked into this.

There are some compilation issue here as well, but haven’t got that far yet. 

> 
> If you can get Gluster working on OSX, that would be *great*! :)
> 
> 
>> Also rpc_sizeof method (but seems easy enough)  is missing.  Will it work between different implementations? 
>> 
>> FUSE seems to be the biggest problem, with macfuse being unsupported for years and osxfuse also behind in version.
>> 
>> Beside autoconf, automake, format strings and other trivial (famous last word) stuff, are there other stuff I am overlooking? 
> 
> 
> The missing at-functions were the biggest hurdle I hit and didn't
> persist with after trying Gnulib unsuccessfully.  If you can get
> Gnulib solved, I'm pretty sure the rest of the main Gluster pieces
> will compile.  Gluster definitely works on NetBSD, which might be
> a good sign. ;)
> 
> Regards and best wishes,
> 
> Justin Clift
> 
> --
> Open Source and Standards @ Red Hat
> 
> twitter.com/realjustinclift
> 
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140315/c2b1f486/attachment.html>


More information about the Gluster-users mailing list