Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1797

Packaged Zookeeper does not compile on OSX Yosemite

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.19.1, 0.20.0, 0.21.0
    • 0.21.0
    • build
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              bmahler Benjamin Mahler
              drexin Dario Rexin
              Yan Xu Yan Xu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: