Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6620B200CA7 for ; Wed, 14 Jun 2017 21:28:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 644D8160BDB; Wed, 14 Jun 2017 19:28:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AA963160BD6 for ; Wed, 14 Jun 2017 21:28:04 +0200 (CEST) Received: (qmail 97591 invoked by uid 500); 14 Jun 2017 19:28:03 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 97580 invoked by uid 99); 14 Jun 2017 19:28:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2017 19:28:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9ACF6C00B6 for ; Wed, 14 Jun 2017 19:28:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id G12tQiSYuTW5 for ; Wed, 14 Jun 2017 19:28:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 22F105FC43 for ; Wed, 14 Jun 2017 19:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 61F73E01D8 for ; Wed, 14 Jun 2017 19:28:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 193D521E0C for ; Wed, 14 Jun 2017 19:28:00 +0000 (UTC) Date: Wed, 14 Jun 2017 19:28:00 +0000 (UTC) From: "Anatoli Shein (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-11971) libhdfs++: A few portability issues MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Jun 2017 19:28:05 -0000 [ https://issues.apache.org/jira/browse/HDFS-11971?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Anatoli Shein updated HDFS-11971: --------------------------------- Attachment: HDFS-11971.HDFS-8707.002.patch Had a small typo in the previous patch, just fixed and resubmitted. > libhdfs++: A few portability issues > ----------------------------------- > > Key: HDFS-11971 > URL: https://issues.apache.org/jira/browse/HDFS-11971 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: Anatoli Shein > Assignee: Anatoli Shein > Attachments: HDFS-11971.HDFS-8707.000.patch, HDFS-11971.HDFS-8707= .001.patch, HDFS-11971.HDFS-8707.002.patch > > > I recently encountered a few portability issues with libhdfs++ while tryi= ng to build it as a stand alone project (and also as part of another Apache= project). > 1. Method fixCase in configuration.h file produces a warning "conversion = to =E2=80=98char=E2=80=99 from =E2=80=98int=E2=80=99 may alter its value [-= Werror=3Dconversion]" which does not allow libhdfs++ to be compiled as part= of the codebase that treats such warnings as errors (can be fixed with a s= imple cast). > 2. In CMakeLists.txt file (in libhdfspp directory) we do find_package(Thr= eads) however we do not link it to the targets (e.g. hdfspp_static), which = causes the build to fail with pthread errors. After the Threads package is = found we need to link it using ${CMAKE_THREAD_LIBS_INIT}. > 3. All the tools and examples fail to build as part of a standalone libhd= fs++ because they are missing multiple libraries such as protobuf, ssl, pth= read, etc. This happens because we link them to a shared library hdfspp ins= tead of hdfspp_static library. We should either link all the tools and exam= ples to hdfspp_static library or explicitly add linking to all missing libr= aries for each tool/example. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org