You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by rammohan ganapavarapu <ra...@gmail.com> on 2018/03/17 21:59:07 UTC

zktreeutils compilation error

Hi,

I am getting below error when i try to compile the zktreeutils, any idea
what could be the issue?


make  all-recursive
make[1]: Entering directory
`/home/rganapavarapu/zookeeper/src/contrib/zktreeutil'
Making all in src
make[2]: Entering directory
`/home/rganapavarapu/zookeeper/src/contrib/zktreeutil/src'
g++ -DHAVE_CONFIG_H -I. -I..
-I/home/rganapavarapu/zookeeper/src/contrib/zktreeutil/../../c/include
-I/home/rganapavarapu/zookeeper/src/contrib/zktreeutil/../../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:283:37: error: ‘zoo_create’ was not declared in this scope
                     MAX_PATH_LENGTH );
                                     ^
ZkAdaptor.cc: In member function ‘bool
zktreeutil::ZooKeeperAdapter::deleteNode(const string&, bool, int)’:
ZkAdaptor.cc:344:65: error: ‘zoo_delete’ was not declared in this scope
             rc = zoo_delete( mp_zkHandle, path.c_str(), version );
                                                                 ^
ZkAdaptor.cc: In member function ‘std::vector<std::basic_string<char> >
zktreeutil::ZooKeeperAdapter::getNodeChildren(const string&)’:
ZkAdaptor.cc:398:31: error: ‘zoo_get_children’ was not declared in this
scope
                     &children );
                               ^
ZkAdaptor.cc: In member function ‘bool
zktreeutil::ZooKeeperAdapter::nodeExists(const string&)’:
ZkAdaptor.cc:442:26: error: ‘zoo_exists’ was not declared in this scope
                     stat );
                          ^
ZkAdaptor.cc: In member function ‘std::string
zktreeutil::ZooKeeperAdapter::getNodeData(const string&)’:
ZkAdaptor.cc:477:40: error: ‘zoo_get’ was not declared in this scope
                     buffer, &len, stat );
                                        ^
ZkAdaptor.cc: In member function ‘void
zktreeutil::ZooKeeperAdapter::setNodeData(const string&, const string&,
int)’:
ZkAdaptor.cc:504:28: error: ‘zoo_set’ was not declared in this scope
                     version);

Thanks,
Ram

Re: zktreeutils compilation error

Posted by rammohan ganapavarapu <ra...@gmail.com>.
Yes, i followed the read me.

On Sun, Mar 18, 2018, 2:11 AM Flavio Junqueira <fp...@apache.org> wrote:

> Hi Ram,
>
> Just so that I understand the steps you have followed. Did you follow the
> instructions in the README file?
>
> -Flavio
>
> > On 17 Mar 2018, at 22:59, rammohan ganapavarapu <ra...@gmail.com>
> wrote:
> >
> > Hi,
> >
> > I am getting below error when i try to compile the zktreeutils, any idea
> > what could be the issue?
> >
> >
> > make  all-recursive
> > make[1]: Entering directory
> > `/home/rganapavarapu/zookeeper/src/contrib/zktreeutil'
> > Making all in src
> > make[2]: Entering directory
> > `/home/rganapavarapu/zookeeper/src/contrib/zktreeutil/src'
> > g++ -DHAVE_CONFIG_H -I. -I..
> > -I/home/rganapavarapu/zookeeper/src/contrib/zktreeutil/../../c/include
> > -I/home/rganapavarapu/zookeeper/src/contrib/zktreeutil/../../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:283:37: error: ‘zoo_create’ was not declared in this scope
> >                     MAX_PATH_LENGTH );
> >                                     ^
> > ZkAdaptor.cc: In member function ‘bool
> > zktreeutil::ZooKeeperAdapter::deleteNode(const string&, bool, int)’:
> > ZkAdaptor.cc:344:65: error: ‘zoo_delete’ was not declared in this scope
> >             rc = zoo_delete( mp_zkHandle, path.c_str(), version );
> >                                                                 ^
> > ZkAdaptor.cc: In member function ‘std::vector<std::basic_string<char> >
> > zktreeutil::ZooKeeperAdapter::getNodeChildren(const string&)’:
> > ZkAdaptor.cc:398:31: error: ‘zoo_get_children’ was not declared in this
> > scope
> >                     &children );
> >                               ^
> > ZkAdaptor.cc: In member function ‘bool
> > zktreeutil::ZooKeeperAdapter::nodeExists(const string&)’:
> > ZkAdaptor.cc:442:26: error: ‘zoo_exists’ was not declared in this scope
> >                     stat );
> >                          ^
> > ZkAdaptor.cc: In member function ‘std::string
> > zktreeutil::ZooKeeperAdapter::getNodeData(const string&)’:
> > ZkAdaptor.cc:477:40: error: ‘zoo_get’ was not declared in this scope
> >                     buffer, &len, stat );
> >                                        ^
> > ZkAdaptor.cc: In member function ‘void
> > zktreeutil::ZooKeeperAdapter::setNodeData(const string&, const string&,
> > int)’:
> > ZkAdaptor.cc:504:28: error: ‘zoo_set’ was not declared in this scope
> >                     version);
> >
> > Thanks,
> > Ram
>
>

