[
https://issues.apache.org/jira/browse/HDFS-16654?focusedWorklogId=791643&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-791643
]
ASF GitHub Bot logged work on HDFS-16654:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Jul/22 10:41
Start Date: 16/Jul/22 10:41
Worklog Time Spent: 10m
Work Description: GauthamBanasandra commented on PR #4538:
URL: https://github.com/apache/hadoop/pull/4538#issuecomment-1186148893
@iwasakims I'm able to verify it on my Windows system -
```
Performing C SOURCE FILE Test HAS_NEW_ENOUGH_OPENSSL succeeded with the
following output:
Change Dir:
H:/hadoop-hdfs-project/hadoop-hdfs-native-client/src/out/build/x64-Debug/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual
Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe cmTC_8aec5.vcxproj
/p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m &&
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30139 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.c
cl /c /ID:\projects\openssl\openssl\include /Zi /W4 /WX-
/diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D _CRT_NONSTDC_NO_DEPRECATE
/D _CRT_SECURE_NO_WARNINGS /D WIN32_LEAN_AND_MEAN /D HAS_NEW_ENOUGH_OPENSSL /D
"CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MT /GS /fp:precise /Zc:wchar_t
/Zc:forScope /Zc:inline /Fo"cmTC_8aec5.dir\Debug\\"
/Fd"cmTC_8aec5.dir\Debug\vc142.pdb" /external:W4 /Gd /TC /wd4100 /wd4127
/errorReport:queue
"H:\hadoop-hdfs-project\hadoop-hdfs-native-client\src\out\build\x64-Debug\CMakeFiles\CMakeTmp\src.c"
H:\hadoop-hdfs-project\hadoop-hdfs-native-client\src\out\build\x64-Debug\CMakeFiles\CMakeTmp\src.c(2,42):
warning C4550: expression evaluates to a function which is missing an argument
list
[H:\hadoop-hdfs-project\hadoop-hdfs-native-client\src\out\build\x64-Debug\CMakeFiles\CMakeTmp\cmTC_8aec5.vcxproj]
cmTC_8aec5.vcxproj ->
H:\hadoop-hdfs-project\hadoop-hdfs-native-client\src\out\build\x64-Debug\CMakeFiles\CMakeTmp\Debug\cmTC_8aec5.exe
Source file was:
#include <openssl/evp.h>
int main(int argc, char **argv) { return !EVP_aes_256_ctr; }
```
[CMakeOutput.log](https://github.com/apache/hadoop/files/9125590/CMakeOutput.log)
Issue Time Tracking
-------------------
Worklog Id: (was: 791643)
Time Spent: 1h 50m (was: 1h 40m)
> Link OpenSSL lib for CMake deps check
> -------------------------------------
>
> Key: HDFS-16654
> URL: https://issues.apache.org/jira/browse/HDFS-16654
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: libhdfs++
> Affects Versions: 3.4.0
> Environment: Windows 10
> Reporter: Gautham Banasandra
> Assignee: Gautham Banasandra
> Priority: Major
> Labels: libhdfscpp, pull-request-available
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> CMake checks whether the required components of OpenSSL are available prior
> to building HDFS native client -
> https://github.com/apache/hadoop/blob/fac895828f714b5587b57900d588acac69880c1e/hadoop-hdfs-project/hadoop-hdfs-native-client/src/CMakeLists.txt#L130
> {code}
> check_c_source_compiles("#include
> \"${OPENSSL_INCLUDE_DIR}/openssl/evp.h\"\nint main(int argc, char **argv) {
> return !EVP_aes_256_ctr; }" HAS_NEW_ENOUGH_OPENSSL)
> {code}
> This check compiles but fails while linking on Windows -
> {code}
> src.obj : error LNK2019: unresolved external symbol EVP_aes_256_ctr
> referenced in function main
> [H:\hadoop-hdfs-project\hadoop-hdfs-native-client\src\out\build\x64-Debug\CMakeFiles\CMakeTmp\cmTC_e391b.vcxproj]
> H:\hadoop-hdfs-project\hadoop-hdfs-native-client\src\out\build\x64-Debug\CMakeFiles\CMakeTmp\Debug\cmTC_e391b.exe
> : fatal error LNK1120: 1 unresolved externals
> [H:\hadoop-hdfs-project\hadoop-hdfs-native-client\src\out\build\x64-Debug\CMakeFiles\CMakeTmp\cmTC_e391b.vcxproj]
> Source file was:
> #include <openssl/evp.h>
> int main(int argc, char **argv) { return !EVP_aes_256_ctr; }
> {code}
> Thus, we need to link to the OpenSSL library prior to running this check.
> Please note that this check doesn't fail on Linux since CMake is able to pick
> it up from the standard location where libs are installed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]