[
https://issues.apache.org/jira/browse/HADOOP-9755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13714998#comment-13714998
]
Binglin Chang commented on HADOOP-9755:
---------------------------------------
Sorry for this, here is a simple patch to avoid this, I am not sure the name
"Unavailable" is suitable for windows, if there is some function like dladdr in
windows, or there is some macro which defines the library name in windows, we
can change the name to a more suitable one.
> HADOOP-9164 breaks the windows native build
> -------------------------------------------
>
> Key: HADOOP-9755
> URL: https://issues.apache.org/jira/browse/HADOOP-9755
> Project: Hadoop Common
> Issue Type: Bug
> Components: native
> Affects Versions: 3.0.0, 2.1.0-beta
> Reporter: Vinay
> Priority: Blocker
> Attachments: HADOOP-9755.patch
>
>
> After HADOOP-9164 hadooop windows native build is broken.
> {noformat} NativeCodeLoader.c
> src\org\apache\hadoop\util\NativeCodeLoader.c(41): error C2065: 'Dl_info' :
> undeclared identifier
> [D:\hdp2\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj]
> src\org\apache\hadoop\util\NativeCodeLoader.c(41): error C2146: syntax error
> : missing ';' before identifier 'dl_info'
> [D:\hdp2\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj]
> src\org\apache\hadoop\util\NativeCodeLoader.c(41): error C2065: 'dl_info' :
> undeclared identifier
> [D:\hdp2\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj]
> src\org\apache\hadoop\util\NativeCodeLoader.c(42): error C2143: syntax error
> : missing ';' before 'type'
> [D:\hdp2\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj]
> src\org\apache\hadoop\util\NativeCodeLoader.c(45): error C2065: 'ret' :
> undeclared identifier
> [D:\hdp2\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj]
> src\org\apache\hadoop\util\NativeCodeLoader.c(45): error C2065: 'dl_info' :
> undeclared identifier
> [D:\hdp2\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj]
> src\org\apache\hadoop\util\NativeCodeLoader.c(45): error C2224: left of
> '.dli_fname' must have struct/union type
> [D:\hdp2\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj]
> src\org\apache\hadoop\util\NativeCodeLoader.c(45): fatal error C1903: unable
> to recover from previous error(s); stopping compilation
> [D:\hdp2\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj]
> NativeCrc32.c
> Done Building Project
> "D:\hdp2\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj"
> (default targets) -- FAILED.
> Done Building Project
> "D:\hdp2\hadoop-common-project\hadoop-common\src\main\native\native.sln"
> (default targets) -- FAILED.{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira