[ 
https://issues.apache.org/jira/browse/HDFS-14425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16817522#comment-16817522
 ] 

hunshenshi commented on HDFS-14425:
-----------------------------------

we need to convert &blockSize to jlong type.

find the function then add '(jlong *) 'before the '&blockSize' parameter

result:

getDefaultBlockSize(env, jFS, jPath, (jlong *)&blockSize)

 

It works for me

> Native build fails on macos due to jlong in hdfs.c
> --------------------------------------------------
>
>                 Key: HDFS-14425
>                 URL: https://issues.apache.org/jira/browse/HDFS-14425
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: hunshenshi
>            Priority: Major
>
> [WARNING] 
> /Users/xx/tmp/idea/hadoop-3.2.0-src/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c:3033:/Users/xx/tmp/idea/hadoop-3.2.0-src/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c:3033:4949::
>   warningwarning: : incompatible pointer types passing 'tOffset *' (aka 'long 
> long *') to parameter of type 'jlong *' (aka 'long *') 
> [-Wincompatible-pointer-types]incompatible pointer types passing 'tOffset *' 
> (aka 'long long *') to parameter of type 'jlong *' (aka 'long *') 
> [-Wincompatible-pointer-types]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to