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?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]