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

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

commit 8a0fa7700be98cbafdd07a3c71e7a318f4ce58bf
Author: Qi Chen <[email protected]>
AuthorDate: Fri Jul 21 11:50:12 2023 +0800

    [chore] Build hadoop common native libs. (#98)
---
 build.sh                                    | 3 ++-
 hadoop-common-project/hadoop-common/pom.xml | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 0cc81fbe3d5..502a7123ce4 100755
--- a/build.sh
+++ b/build.sh
@@ -38,7 +38,8 @@ 
LIBHDFS_DIST_DIR="${SRC_HOME}/hadoop-dist/target/hadoop-libhdfs-3.3.6"
 rm -rf "${DIST_DIR}"
 rm -rf "${LIBHDFS_DIST_DIR}"
 
-mvn clean package -Pdist -DskipTests -Dmaven.javadoc.skip -f 
hadoop-common-project -e
+mvn clean package -Pnative,dist -DskipTests -Dmaven.javadoc.skip -f 
hadoop-common-project \
+        -Dopenssl.prefix="${THIRDPARTY_INSTALLED}" -e
 mvn clean package -Pnative,dist -DskipTests -Dmaven.javadoc.skip -f 
hadoop-hdfs-project \
        -Dthirdparty.installed="${THIRDPARTY_INSTALLED}" 
-Dopenssl.prefix="${THIRDPARTY_INSTALLED}" -e
 mvn clean package -Pdist -DskipTests -Dmaven.javadoc.skip -f hadoop-dist -e
diff --git a/hadoop-common-project/hadoop-common/pom.xml 
b/hadoop-common-project/hadoop-common/pom.xml
index 66c07cfee7c..4223499cbc0 100644
--- a/hadoop-common-project/hadoop-common/pom.xml
+++ b/hadoop-common-project/hadoop-common/pom.xml
@@ -766,6 +766,10 @@
                 <goals><goal>cmake-compile</goal></goals>
                 <configuration>
                   <source>${basedir}/src</source>
+                  <env>
+                    <CFLAGS>-Wno-implicit-function-declaration</CFLAGS>
+                    <CXXFLAGS>-Wno-implicit-function-declaration</CXXFLAGS>
+                  </env>
                   <vars>
                     
<GENERATED_JAVAH>${project.build.directory}/native/javah</GENERATED_JAVAH>
                     
<JVM_ARCH_DATA_MODEL>${sun.arch.data.model}</JVM_ARCH_DATA_MODEL>


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

Reply via email to