Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/13281


Change subject: [master_path_handlers] fix build on macOS
......................................................................

[master_path_handlers] fix build on macOS

A stopgap solution for EasyJson in case when 'size_t' is not the same
type as 'uint64_t'.  As an alternative, it would be possible to handle
that in a more generic way in easy_json.cc, but std::enable_if is not
applicable there.  The option of putting explicit instantiation of
template member function after its specialization and avoiding
a warning (-Winstantiation-after-specialization) might be a way to go.

This is a follow-up to fd6155fc00de48d17a65aafd79fbbad584a4f837.

After the patch mentioned above, but prior to this fix, an attempt to
build on macOS would fail with a linker error like below:

Undefined symbols for architecture x86_64:
  "kudu::EasyJson& kudu::EasyJson::operator=<unsigned long>(unsigned long)", 
referenced from:
      
kudu::master::MasterPathHandlers::HandleTablePage(kudu::WebCallbackRegistry::WebRequest
 const&, kudu::WebCallbackRegistry::WebResponse*) in master_path_handlers.cc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Change-Id: Ica806031be9af6cc31d9654d3eaa7ac98f616420
---
M src/kudu/master/master_path_handlers.cc
1 file changed, 6 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/81/13281/1
--
To view, visit http://gerrit.cloudera.org:8080/13281
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ica806031be9af6cc31d9654d3eaa7ac98f616420
Gerrit-Change-Number: 13281
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to