You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Abhishek Soni (JIRA)" <ji...@apache.org> on 2015/11/19 08:34:11 UTC

[jira] [Commented] (HADOOP-11665) Provide and unify cross platform byteorder support in native code

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

Abhishek Soni commented on HADOOP-11665:
----------------------------------------

I have also checked that the endianness macro being used in the patch ('__BIG_ENDIAN__') is specifically defined by gcc on Mac. I have checked it for SLES Big Endian platform and it is not defined there. Therefore It doesn't seem to be reliable for platforms other than Mac.

I have modified the existing patch and used c code to check endianness instead of __BIG_ENDIAN__ macro.
I will be adding the modified patch (HADOOP-11665.002.patch) here. Please verify it.

> Provide and unify cross platform byteorder support in native code
> -----------------------------------------------------------------
>
>                 Key: HADOOP-11665
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11665
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: native, util
>    Affects Versions: 2.4.1, 2.6.0
>         Environment: PowerPC Big Endian & other Big Endian platforms
>            Reporter: Binglin Chang
>            Assignee: Binglin Chang
>              Labels: BB2015-05-TBR
>         Attachments: HADOOP-11665.001.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)