Hi All,
I am trying to build zookeeper c client for 3.4.12 version.
Under src/c ran below commands:-
1. ./configure --without-cppunit
This is successful
2. make
Getting below error when building .Appreciate if anyone knows solution
for this issue on AIX platform.
libtool: link: ( cd ".libs" && rm -f "libzookeeper_st.la" && ln -s
"../libzookeeper_st.la" "libzookeeper_st.la" )
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I./include -I./tests -I./generated -DTHREADED -g -O2 -D_GNU_SOURCE -MT
libzkmt_ la-zookeeper.lo -MD -MP -MF
.deps/libzkmt_la-zookeeper.Tpo -c -o libzkmt_la-zookeeper.lo `test -f
'src/zookeeper.c' || echo './'`src/zookeeper.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./tests
-I./generated -DTHREADED -g -O2 -D_GNU_SOURCE -MT libzkmt_la-zookeeper.lo
-MD -MP -MF .deps/lib zkmt_la-zookeeper.Tpo -c
src/zookeeper.c -fPIC -DPIC -o .libs/libzkmt_la-zookeeper.o
In file included from src/zookeeper.c:31:
src/zk_adaptor.h:261: error: conflicting types for 'fetch_and_add'
/usr/include/sys/atomic_op.h:71: error: previous declaration of
'fetch_and_add' was here
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
--
Sent from: http://zookeeper-user.578899.n2.nabble.com/