{"action":"created","issue":{"url":"https://api.github.com/repos/chrisdew/protobuf/issues/54","repository_url":"https://api.github.com/repos/chrisdew/protobuf","labels_url":"https://api.github.com/repos/chrisdew/protobuf/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/chrisdew/protobuf/issues/54/comments","events_url":"https://api.github.com/repos/chrisdew/protobuf/issues/54/events","html_url":"https://github.com/chrisdew/protobuf/issues/54","id":161986810,"number":54,"title":"on MacOS, node v4.4.2::  [Release/obj.target/protobuf_for_node/protobuf_for_node.o] Error 1","user":{"login":"yi","id":9838,"avatar_url":"https://avatars.githubusercontent.com/u/9838?v=3","gravatar_id":"","url":"https://api.github.com/users/yi","html_url":"https://github.com/yi","followers_url":"https://api.github.com/users/yi/followers","following_url":"https://api.github.com/users/yi/following{/other_user}","gists_url":"https://api.github.com/users/yi/gists{/gist_id}","starred_url":"https://api.github.com/users/yi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yi/subscriptions","organizations_url":"https://api.github.com/users/yi/orgs","repos_url":"https://api.github.com/users/yi/repos","events_url":"https://api.github.com/users/yi/events{/privacy}","received_events_url":"https://api.github.com/users/yi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-23T18:08:35Z","updated_at":"2016-07-20T09:03:55Z","closed_at":null,"body":"\r\n```\r\n5 warnings generated.\r\n  CXX(target) Release/obj.target/protobuf_lite/protobuf/src/google/protobuf/io/zero_copy_stream.o\r\n  CXX(target) Release/obj.target/protobuf_lite/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.o\r\n../protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:159:16: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]\r\n  if (old_size < target_->capacity()) {\r\n      ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~\r\n../protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:179:3: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]\r\n  GOOGLE_CHECK_LE(count, target_->size());\r\n  ^               ~~~~~  ~~~~~~~~~~~~~~~\r\n../protobuf/src/google/protobuf/stubs/common.h:712:48: note: expanded from macro 'GOOGLE_CHECK_LE'\r\n#define GOOGLE_CHECK_LE(A, B) GOOGLE_CHECK((A) <= (B))\r\n                                            ~  ^   ~\r\n../protobuf/src/google/protobuf/stubs/common.h:708:26: note: expanded from macro 'GOOGLE_CHECK'\r\n  GOOGLE_LOG_IF(FATAL, !(EXPRESSION)) << \"CHECK failed: \" #EXPRESSION \": \"\r\n                         ^~~~~~~~~~\r\n../protobuf/src/google/protobuf/stubs/common.h:705:5: note: expanded from macro 'GOOGLE_LOG_IF'\r\n  !(CONDITION) ? (void)0 : GOOGLE_LOG(LEVEL)\r\n    ^~~~~~~~~\r\n2 warnings generated.\r\n  LIBTOOL-STATIC Release/protobuf_lite.a\r\n  CXX(target) Release/obj.target/protobuf_for_node/protobuf_for_node.o\r\nIn file included from ../protobuf_for_node.cc:22:\r\n../node_modules/nan/nan.h:337:54: error: too many arguments to function call, expected at most 2, have 4\r\n    return v8::Signature::New(nan_isolate, receiver, argc, argv);\r\n           ~~~~~~~~~~~~~~~~~~                        ^~~~~~~~~~\r\n/Users/ty/.node-gyp/4.4.2/include/node/v8.h:4675:3: note: 'New' declared here\r\n  static Local<Signature> New(\r\n  ^\r\nIn file included from ../protobuf_for_node.cc:22:\r\n../node_modules/nan/nan.h:409:19: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?\r\n      v8::String::ExternalAsciiStringResource *resource) {\r\n      ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n                  ExternalStringResource\r\n/Users/ty/.node-gyp/4.4.2/include/node/v8.h:2210:19: note: 'ExternalStringResource' declared here\r\n  class V8_EXPORT ExternalStringResource\r\n                  ^\r\nIn file included from ../protobuf_for_node.cc:22:\r\n../node_modules/nan/nan.h:408:36: error: redefinition of 'NanNew'\r\n  NAN_INLINE v8::Local<v8::String> NanNew(\r\n                                   ^\r\n../node_modules/nan/nan.h:403:36: note: previous definition is here\r\n  NAN_INLINE v8::Local<v8::String> NanNew(\r\n                                   ^\r\n../node_modules/nan/nan.h:427:3: error: redefinition of 'NanNew'\r\n  NanNew<v8::StringObject, v8::Handle<v8::String> >(\r\n  ^\r\n../node_modules/nan/nan.h:420:3: note: previous definition is here\r\n  NanNew<v8::StringObject, v8::Local<v8::String> >(\r\n  ^\r\n../node_modules/nan/nan.h:444:36: error: redefinition of 'NanNew'\r\n  NAN_INLINE v8::Local<v8::RegExp> NanNew(\r\n                                   ^\r\n../node_modules/nan/nan.h:438:36: note: previous definition is here\r\n  NAN_INLINE v8::Local<v8::RegExp> NanNew(\r\n                                   ^\r\n../node_modules/nan/nan.h:456:36: error: redefinition of 'NanNew'\r\n  NAN_INLINE v8::Local<v8::RegExp> NanNew(\r\n                                   ^\r\n../node_modules/nan/nan.h:450:36: note: previous definition is here\r\n  NAN_INLINE v8::Local<v8::RegExp> NanNew(\r\n                                   ^\r\n../node_modules/nan/nan.h:767:13: error: no member named 'smalloc' in namespace 'node'\r\n    , node::smalloc::FreeCallback callback\r\n      ~~~~~~^\r\n../node_modules/nan/nan.h:777:12: error: no matching function for call to 'New'\r\n    return node::Buffer::New(nan_isolate, data, size);\r\n           ^~~~~~~~~~~~~~~~~\r\n/Users/ty/.node-gyp/4.4.2/include/node/node_buffer.h:31:40: note: candidate function not viable: no known conversion from 'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument\r\nNODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                       ^\r\n/Users/ty/.node-gyp/4.4.2/include/node/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier\r\nNODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                       ^\r\n/Users/ty/.node-gyp/4.4.2/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were provided\r\nNODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);\r\n                                       ^\r\n/Users/ty/.node-gyp/4.4.2/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were provided\r\nNODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                       ^\r\nIn file included from ../protobuf_for_node.cc:22:\r\n../node_modules/nan/nan.h:781:12: error: no viable conversion from returned value of type 'v8::MaybeLocal<v8::Object>' to function return type 'v8::Local<v8::Object>'\r\n    return node::Buffer::New(nan_isolate, size);\r\n           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ty/.node-gyp/4.4.2/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument\r\nclass Local {\r\n      ^\r\n/Users/ty/.node-gyp/4.4.2/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument\r\n/Users/ty/.node-gyp/4.4.2/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'\r\n  V8_INLINE Local(Local<S> that)\r\n            ^\r\n/Users/ty/.node-gyp/4.4.2/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S *' against 'v8::MaybeLocal<v8::Object>'\r\n  V8_INLINE Local(S* that)\r\n            ^\r\nIn file included from ../protobuf_for_node.cc:22:\r\n../node_modules/nan/nan.h:788:26: error: no member named 'Use' in namespace 'node::Buffer'\r\n    return node::Buffer::Use(nan_isolate, data, size);\r\n           ~~~~~~~~~~~~~~^\r\n../node_modules/nan/nan.h:1728:12: error: no member named 'IsExternalAscii' in 'v8::String'; did you mean 'IsExternal'?\r\n  if (str->IsExternalAscii()) {\r\n           ^~~~~~~~~~~~~~~\r\n           IsExternal\r\n/Users/ty/.node-gyp/4.4.2/include/node/v8.h:2174:8: note: 'IsExternal' declared here\r\n  bool IsExternal() const;\r\n       ^\r\nIn file included from ../protobuf_for_node.cc:22:\r\n../node_modules/nan/nan.h:1729:23: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?\r\n    const v8::String::ExternalAsciiStringResource* ext;\r\n          ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n                      ExternalStringResource\r\n/Users/ty/.node-gyp/4.4.2/include/node/v8.h:2210:19: note: 'ExternalStringResource' declared here\r\n  class V8_EXPORT ExternalStringResource\r\n                  ^\r\nIn file included from ../protobuf_for_node.cc:22:\r\n../node_modules/nan/nan.h:1730:16: error: no member named 'GetExternalAsciiStringResource' in 'v8::String'\r\n    ext = str->GetExternalAsciiStringResource();\r\n          ~~~  ^\r\n../node_modules/nan/nan.h:1731:11: error: assigning to 'const char *' from incompatible type 'const uint16_t *' (aka 'const unsigned short *')\r\n    *data = ext->data();\r\n          ^ ~~~~~~~~~~~\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/chrisdew/protobuf/issues/comments/233893584","html_url":"https://github.com/chrisdew/protobuf/issues/54#issuecomment-233893584","issue_url":"https://api.github.com/repos/chrisdew/protobuf/issues/54","id":233893584,"user":{"login":"DJLectr0","id":5339762,"avatar_url":"https://avatars.githubusercontent.com/u/5339762?v=3","gravatar_id":"","url":"https://api.github.com/users/DJLectr0","html_url":"https://github.com/DJLectr0","followers_url":"https://api.github.com/users/DJLectr0/followers","following_url":"https://api.github.com/users/DJLectr0/following{/other_user}","gists_url":"https://api.github.com/users/DJLectr0/gists{/gist_id}","starred_url":"https://api.github.com/users/DJLectr0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DJLectr0/subscriptions","organizations_url":"https://api.github.com/users/DJLectr0/orgs","repos_url":"https://api.github.com/users/DJLectr0/repos","events_url":"https://api.github.com/users/DJLectr0/events{/privacy}","received_events_url":"https://api.github.com/users/DJLectr0/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T09:03:55Z","updated_at":"2016-07-20T09:03:55Z","body":"I am having the same problem with node v6.2.1 and Mavericks."}}
{"actor":{"display_login":"DJLectr0"}}