Hi,
I am trying to build a zktreeutils from the 3.6.2 source and i am getting
below error:
Build environment:
OS: DebianJDK: JDK11
Build procedure:
1. Full build : mvn clean install -Pfull-build -DskipTests <- this was
successful.
2. Build C-client: (successful)
cd /apache-zookeeper-3.6.2/zookeeper-client/zookeeper-client-c
./configure
make
3. Build zktreeutils
autoreconf -if
./configure (successful) ( i had to update the configure file with c-client
library path
grep client configure
# Zookeeper C client
ZOOKEEPER_PATH=${BUILD_PATH}/../../zookeeper-client/zookeeper-client-c/target/c)
make (failed)
No need to remake target 'ZkAdaptor.cc'.
Finished prerequisites of target file 'ZkAdaptor.o'.
Must remake target 'ZkAdaptor.o'.
make[2]: Entering directory
'/apache-zookeeper-3.6.2/zookeeper-contrib/zookeeper-contrib-zktreeutil/src'
g++ -DHAVE_CONFIG_H -I. -I..
-I/apache-zookeeper-3.6.2/zookeeper-contrib/zookeeper-contrib-zktreeutil/../../zookeeper-client/zookeeper-client-c/target/c/include
-I/apache-zookeeper-3.6.2/zookeeper-contrib/zookeeper-contrib-zktreeutil/../../zookeeper-client/zookeeper-client-c/target/c/generated
-I../include -I/usr/local/include -I/usr/include -I/usr/include/libxml2 -g
-O2 -MT ZkAdaptor.o -MD -MP -MF .deps/ZkAdaptor.Tpo -c -o ZkAdaptor.o
ZkAdaptor.cc
Putting child 0x55cb86a83200 (ZkAdaptor.o) PID 4000802 on the chain.
Live child 0x55cb86a83200 (ZkAdaptor.o) PID 4000802
In file included from ZkAdaptor.cc:19:
ZkAdaptor.h:26:10: fatal error: zookeeper.h: No such file or directory
26 | #include "zookeeper.h"
| ^~~~~~~~~~~~~
compilation terminated.
Reaping losing child 0x55cb86a83200 PID 4000802
make[2]: *** [Makefile:383: ZkAdaptor.o] Error 1
Removing child 0x55cb86a83200 PID 4000802 from chain.
make[2]: Leaving directory
'/apache-zookeeper-3.6.2/zookeeper-contrib/zookeeper-contrib-zktreeutil/src'
Reaping losing child 0x55dfe8963c90 PID 4000795
make[1]: *** [Makefile:362: all-recursive] Error 1
Removing child 0x55dfe8963c90 PID 4000795 from chain.
make[1]: Leaving directory
'/apache-zookeeper-3.6.2/zookeeper-contrib/zookeeper-contrib-zktreeutil'
Reaping losing child 0x563fd4c34b00 PID 4000794
make: *** [Makefile:303: all] Error 2
Removing child 0x563fd4c34b00 PID 4000794 from chain.
Any help?
Thanks,
Ram