From user-return-12231-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Fri Oct 11 16:27:59 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 7D15A180656 for ; Fri, 11 Oct 2019 18:27:59 +0200 (CEST) Received: (qmail 18038 invoked by uid 500); 11 Oct 2019 16:27:57 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Delivered-To: moderator for user@zookeeper.apache.org Received: (qmail 59479 invoked by uid 500); 11 Oct 2019 12:23:36 -0000 Delivered-To: apmail-hadoop-zookeeper-user@hadoop.apache.org X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.023 X-Spam-Level: **** X-Spam-Status: No, score=4.023 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_ENVFROM_END_DIGIT=0.25, KAM_NUMSUBJECT=0.5, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=0.1] autolearn=disabled Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=162.253.133.85; helo=n2.nabble.com; envelope-from=rajkirans711@gmail.com; receiver= Date: Fri, 11 Oct 2019 05:23:30 -0700 (MST) From: rajsura To: zookeeper-user@hadoop.apache.org Message-ID: <1570796610360-0.post@n2.nabble.com> Subject: Compilation issues with ZkTreeUtil in v3.5.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3D${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-zkt= reeutil' Making all in src make[2]: Entering directory '/tmp/bar2/zookeeper-3.5.5-SNAPSHOT/zookeeper-contrib/zookeeper-contrib-zkt= reeutil/src' g++ -DHAVE_CONFIG_H -I. -I.. =20 -I/tmp/bar2/zookeeper-3.5.5-SNAPSHOT/zookeeper-contrib/zookeeper-contrib-zk= treeutil/../../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 =E2=80=98bool zktreeutil::ZooKeeperAdapter::createNode(const string&, const string&, int, bool)=E2=80=99: ZkAdaptor.cc:276:18: error: =E2=80=98zoo_create=E2=80=99 was not declared i= n this scope rc =3D zoo_create( mp_zkHandle, ^~~~~~~~~~ ZkAdaptor.cc:276:18: note: suggested alternative: =E2=80=98zoo_acreate=E2= =80=99 rc =3D 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 =E2=80=98bool zktreeutil::ZooKeeperAdapter::deleteNode(const string&, bool, int)=E2=80=99= : ZkAdaptor.cc:344:18: error: =E2=80=98zoo_delete=E2=80=99 was not declared i= n this scope rc =3D zoo_delete( mp_zkHandle, path.c_str(), version ); ^~~~~~~~~~ ZkAdaptor.cc:344:18: note: suggested alternative: =E2=80=98zoo_adelete=E2= =80=99 rc =3D 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) = =20 ^~~~~ ZkAdaptor.cc: In member function =E2=80=98std::vector > zktreeutil::ZooKeeperAdapter::getNodeChildren(const string&)=E2=80=99: ZkAdaptor.cc:395:18: error: =E2=80=98zoo_get_children=E2=80=99 was not decl= ared in this scope rc =3D zoo_get_children( mp_zkHandle, ^~~~~~~~~~~~~~~~ ZkAdaptor.cc:395:18: note: suggested alternative: =E2=80=98zoo_aget_childre= n=E2=80=99 rc =3D 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/