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 9D834200CAC for ; Mon, 19 Jun 2017 18:16:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9CB7A160BE1; Mon, 19 Jun 2017 16:16:10 +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 B3BF5160BD5 for ; Mon, 19 Jun 2017 18:16:09 +0200 (CEST) Received: (qmail 49509 invoked by uid 500); 19 Jun 2017 16:16:08 -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 49329 invoked by uid 99); 19 Jun 2017 16:16:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2017 16:16:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7C786188ACF for ; Mon, 19 Jun 2017 16:16:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id wX80KZakTGhX for ; Mon, 19 Jun 2017 16:16:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3F6C061066 for ; Mon, 19 Jun 2017 16:16:05 +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 BE25DE0D48 for ; Mon, 19 Jun 2017 16:16:04 +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 E0BE424002 for ; Mon, 19 Jun 2017 16:16:00 +0000 (UTC) Date: Mon, 19 Jun 2017 16:16: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: Mon, 19 Jun 2017 16:16:10 -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.003.patch I also just noticed another small portability issue. We should not use abso= lute paths to /lib and /include for the install targets, it is better to ma= ke them relative to the destination instead. This avoids permission errors = when libhdfspp is trying to copy files into /lib and /include directories. = It will now copy them to /lib and /include Change= added in a new patch. > 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, HDFS-11971.HDFS-8707.003.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