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 73418200CB6 for ; Thu, 15 Jun 2017 05:02:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7217E160BEA; Thu, 15 Jun 2017 03:02: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 BFF94160BDB for ; Thu, 15 Jun 2017 05:02:04 +0200 (CEST) Received: (qmail 45346 invoked by uid 500); 15 Jun 2017 03:02: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 45332 invoked by uid 99); 15 Jun 2017 03:02: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; Thu, 15 Jun 2017 03:02: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 11677C01DB for ; Thu, 15 Jun 2017 03:02:03 +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 nMK9eMfzitC4 for ; Thu, 15 Jun 2017 03:02:02 +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 258465F4EE for ; Thu, 15 Jun 2017 03:02: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 5DECCE0984 for ; Thu, 15 Jun 2017 03:02: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 152E021E0C for ; Thu, 15 Jun 2017 03:02:00 +0000 (UTC) Date: Thu, 15 Jun 2017 03:02:00 +0000 (UTC) From: "James Clampffer (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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: Thu, 15 Jun 2017 03:02:05 -0000 [ https://issues.apache.org/jira/browse/HDFS-11971?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1604= 9943#comment-16049943 ]=20 James Clampffer commented on HDFS-11971: ---------------------------------------- Thanks for the fixes [~anatoli.shein]!. Linking the static library in the = tools is definitely an improvement. {code} 29=09# Several examples in different languages need to produce executables = with=09=09 30=09# same names. To allow executables with same names we keep their CMake= =09=09 31=09# names different, but specify their executable names as follows:=09= =09 32=09set_target_properties( gendirs_cc=09=09 33=09 PROPERTIES=09=09 34=09 OUTPUT_NAME "gendirs"=09=09 35=09) {code} Did set_target_properties cause issues for your build? > 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