This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch hadoop-3.4.2
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git


The following commit(s) were added to refs/heads/hadoop-3.4.2 by this push:
     new dbf5b982cee [fix] fix some compile error
dbf5b982cee is described below

commit dbf5b982ceed7b5462cc3bdda2a23cf804b23926
Author: morningman <[email protected]>
AuthorDate: Tue Oct 21 11:19:33 2025 +0800

    [fix] fix some compile error
---
 .../src/main/native/libhdfspp/CMakeLists.txt                       | 7 ++++++-
 .../src/main/native/libhdfspp/lib/fs/filehandle.cc                 | 3 ++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
 
b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
index a42ee2e2114..ebbc898ac13 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
+++ 
b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
@@ -59,7 +59,9 @@ include(FetchContent)
 # 
https://github.com/google/googletest/blob/e649993a402d96afe25fbf3413749adf0f2947f6/googletest/README.md#incorporating-into-an-existing-cmake-project
 FetchContent_Declare(
   googletest
-  URL 
https://github.com/google/googletest/archive/703bd9caab50b139428cea1aaff9974ebee5742e.zip
+  #URL 
https://github.com/google/googletest/archive/703bd9caab50b139428cea1aaff9974ebee5742e.zip
+  # use 1.12.1 to avoid -Wdeprecated-copy
+  URL https://github.com/google/googletest/archive/refs/tags/release-1.12.1.zip
 )
 # The commit SHA 703bd9caab50b139428cea1aaff9974ebee5742e in the URL above 
corresponds to the
 # tag release-1.10.0 in the googletest repository.
@@ -169,6 +171,9 @@ add_definitions(-DASIO_STANDALONE -DASIO_CPP11_DATE_TIME)
 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
 set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")
 
+set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-cast-function-type 
-Wno-unused-lambda-capture")
+set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-cast-function-type 
-Wno-unused-lambda-capture")
+
 if(UNIX)
 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -g -fPIC 
-fno-strict-aliasing")
 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fPIC -fno-strict-aliasing")
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filehandle.cc
 
b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filehandle.cc
index d5118089027..e2ea49f51d3 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filehandle.cc
+++ 
b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filehandle.cc
@@ -292,7 +292,8 @@ void FileHandleImpl::AsyncPreadSome(
     if (status.ok()) {
       reader->AsyncReadBlock(
           client_name, *block, offset_within_block,
-          boost::asio::buffer(buffer, size_within_block), read_handler);
+          // boost::asio::buffer(buffer, size_within_block), read_handler);
+          boost::asio::buffer(*buffer.begin(), size_within_block), 
read_handler);
     } else {
       handler(status, dn_id, 0);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to