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

Wei-Chiu Chuang commented on HDFS-14425:
----------------------------------------

What's the gcc version you use, and what operating system/version does it run 
on? That code hasn't changed in the past 7 years so I'm surprised it's only 
causing problems now.

tOffset is defined as uint64_t. Seems you ran on a 32bit machine?

Would you like to offer a patch as well?

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to