[
https://issues.apache.org/jira/browse/HDFS-16736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17582599#comment-17582599
]
ASF GitHub Bot commented on HDFS-16736:
---------------------------------------
GauthamBanasandra opened a new pull request, #4782:
URL: https://github.com/apache/hadoop/pull/4782
* This PR link libhdfspp project to Boost
libraries to fix unresolved external symbols
errors.
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
The compilation of HDFS Native Client fails on Windows 10 due to the
following error -
```
[exec]
"H:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\logging_test.vcxproj"
(default target) (105) ->
[exec] rpc.lib(rpc_engine.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __cdecl
boost::gregorian::greg_month::greg_month(unsigned short)"
(__imp_??0greg_month@gregorian@boost@@QEAA@G@Z) referenced in function
"private: static class boost::posix_time::ptime __cdecl
boost::date_time::microsec_clock<class
boost::posix_time::ptime>::create_time(struct tm * (__cdecl*)(__int64 const
*,struct tm *))"
(?create_time@?$microsec_clock@Vptime@posix_time@boost@@@date_time@boost@@CA?AVptime@posix_time@3@P6APEAUtm@@PEB_JPEAU6@@Z@Z)
[H:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\logging_test.vcxproj]
[exec] rpc.lib(request.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __cdecl
boost::gregorian::greg_month::greg_month(unsigned short)"
(__imp_??0greg_month@gregorian@boost@@QEAA@G@Z)
[H:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\logging_test.vcxproj]
[exec]
H:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\RelWithDebInfo\logging_test.exe
: fatal error LNK1120: 1 unresolved externals
[H:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\logging_test.vcxproj]
```
This PR links `libhdfspp` against the Boost library to resolve this error.
### How was this patch tested?
### For code changes:
- [x] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
> Link to Boost library in libhdfspp
> ----------------------------------
>
> Key: HDFS-16736
> URL: https://issues.apache.org/jira/browse/HDFS-16736
> 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
>
> The compilation of HDFS Native Client fails on Windows 10 due to the
> following error -
> {code}
> [exec]
> "H:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\logging_test.vcxproj"
> (default target) (105) ->
> [exec] rpc.lib(rpc_engine.obj) : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __cdecl
> boost::gregorian::greg_month::greg_month(unsigned short)"
> (__imp_??0greg_month@gregorian@boost@@QEAA@G@Z) referenced in function
> "private: static class boost::posix_time::ptime __cdecl
> boost::date_time::microsec_clock<class
> boost::posix_time::ptime>::create_time(struct tm * (__cdecl*)(__int64 const
> *,struct tm *))"
> (?create_time@?$microsec_clock@Vptime@posix_time@boost@@@date_time@boost@@CA?AVptime@posix_time@3@P6APEAUtm@@PEB_JPEAU6@@Z@Z)
>
> [H:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\logging_test.vcxproj]
> [exec] rpc.lib(request.obj) : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: __cdecl
> boost::gregorian::greg_month::greg_month(unsigned short)"
> (__imp_??0greg_month@gregorian@boost@@QEAA@G@Z)
> [H:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\logging_test.vcxproj]
> [exec]
> H:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\RelWithDebInfo\logging_test.exe
> : fatal error LNK1120: 1 unresolved externals
> [H:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfspp\tests\logging_test.vcxproj]
> {code}
> Thus, we need to link against the Boost library to resolve this error.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]