Skip to content

Commit ae00f4d

Browse files
committed
HADOOP-19551. Fix compilation error of native libraries on newer GCC.
1 parent 4235dc6 commit ae00f4d

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

hadoop-common-project/hadoop-common/HadoopCommon.cmake

+3
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
145145
# Make GNU extensions available.
146146
hadoop_add_compiler_flags("-D_GNU_SOURCE")
147147

148+
# using old default behavior on GCC >= 14.0
149+
hadoop_add_compiler_flags("-Wno-error=implicit-function-declaration")
150+
148151
# If JVM_ARCH_DATA_MODEL is 32, compile all binaries as 32-bit.
149152
if(JVM_ARCH_DATA_MODEL EQUAL 32)
150153
# Force 32-bit code generation on amd64/x86_64, ppc64, sparc64

hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/include/hdfspp/content_summary.h

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#ifndef HDFSPP_CONTENT_SUMMARY_H_
1919
#define HDFSPP_CONTENT_SUMMARY_H_
2020

21+
#include <cstdint>
2122
#include <string>
2223

2324
namespace hdfs {

hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/include/hdfspp/fsinfo.h

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#ifndef HDFSPP_FSINFO_H_
1919
#define HDFSPP_FSINFO_H_
2020

21+
#include <cstdint>
2122
#include <string>
2223

2324
namespace hdfs {

hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/include/hdfspp/statinfo.h

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#ifndef HDFSPP_STATINFO_H_
1919
#define HDFSPP_STATINFO_H_
2020

21+
#include <cstdint>
2122
#include <string>
2223

2324
namespace hdfs {

hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/include/hdfspp/uri.h

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#ifndef COMMON_HDFS_URI_H_
2020
#define COMMON_HDFS_URI_H_
2121

22+
#include <cstdint>
2223
#include <iostream>
2324
#include <string>
2425
#include <vector>

0 commit comments

Comments
 (0)