You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "hunshenshi (JIRA)" <ji...@apache.org> on 2019/04/15 03:27:00 UTC
[jira] [Commented] (HDFS-14425) Native build fails on macos due to
jlong in hdfs.c
[ 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org