Return-Path: X-Original-To: apmail-hadoop-common-commits-archive@www.apache.org Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31AD218338 for ; Fri, 22 May 2015 19:57:37 +0000 (UTC) Received: (qmail 37269 invoked by uid 500); 22 May 2015 19:57:37 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 37206 invoked by uid 500); 22 May 2015 19:57:36 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 37197 invoked by uid 99); 22 May 2015 19:57:36 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2015 19:57:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CCB75DFBD9; Fri, 22 May 2015 19:57:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cmccabe@apache.org To: common-commits@hadoop.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hadoop git commit: HADOOP-11927. Fix "undefined reference to dlopen" error when compiling libhadooppipes (Xianyin Xin via Colin P. McCabe) Date: Fri, 22 May 2015 19:57:36 +0000 (UTC) Repository: hadoop Updated Branches: refs/heads/branch-2 6042b53a7 -> 97ebe1b2c HADOOP-11927. Fix "undefined reference to dlopen" error when compiling libhadooppipes (Xianyin Xin via Colin P. McCabe) (cherry picked from commit f34638399abdca2e6d3bc5502508819dd747861c) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/97ebe1b2 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/97ebe1b2 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/97ebe1b2 Branch: refs/heads/branch-2 Commit: 97ebe1b2cffa71bfeffe7310d12ed927726efcb1 Parents: 6042b53 Author: Colin Patrick Mccabe Authored: Fri May 22 12:51:03 2015 -0700 Committer: Colin Patrick Mccabe Committed: Fri May 22 12:57:29 2015 -0700 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ hadoop-tools/hadoop-pipes/src/CMakeLists.txt | 9 +++++++++ 2 files changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/97ebe1b2/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 9541d34..baba53a 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -284,6 +284,9 @@ Release 2.8.0 - UNRELEASED HADOOP-11743. maven doesn't clean all the site files (ramtin via vinayakumarb) + HADOOP-11927. Fix "undefined reference to dlopen" error when compiling + libhadooppipes (Xianyin Xin via Colin P. McCabe) + Release 2.7.1 - UNRELEASED INCOMPATIBLE CHANGES http://git-wip-us.apache.org/repos/asf/hadoop/blob/97ebe1b2/hadoop-tools/hadoop-pipes/src/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/hadoop-tools/hadoop-pipes/src/CMakeLists.txt b/hadoop-tools/hadoop-pipes/src/CMakeLists.txt index 72c1836..170af49 100644 --- a/hadoop-tools/hadoop-pipes/src/CMakeLists.txt +++ b/hadoop-tools/hadoop-pipes/src/CMakeLists.txt @@ -69,7 +69,16 @@ add_library(hadooputils STATIC add_library(hadooppipes STATIC main/native/pipes/impl/HadoopPipes.cc ) + +INCLUDE(CheckLibraryExists) +CHECK_LIBRARY_EXISTS(dl dlopen "" NEED_LINK_DL) + +if (NEED_LINK_DL) + set(LIB_DL dl) +endif (NEED_LINK_DL) + target_link_libraries(hadooppipes ${OPENSSL_LIBRARIES} + ${LIB_DL} pthread )