You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cm...@apache.org on 2015/05/22 21:57:17 UTC
hadoop git commit: HADOOP-11927. Fix "undefined reference to dlopen"
error when compiling libhadooppipes (Xianyin Xin via Colin P. McCabe)
Repository: hadoop
Updated Branches:
refs/heads/trunk b27ce3c53 -> f34638399
HADOOP-11927. Fix "undefined reference to dlopen" error when compiling libhadooppipes (Xianyin Xin via Colin P. McCabe)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/f3463839
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/f3463839
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/f3463839
Branch: refs/heads/trunk
Commit: f34638399abdca2e6d3bc5502508819dd747861c
Parents: b27ce3c
Author: Colin Patrick Mccabe <cm...@cloudera.com>
Authored: Fri May 22 12:51:03 2015 -0700
Committer: Colin Patrick Mccabe <cm...@cloudera.com>
Committed: Fri May 22 12:51:03 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/f3463839/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 bf9d997..48be07a 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -749,6 +749,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/f3463839/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
)