[ 
https://issues.apache.org/jira/browse/MESOS-1797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Till Toenshoff resolved MESOS-1797.
-----------------------------------
    Resolution: Fixed

commit 64862a70cca7b8531ef5421db649d151533fd0ae
Author: Till Toenshoff <[email protected]>
Date:   Sat Oct 18 13:40:01 2014 +0200

    Fixed ZooKeeper 3.4.5 OSX Yosemite build.
    
    Fixes build issue caused by htonll introduced by OSX 10.10 (Yosemite).
    
    This poses as a hotfix to prevent us from having to upgrade the bundled
    ZooKeeper altogether to prevent longer regression testing. Once
    ZooKeeper does get updated into a recent version (3.4.x >= 3.4.7,
    3.5.x >= 3.5.1 or >= 3.6.0), this patch should get removed.
    
    Review: https://reviews.apache.org/r/26571


> Packaged Zookeeper does not compile on OSX Yosemite
> ---------------------------------------------------
>
>                 Key: MESOS-1797
>                 URL: https://issues.apache.org/jira/browse/MESOS-1797
>             Project: Mesos
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 0.20.0, 0.21.0, 0.19.1
>            Reporter: Dario Rexin
>            Assignee: Till Toenshoff
>            Priority: Minor
>
> I have been struggling with this for some time (due to my lack of knowledge 
> about C compiler error messages) and finally found a way to make it compile. 
> The problem is that Zookeeper defines a function `htonll` that is a builtin 
> function in Yosemite. For me it worked to just remove this function, but as 
> it needs to keep working on other systems as well, we would need some check 
> for the OS version or if the function is already defined.
> Here are the links to the source:
> https://github.com/apache/zookeeper/blob/trunk/src/c/include/recordio.h#L73
> https://github.com/apache/zookeeper/blob/trunk/src/c/src/recordio.c#L83-L97



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to