From 6415eb04e8226667268058a88521d6020e2a6a8c Mon Sep 17 00:00:00 2001 From: Gautham B A Date: Tue, 19 Jul 2022 21:39:06 +0530 Subject: [PATCH] HDFS-16665. Fix duplicate sources for HDFS test (#4573) * The library target hdfspp_test_shim_static is built using the following sources, which causes duplicate symbols to be defined - - hdfs_shim.c - ${LIBHDFSPP_BINDING_C}/hdfs.cc * ${LIBHDFSPP_BINDING_C}/hdfs.cc is redundant and removing this fixes the issue. --- .../src/main/native/libhdfspp/tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/CMakeLists.txt b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/CMakeLists.txt index 1a88b5c81e..094d9f7a7a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/CMakeLists.txt +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/CMakeLists.txt @@ -150,7 +150,7 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/../../libhdfs-tests/ ) -add_library(hdfspp_test_shim_static STATIC $ hdfs_shim.c libhdfs_wrapper.c libhdfspp_wrapper.cc ${LIBHDFSPP_BINDING_C}/hdfs.cc) +add_library(hdfspp_test_shim_static STATIC $ hdfs_shim.c libhdfs_wrapper.c libhdfspp_wrapper.cc) add_dependencies(hdfspp_test_shim_static proto) add_library(hdfspp_test_static STATIC $ ${LIBHDFSPP_BINDING_C}/hdfs.cc)