Re: zktreeutils compilation error

Posted by Flavio Junqueira <fp...@apache.org>.
Hi Ram,

Just so that I understand the steps you have followed. Did you follow the instructions in the README file?

-Flavio 

> On 17 Mar 2018, at 22:59, rammohan ganapavarapu <ra...@gmail.com> wrote:
> 
> Hi,
> 
> I am getting below error when i try to compile the zktreeutils, any idea
> what could be the issue?
> 
> 
> make  all-recursive
> make[1]: Entering directory
> `/home/rganapavarapu/zookeeper/src/contrib/zktreeutil'
> Making all in src
> make[2]: Entering directory
> `/home/rganapavarapu/zookeeper/src/contrib/zktreeutil/src'
> g++ -DHAVE_CONFIG_H -I. -I..
> -I/home/rganapavarapu/zookeeper/src/contrib/zktreeutil/../../c/include
> -I/home/rganapavarapu/zookeeper/src/contrib/zktreeutil/../../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:283:37: error: ‘zoo_create’ was not declared in this scope
>                     MAX_PATH_LENGTH );
>                                     ^
> ZkAdaptor.cc: In member function ‘bool
> zktreeutil::ZooKeeperAdapter::deleteNode(const string&, bool, int)’:
> ZkAdaptor.cc:344:65: error: ‘zoo_delete’ was not declared in this scope
>             rc = zoo_delete( mp_zkHandle, path.c_str(), version );
>                                                                 ^
> ZkAdaptor.cc: In member function ‘std::vector<std::basic_string<char> >
> zktreeutil::ZooKeeperAdapter::getNodeChildren(const string&)’:
> ZkAdaptor.cc:398:31: error: ‘zoo_get_children’ was not declared in this
> scope
>                     &children );
>                               ^
> ZkAdaptor.cc: In member function ‘bool
> zktreeutil::ZooKeeperAdapter::nodeExists(const string&)’:
> ZkAdaptor.cc:442:26: error: ‘zoo_exists’ was not declared in this scope
>                     stat );
>                          ^
> ZkAdaptor.cc: In member function ‘std::string
> zktreeutil::ZooKeeperAdapter::getNodeData(const string&)’:
> ZkAdaptor.cc:477:40: error: ‘zoo_get’ was not declared in this scope
>                     buffer, &len, stat );
>                                        ^
> ZkAdaptor.cc: In member function ‘void
> zktreeutil::ZooKeeperAdapter::setNodeData(const string&, const string&,
> int)’:
> ZkAdaptor.cc:504:28: error: ‘zoo_set’ was not declared in this scope
>                     version);
> 
> Thanks,
> Ram