[
https://issues.apache.org/jira/browse/HADOOP-11536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kiran Kumar M R updated HADOOP-11536:
-------------------------------------
Description:
exception.h was not included in any C/C++ file, so it was not getting compiled
on windows till now.
Fix for issue HADOOP-11403 has modified NativeIO.c to include exception.h
So compilation on windows is failing.
Environment: Windows 8.1 64bit with Visual Studio Express 2013 (was:
Windows)
Tags: native,windows (was: native)
{code}__attribute__((format(printf, 3, 4))){code} is GCC specific.
VC++ has similar SAL Annotation {code}_Printf_format_string_{code}
Refer: https://msdn.microsoft.com/en-us/library/ms235402(v=vs.120).aspx
We need to wrap these in compiler specific {code}#ifdef{code}
> exception.h is not compiling on windows. Has gcc specific __attribute__ format
> ------------------------------------------------------------------------------
>
> Key: HADOOP-11536
> URL: https://issues.apache.org/jira/browse/HADOOP-11536
> Project: Hadoop Common
> Issue Type: Bug
> Components: native
> Affects Versions: 3.0.0, 2.2.0
> Environment: Windows 8.1 64bit with Visual Studio Express 2013
> Reporter: Kiran Kumar M R
> Assignee: Kiran Kumar M R
>
> exception.h was not included in any C/C++ file, so it was not getting
> compiled on windows till now.
> Fix for issue HADOOP-11403 has modified NativeIO.c to include exception.h
> So compilation on windows is failing.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)