zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajsura <rajkirans...@gmail.com>
Subject Compilation issues with ZkTreeUtil in v3.5.5
Date Fri, 11 Oct 2019 12:36:15 GMT
I have used multiple versions of GCC and the issue exists in both the cases
(gcc-4.8.5 and gcc-7.3.1).

I have followed the instructions given in README.txt. Also, due to
restructuring in 3.5.5, I had to update ZOOKEEPER_PATH in configure.ac as
below:

# Zookeeper C client
ZOOKEEPER_PATH=${BUILD_PATH}/../../zookeeper-client/zookeeper-client-c

I am encountering these errors during "make" phase:

$ make
make  all-recursive
make[1]: Entering directory
'/tmp/bar2/zookeeper-3.5.5-SNAPSHOT/zookeeper-contrib/zookeeper-contrib-zktreeutil'
Making all in src
make[2]: Entering directory
'/tmp/bar2/zookeeper-3.5.5-SNAPSHOT/zookeeper-contrib/zookeeper-contrib-zktreeutil/src'
g++ -DHAVE_CONFIG_H -I. -I..   
-I/tmp/bar2/zookeeper-3.5.5-SNAPSHOT/zookeeper-contrib/zookeeper-contrib-zktreeutil/../../zookeeper-client/zookeeper-client-c/include
-I/tmp/bar2/zookeeper-3.5.5-SNAPSHOT/zookeeper-contrib/zookeeper-contri
b-zktreeutil/../../zookeeper-client/zookeeper-client-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
ZkAdaptor.cc: In member function ‘bool
zktreeutil::ZooKeeperAdapter::createNode(const string&, const string&, int,
bool)’:
ZkAdaptor.cc:276:18: error: ‘zoo_create’ was not declared in this scope
             rc = zoo_create( mp_zkHandle,
                  ^~~~~~~~~~
ZkAdaptor.cc:276:18: note: suggested alternative: ‘zoo_acreate’
             rc = zoo_create( mp_zkHandle,
                  ^~~~~~~~~~
                  zoo_acreate
ZkAdaptor.cc: At global scope:
ZkAdaptor.cc:334:26: warning: dynamic exception specifications are
deprecated in C++11 [-Wdeprecated]
             int version) throw(ZooKeeperException)
                          ^~~~~
ZkAdaptor.cc: In member function ‘bool
zktreeutil::ZooKeeperAdapter::deleteNode(const string&, bool, int)’:
ZkAdaptor.cc:344:18: error: ‘zoo_delete’ was not declared in this scope
             rc = zoo_delete( mp_zkHandle, path.c_str(), version );
                  ^~~~~~~~~~
ZkAdaptor.cc:344:18: note: suggested alternative: ‘zoo_adelete’
             rc = zoo_delete( mp_zkHandle, path.c_str(), version );
                  ^~~~~~~~~~
                  zoo_adelete
ZkAdaptor.cc: At global scope:
ZkAdaptor.cc:383:77: warning: dynamic exception specifications are
deprecated in C++11 [-Wdeprecated]
     vector< string > ZooKeeperAdapter::getNodeChildren (const string &path)
throw (ZooKeeperException)
                                                                            
^~~~~
ZkAdaptor.cc: In member function ‘std::vector<std::basic_string&lt;char> >
zktreeutil::ZooKeeperAdapter::getNodeChildren(const string&)’:
ZkAdaptor.cc:395:18: error: ‘zoo_get_children’ was not declared in this
scope
             rc = zoo_get_children( mp_zkHandle,
                  ^~~~~~~~~~~~~~~~
ZkAdaptor.cc:395:18: note: suggested alternative: ‘zoo_aget_children’
             rc = zoo_get_children( mp_zkHandle,
                  ^~~~~~~~~~~~~~~~
                  zoo_aget_children

Its weird because, "zookeeper.h" is accessible and these are still defined
in there.

Am I missing something here? Thanks!





--
Sent from: http://zookeeper-user.578899.n2.nabble.com/

Mime
View raw message