Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Yosemite build failure: htonll conflict #2

Open
hungrybirder opened this issue Dec 17, 2014 · 3 comments
Open

Yosemite build failure: htonll conflict #2

hungrybirder opened this issue Dec 17, 2014 · 3 comments

Comments

@hungrybirder
Copy link

https://issues.apache.org/jira/browse/ZOOKEEPER-2049

@MosBas
Copy link

MosBas commented Jan 20, 2015

Resolving this issue is relatively easy. The bundled c.tgz in the zc-zookeeper-static egg it outdated, and most specifically, uses the htonll macro.
This case can be solved by bundling a newer official zookeeper tgz, or by replacing the htonll function with zoo_htonll in 4 files within the existing tgz file:

  • recordio.h
  • recordio.c
  • zookeeper.c
  • ZKMocks.cc

@pavanch007
Copy link

pavanch007 commented Dec 22, 2017

Thanks @technomosh that worked! In bash speak, run the following commands:

pip install zc-zookeeper-static --no-clean
cd <to the tmp build dir>/zc-zookeeper-static
sed -i -e 's/htonll/zoo_htonll/g' c/src/recordio.c c/src/zookeeper.c c/include/recordio.h c/tests/ZKMocks.cc
rm -rf c.tgz
tar -cvzf c.tgz c
pip install  <to the tmp build dir>/zc-zookeeper-static

@MosBas
Copy link

MosBas commented Dec 24, 2017

Yup, that certainly does the trick.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants