[
https://issues.apache.org/jira/browse/HADOOP-11547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Nauroth updated HADOOP-11547:
-----------------------------------
Attachment: HADOOP-11547.002.patch
Somehow I missed that {{terror}} is actually declared in exception.h. Here is
patch v002, which keeps the include, but moves it to the {{#ifdef UNIX}}
section. On Windows, there is no code path that calls {{terror}}.
> hadoop-common native compilation fails on Windows due to missing support for
> __attribute__ declaration.
> -------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-11547
> URL: https://issues.apache.org/jira/browse/HADOOP-11547
> Project: Hadoop Common
> Issue Type: Bug
> Components: native
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
> Attachments: HADOOP-11547.001.patch, HADOOP-11547.002.patch
>
>
> HADOOP-11403 made a change to include exception.h in NativeIO.c. This header
> includes use of the non-standard gcc {{\_\_attribute\_\_}} declaration, and
> thus fails compilation on Windows.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)