Guest User

groovebasin

a guest
Feb 18th, 2015
222
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > groovebasin@1.5.0 build /tmp/makepkg/nodejs-groovebasin/src/groovebasin-1.5.0
  2. > npm install && ./build
  3.  
  4. npm WARN engine groove@2.2.7: wanted: {"node":">=0.10.18 <0.11.0"} (current: {"node":"0.12.0","npm":"2.5.1"})
  5. /
  6. > groove@2.2.7 install /tmp/makepkg/nodejs-groovebasin/src/groovebasin-1.5.0/node_modules/groove
  7. > node-gyp rebuild
  8.  
  9. child_process: customFds option is deprecated, use stdio instead.
  10. make: Entering directory '/tmp/makepkg/nodejs-groovebasin/src/groovebasin-1.5.0/node_modules/groove/build'
  11. CXX(target) Release/obj.target/groove/src/groove.o
  12. CXX(target) Release/obj.target/groove/src/gn_file.o
  13. CXX(target) Release/obj.target/groove/src/gn_playlist.o
  14. In file included from ../src/gn_file.cc:2:0:
  15. ../src/gn_file.h:8:40: error: expected class-name before ‘{’ token
  16. class GNFile : public node::ObjectWrap {
  17. ^
  18. In file included from ../src/gn_playlist.cc:2:0:
  19. ../src/gn_playlist.h:8:44: error: expected class-name before ‘{’ token
  20. class GNPlaylist : public node::ObjectWrap {
  21. ^
  22. ../src/gn_file.h:13:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  23. static v8::Handle<v8::Value> Open(const v8::Arguments& args);
  24. ^
  25. ../src/gn_playlist.h:13:55: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  26. static v8::Handle<v8::Value> Create(const v8::Arguments& args);
  27. ^
  28. ../src/gn_file.h:21:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  29. static v8::Handle<v8::Value> New(const v8::Arguments& args);
  30. ^
  31. ../src/gn_playlist.h:23:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  32. static v8::Handle<v8::Value> New(const v8::Arguments& args);
  33. ^
  34. ../src/gn_file.h:24:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  35. const v8::AccessorInfo &info);
  36. ^
  37. ../src/gn_playlist.h:26:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  38. const v8::AccessorInfo &info);
  39. ^
  40. ../src/gn_file.h:26:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  41. const v8::AccessorInfo &info);
  42. ^
  43. ../src/gn_playlist.h:28:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  44. const v8::AccessorInfo &info);
  45. ^
  46. ../src/gn_playlist.h:30:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  47. static v8::Handle<v8::Value> Playlist(const v8::Arguments& args);
  48. ^
  49. ../src/gn_file.h:28:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  50. const v8::AccessorInfo &info);
  51. ^
  52. ../src/gn_playlist.h:31:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  53. static v8::Handle<v8::Value> Play(const v8::Arguments& args);
  54. ^
  55. ../src/gn_file.h:30:54: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  56. static v8::Handle<v8::Value> Close(const v8::Arguments& args);
  57. ^
  58. ../src/gn_playlist.h:32:54: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  59. static v8::Handle<v8::Value> Pause(const v8::Arguments& args);
  60. ^
  61. ../src/gn_file.h:31:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  62. static v8::Handle<v8::Value> Duration(const v8::Arguments& args);
  63. ^
  64. ../src/gn_playlist.h:33:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  65. static v8::Handle<v8::Value> Seek(const v8::Arguments& args);
  66. ^
  67. ../src/gn_file.h:32:60: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  68. static v8::Handle<v8::Value> GetMetadata(const v8::Arguments& args);
  69. ^
  70. ../src/gn_playlist.h:34:55: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  71. static v8::Handle<v8::Value> Insert(const v8::Arguments& args);
  72. ^
  73. ../src/gn_file.h:33:60: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  74. static v8::Handle<v8::Value> SetMetadata(const v8::Arguments& args);
  75. ^
  76. ../src/gn_playlist.h:35:55: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  77. static v8::Handle<v8::Value> Remove(const v8::Arguments& args);
  78. ^
  79. ../src/gn_file.h:34:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  80. static v8::Handle<v8::Value> Metadata(const v8::Arguments& args);
  81. ^
  82. ../src/gn_playlist.h:36:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  83. static v8::Handle<v8::Value> Position(const v8::Arguments& args);
  84. ^
  85. ../src/gn_file.h:35:59: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  86. static v8::Handle<v8::Value> ShortNames(const v8::Arguments& args);
  87. ^
  88. ../src/gn_playlist.h:37:63: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  89. static v8::Handle<v8::Value> DecodePosition(const v8::Arguments& args);
  90. ^
  91. ../src/gn_file.h:36:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  92. static v8::Handle<v8::Value> Save(const v8::Arguments& args);
  93. ^
  94. ../src/gn_playlist.h:38:56: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  95. static v8::Handle<v8::Value> Playing(const v8::Arguments& args);
  96. ^
  97. ../src/gn_playlist.h:39:54: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  98. static v8::Handle<v8::Value> Clear(const v8::Arguments& args);
  99. ^
  100. ../src/gn_playlist.h:40:54: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  101. static v8::Handle<v8::Value> Count(const v8::Arguments& args);
  102. ^
  103. ../src/gn_playlist.h:41:60: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  104. static v8::Handle<v8::Value> SetItemGain(const v8::Arguments& args);
  105. ^
  106. ../src/gn_playlist.h:42:60: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  107. static v8::Handle<v8::Value> SetItemPeak(const v8::Arguments& args);
  108. ^
  109. ../src/gn_playlist.h:43:56: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  110. static v8::Handle<v8::Value> SetGain(const v8::Arguments& args);
  111. ^
  112. ../src/gn_playlist.h:44:60: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  113. static v8::Handle<v8::Value> SetFillMode(const v8::Arguments& args);
  114. ^
  115. In file included from ../src/gn_playlist.cc:3:0:
  116. ../src/gn_playlist_item.h:8:48: error: expected class-name before ‘{’ token
  117. class GNPlaylistItem : public node::ObjectWrap {
  118. ^
  119. ../src/gn_playlist_item.h:19:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  120. static v8::Handle<v8::Value> New(const v8::Arguments& args);
  121. ^
  122. ../src/gn_playlist_item.h:22:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  123. const v8::AccessorInfo &info);
  124. ^
  125. ../src/gn_playlist_item.h:24:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  126. const v8::AccessorInfo &info);
  127. ^
  128. ../src/gn_playlist_item.h:26:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  129. const v8::AccessorInfo &info);
  130. ^
  131. ../src/gn_playlist_item.h:28:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  132. const v8::AccessorInfo &info);
  133. ^
  134. In file included from ../src/gn_playlist.cc:4:0:
  135. ../src/gn_file.h:8:40: error: expected class-name before ‘{’ token
  136. class GNFile : public node::ObjectWrap {
  137. ^
  138. ../src/gn_file.h:13:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  139. static v8::Handle<v8::Value> Open(const v8::Arguments& args);
  140. ^
  141. ../src/gn_file.h:21:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  142. static v8::Handle<v8::Value> New(const v8::Arguments& args);
  143. ^
  144. ../src/gn_file.h:24:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  145. const v8::AccessorInfo &info);
  146. ^
  147. ../src/gn_file.cc: In function ‘void AddGetter(target_t, const char*, func_t)’:
  148. ../src/gn_file.cc:13:43: error: ‘New’ is not a member of ‘v8::String’
  149. tpl->PrototypeTemplate()->SetAccessor(String::New(name), fn);
  150. ^
  151. ../src/gn_file.h:26:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  152. const v8::AccessorInfo &info);
  153. ^
  154. ../src/gn_file.h:28:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  155. const v8::AccessorInfo &info);
  156. ^
  157. ../src/gn_file.cc: In function ‘void AddMethod(target_t, const char*, func_t)’:
  158. ../src/gn_file.cc:18:35: error: ‘NewSymbol’ is not a member of ‘v8::String’
  159. tpl->PrototypeTemplate()->Set(String::NewSymbol(name),
  160. ^
  161. ../src/gn_file.h:30:54: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  162. static v8::Handle<v8::Value> Close(const v8::Arguments& args);
  163. ^
  164. ../src/gn_file.h:31:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  165. static v8::Handle<v8::Value> Duration(const v8::Arguments& args);
  166. ^
  167. ../src/gn_file.cc: In static member function ‘static void GNFile::Init()’:
  168. ../src/gn_file.cc:24:60: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
  169. Local<FunctionTemplate> tpl = FunctionTemplate::New(New);
  170. ^
  171. ../src/gn_file.cc:24:60: note: candidate is:
  172. ../src/gn_file.h:32:60: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  173. static v8::Handle<v8::Value> GetMetadata(const v8::Arguments& args);
  174. ^
  175. ../src/gn_file.h:33:60: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  176. static v8::Handle<v8::Value> SetMetadata(const v8::Arguments& args);
  177. ^
  178. ../src/gn_file.h:34:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  179. static v8::Handle<v8::Value> Metadata(const v8::Arguments& args);
  180. ^
  181. ../src/gn_file.h:35:59: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  182. static v8::Handle<v8::Value> ShortNames(const v8::Arguments& args);
  183. ^
  184. ../src/gn_file.h:36:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  185. static v8::Handle<v8::Value> Save(const v8::Arguments& args);
  186. ^
  187. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  188. from ../src/gn_file.cc:1:
  189. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)
  190. static Local<FunctionTemplate> New(
  191. ^
  192. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&)’ to ‘v8::Isolate*’
  193. ../src/gn_file.cc:25:23: error: ‘NewSymbol’ is not a member of ‘v8::String’
  194. tpl->SetClassName(String::NewSymbol("GrooveFile"));
  195. ^
  196. ../src/gn_file.cc:40:63: error: no matching function for call to ‘v8::Persistent<v8::Function>::New(v8::Local<v8::Function>)’
  197. constructor = Persistent<Function>::New(tpl->GetFunction());
  198. ^
  199. ../src/gn_file.cc:40:63: note: candidate is:
  200. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  201. from ../src/gn_file.cc:1:
  202. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:5809:4: note: static T* v8::PersistentBase<T>::New(v8::Isolate*, T*) [with T = v8::Function]
  203. T* PersistentBase<T>::New(Isolate* isolate, T* that) {
  204. ^
  205. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:5809:4: note: candidate expects 2 arguments, 1 provided
  206. ../src/gn_file.cc: At global scope:
  207. ../src/gn_file.cc:43:33: error: ‘Arguments’ does not name a type
  208. Handle<Value> GNFile::New(const Arguments& args) {
  209. ^
  210. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  211. from ../src/gn_file.cc:1:
  212. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNFile::New(const int&)’:
  213. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  214. V8_INLINE HandleScope() {}
  215. ^
  216. ../src/gn_file.cc:44:17: error: within this context
  217. HandleScope scope;
  218. ^
  219. ../src/gn_playlist.cc: In function ‘void AddGetter(target_t, const char*, func_t)’:
  220. ../src/gn_playlist.cc:21:43: error: ‘NewSymbol’ is not a member of ‘v8::String’
  221. tpl->PrototypeTemplate()->SetAccessor(String::NewSymbol(name), fn);
  222. ^
  223. ../src/gn_file.cc:47:10: error: ‘class GNFile’ has no member named ‘Wrap’
  224. obj->Wrap(args.This());
  225. ^
  226. ../src/gn_file.cc:47:20: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  227. obj->Wrap(args.This());
  228. ^
  229. ../src/gn_file.cc:49:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  230. return scope.Close(args.This());
  231. ^
  232. ../src/gn_file.cc:49:29: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  233. return scope.Close(args.This());
  234. ^
  235. ../src/gn_playlist.cc: In function ‘void AddMethod(target_t, const char*, func_t)’:
  236. ../src/gn_playlist.cc:26:35: error: ‘NewSymbol’ is not a member of ‘v8::String’
  237. tpl->PrototypeTemplate()->Set(String::NewSymbol(name),
  238. ^
  239. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  240. from ../src/gn_file.cc:1:
  241. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNFile::NewInstance(GrooveFile*)’:
  242. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  243. V8_INLINE HandleScope() {}
  244. ^
  245. ../src/gn_playlist.cc: In static member function ‘static void GNPlaylist::Init()’:
  246. ../src/gn_playlist.cc:32:60: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
  247. Local<FunctionTemplate> tpl = FunctionTemplate::New(New);
  248. ^
  249. ../src/gn_file.cc:53:17: error: within this context
  250. HandleScope scope;
  251. ^
  252. ../src/gn_playlist.cc:32:60: note: candidate is:
  253. ../src/gn_file.cc:55:41: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Function>’
  254. Local<Object> instance = constructor->NewInstance();
  255. ^
  256. ../src/gn_file.cc:57:29: error: ‘node::ObjectWrap’ has not been declared
  257. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(instance);
  258. ^
  259. ../src/gn_file.cc:57:54: error: expected primary-expression before ‘>’ token
  260. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(instance);
  261. ^
  262. ../src/gn_file.cc:60:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  263. return scope.Close(instance);
  264. ^
  265. ../src/gn_file.cc: At global scope:
  266. ../src/gn_file.cc:63:62: error: ‘AccessorInfo’ does not name a type
  267. Handle<Value> GNFile::GetDirty(Local<String> property, const AccessorInfo &info) {
  268. ^
  269. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  270. from ../src/gn_playlist.cc:1:
  271. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)
  272. static Local<FunctionTemplate> New(
  273. ^
  274. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&)’ to ‘v8::Isolate*’
  275. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  276. from ../src/gn_file.cc:1:
  277. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNFile::GetDirty(v8::Local<v8::String>, const int&)’:
  278. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  279. V8_INLINE HandleScope() {}
  280. ^
  281. ../src/gn_file.cc:64:17: error: within this context
  282. HandleScope scope;
  283. ^
  284. ../src/gn_playlist.cc:33:23: error: ‘NewSymbol’ is not a member of ‘v8::String’
  285. tpl->SetClassName(String::NewSymbol("GroovePlaylist"));
  286. ^
  287. ../src/gn_file.cc:65:29: error: ‘node::ObjectWrap’ has not been declared
  288. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(info.This());
  289. ^
  290. ../src/gn_file.cc:65:54: error: expected primary-expression before ‘>’ token
  291. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(info.This());
  292. ^
  293. ../src/gn_file.cc:65:61: error: request for member ‘This’ in ‘info’, which is of non-class type ‘const int’
  294. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(info.This());
  295. ^
  296. ../src/gn_file.cc:66:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  297. return scope.Close(Boolean::New(gn_file->file->dirty));
  298. ^
  299. ../src/gn_file.cc:66:57: error: no matching function for call to ‘v8::Boolean::New(int&)’
  300. return scope.Close(Boolean::New(gn_file->file->dirty));
  301. ^
  302. ../src/gn_file.cc:66:57: note: candidate is:
  303. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  304. from ../src/gn_file.cc:1:
  305. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:6194:17: note: static v8::Handle<v8::Boolean> v8::Boolean::New(v8::Isolate*, bool)
  306. Handle<Boolean> Boolean::New(Isolate* isolate, bool value) {
  307. ^
  308. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:6194:17: note: candidate expects 2 arguments, 1 provided
  309. ../src/gn_file.cc: At global scope:
  310. ../src/gn_file.cc:69:59: error: ‘AccessorInfo’ does not name a type
  311. Handle<Value> GNFile::GetId(Local<String> property, const AccessorInfo &info) {
  312. ^
  313. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  314. from ../src/gn_file.cc:1:
  315. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNFile::GetId(v8::Local<v8::String>, const int&)’:
  316. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  317. V8_INLINE HandleScope() {}
  318. ^
  319. ../src/gn_file.cc:70:17: error: within this context
  320. HandleScope scope;
  321. ^
  322. ../src/gn_file.cc:71:29: error: ‘node::ObjectWrap’ has not been declared
  323. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(info.This());
  324. ^
  325. ../src/gn_file.cc:71:54: error: expected primary-expression before ‘>’ token
  326. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(info.This());
  327. ^
  328. ../src/gn_file.cc:71:61: error: request for member ‘This’ in ‘info’, which is of non-class type ‘const int’
  329. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(info.This());
  330. ^
  331. ../src/gn_file.cc:74:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  332. return scope.Close(String::New(buf));
  333. ^
  334. ../src/gn_file.cc:74:24: error: ‘New’ is not a member of ‘v8::String’
  335. return scope.Close(String::New(buf));
  336. ^
  337. ../src/gn_file.cc: At global scope:
  338. ../src/gn_file.cc:77:65: error: ‘AccessorInfo’ does not name a type
  339. Handle<Value> GNFile::GetFilename(Local<String> property, const AccessorInfo &info) {
  340. ^
  341. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  342. from ../src/gn_file.cc:1:
  343. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNFile::GetFilename(v8::Local<v8::String>, const int&)’:
  344. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  345. V8_INLINE HandleScope() {}
  346. ^
  347. ../src/gn_file.cc:78:17: error: within this context
  348. HandleScope scope;
  349. ^
  350. ../src/gn_file.cc:79:29: error: ‘node::ObjectWrap’ has not been declared
  351. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(info.This());
  352. ^
  353. ../src/gn_file.cc:79:54: error: expected primary-expression before ‘>’ token
  354. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(info.This());
  355. ^
  356. ../src/gn_file.cc:79:61: error: request for member ‘This’ in ‘info’, which is of non-class type ‘const int’
  357. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(info.This());
  358. ^
  359. ../src/gn_file.cc:80:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  360. return scope.Close(String::New(gn_file->file->filename));
  361. ^
  362. ../src/gn_playlist.cc:54:63: error: no matching function for call to ‘v8::Persistent<v8::Function>::New(v8::Local<v8::Function>)’
  363. constructor = Persistent<Function>::New(tpl->GetFunction());
  364. ^
  365. ../src/gn_file.cc:80:24: error: ‘New’ is not a member of ‘v8::String’
  366. return scope.Close(String::New(gn_file->file->filename));
  367. ^
  368. ../src/gn_playlist.cc:54:63: note: candidate is:
  369. ../src/gn_file.cc: At global scope:
  370. ../src/gn_file.cc:83:41: error: ‘Arguments’ does not name a type
  371. Handle<Value> GNFile::GetMetadata(const Arguments& args) {
  372. ^
  373. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  374. from ../src/gn_playlist.cc:1:
  375. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:5809:4: note: static T* v8::PersistentBase<T>::New(v8::Isolate*, T*) [with T = v8::Function]
  376. T* PersistentBase<T>::New(Isolate* isolate, T* that) {
  377. ^
  378. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  379. from ../src/gn_file.cc:1:
  380. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNFile::GetMetadata(const int&)’:
  381. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  382. V8_INLINE HandleScope() {}
  383. ^
  384. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:5809:4: note: candidate expects 2 arguments, 1 provided
  385. ../src/gn_file.cc:84:17: error: within this context
  386. HandleScope scope;
  387. ^
  388. ../src/gn_file.cc:86:29: error: ‘node::ObjectWrap’ has not been declared
  389. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  390. ^
  391. ../src/gn_file.cc:86:54: error: expected primary-expression before ‘>’ token
  392. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  393. ^
  394. ../src/gn_playlist.cc: At global scope:
  395. ../src/gn_playlist.cc:57:37: error: ‘Arguments’ does not name a type
  396. Handle<Value> GNPlaylist::New(const Arguments& args) {
  397. ^
  398. ../src/gn_file.cc:86:61: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  399. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  400. ^
  401. ../src/gn_file.cc:88:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  402. if (args.Length() < 1 || !args[0]->IsString()) {
  403. ^
  404. ../src/gn_file.cc:88:37: error: invalid types ‘const int[int]’ for array subscript
  405. if (args.Length() < 1 || !args[0]->IsString()) {
  406. ^
  407. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  408. from ../src/gn_playlist.cc:1:
  409. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNPlaylist::New(const int&)’:
  410. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  411. V8_INLINE HandleScope() {}
  412. ^
  413. ../src/gn_playlist.cc:58:17: error: within this context
  414. HandleScope scope;
  415. ^
  416. ../src/gn_file.cc:89:45: error: ‘New’ is not a member of ‘v8::String’
  417. ThrowException(Exception::TypeError(String::New("Expected string arg[0]")));
  418. ^
  419. ../src/gn_file.cc:89:83: error: ‘ThrowException’ was not declared in this scope
  420. ThrowException(Exception::TypeError(String::New("Expected string arg[0]")));
  421. ^
  422. ../src/gn_file.cc:90:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
  423. return scope.Close(Undefined());
  424. ^
  425. ../src/gn_playlist.cc:61:10: error: ‘class GNPlaylist’ has no member named ‘Wrap’
  426. obj->Wrap(args.This());
  427. ^
  428. ../src/gn_file.cc:90:38: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
  429. return scope.Close(Undefined());
  430. ^
  431. ../src/gn_playlist.cc:61:20: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  432. obj->Wrap(args.This());
  433. ^
  434. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  435. from ../src/gn_file.cc:1:
  436. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here
  437. friend Handle<Primitive> Undefined(Isolate* isolate);
  438. ^
  439. ../src/gn_playlist.cc:63:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  440. return scope.Close(args.This());
  441. ^
  442. ../src/gn_playlist.cc:63:29: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  443. return scope.Close(args.This());
  444. ^
  445. ../src/gn_file.cc:94:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  446. if (args.Length() >= 2) {
  447. ^
  448. ../src/gn_file.cc:95:20: error: invalid types ‘const int[int]’ for array subscript
  449. if (!args[1]->IsNumber()) {
  450. ^
  451. ../src/gn_file.cc:96:49: error: ‘New’ is not a member of ‘v8::String’
  452. ThrowException(Exception::TypeError(String::New("Expected number arg[1]")));
  453. ^
  454. ../src/gn_file.cc:96:87: error: ‘ThrowException’ was not declared in this scope
  455. ThrowException(Exception::TypeError(String::New("Expected number arg[1]")));
  456. ^
  457. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  458. from ../src/gn_playlist.cc:1:
  459. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNPlaylist::NewInstance(GroovePlaylist*)’:
  460. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  461. V8_INLINE HandleScope() {}
  462. ^
  463. ../src/gn_file.cc:97:26: error: ‘class v8::HandleScope’ has no member named ‘Close’
  464. return scope.Close(Undefined());
  465. ^
  466. ../src/gn_playlist.cc:67:17: error: within this context
  467. HandleScope scope;
  468. ^
  469. ../src/gn_file.cc:97:42: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
  470. return scope.Close(Undefined());
  471. ^
  472. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  473. from ../src/gn_file.cc:1:
  474. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here
  475. friend Handle<Primitive> Undefined(Isolate* isolate);
  476. ^
  477. ../src/gn_file.cc:99:28: error: invalid types ‘const int[int]’ for array subscript
  478. flags = (int)args[1]->NumberValue();
  479. ^
  480. ../src/gn_file.cc:102:37: error: invalid types ‘const int[int]’ for array subscript
  481. String::Utf8Value key_str(args[0]->ToString());
  482. ^
  483. ../src/gn_playlist.cc:69:41: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Function>’
  484. Local<Object> instance = constructor->NewInstance();
  485. ^
  486. ../src/gn_playlist.cc:71:37: error: ‘node::ObjectWrap’ has not been declared
  487. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(instance);
  488. ^
  489. ../src/gn_file.cc:105:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
  490. return scope.Close(String::New(groove_tag_value(tag)));
  491. ^
  492. ../src/gn_playlist.cc:71:66: error: expected primary-expression before ‘>’ token
  493. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(instance);
  494. ^
  495. ../src/gn_file.cc:105:28: error: ‘New’ is not a member of ‘v8::String’
  496. return scope.Close(String::New(groove_tag_value(tag)));
  497. ^
  498. ../src/gn_playlist.cc:74:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  499. return scope.Close(instance);
  500. ^
  501. ../src/gn_file.cc:106:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  502. return scope.Close(Null());
  503. ^
  504. ../src/gn_file.cc:106:29: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Null(v8::Isolate*)’
  505. return scope.Close(Null());
  506. ^
  507. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  508. from ../src/gn_file.cc:1:
  509. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:306:28: note: declared here
  510. friend Handle<Primitive> Null(Isolate* isolate);
  511. ^
  512. ../src/gn_playlist.cc: At global scope:
  513. ../src/gn_playlist.cc:77:63: error: ‘AccessorInfo’ does not name a type
  514. Handle<Value> GNPlaylist::GetId(Local<String> property, const AccessorInfo &info) {
  515. ^
  516. ../src/gn_file.cc: At global scope:
  517. ../src/gn_file.cc:109:41: error: ‘Arguments’ does not name a type
  518. Handle<Value> GNFile::SetMetadata(const Arguments& args) {
  519. ^
  520. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  521. from ../src/gn_playlist.cc:1:
  522. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNPlaylist::GetId(v8::Local<v8::String>, const int&)’:
  523. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  524. V8_INLINE HandleScope() {}
  525. ^
  526. ../src/gn_playlist.cc:78:17: error: within this context
  527. HandleScope scope;
  528. ^
  529. ../src/gn_playlist.cc:79:37: error: ‘node::ObjectWrap’ has not been declared
  530. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(info.This());
  531. ^
  532. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  533. from ../src/gn_file.cc:1:
  534. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNFile::SetMetadata(const int&)’:
  535. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  536. V8_INLINE HandleScope() {}
  537. ^
  538. ../src/gn_playlist.cc:79:66: error: expected primary-expression before ‘>’ token
  539. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(info.This());
  540. ^
  541. ../src/gn_file.cc:110:17: error: within this context
  542. HandleScope scope;
  543. ^
  544. ../src/gn_playlist.cc:79:73: error: request for member ‘This’ in ‘info’, which is of non-class type ‘const int’
  545. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(info.This());
  546. ^
  547. ../src/gn_file.cc:112:29: error: ‘node::ObjectWrap’ has not been declared
  548. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  549. ^
  550. ../src/gn_file.cc:112:54: error: expected primary-expression before ‘>’ token
  551. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  552. ^
  553. ../src/gn_file.cc:112:61: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  554. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  555. ^
  556. ../src/gn_file.cc:114:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  557. if (args.Length() < 1 || !args[0]->IsString()) {
  558. ^
  559. ../src/gn_playlist.cc:82:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  560. return scope.Close(String::New(buf));
  561. ^
  562. ../src/gn_file.cc:114:37: error: invalid types ‘const int[int]’ for array subscript
  563. if (args.Length() < 1 || !args[0]->IsString()) {
  564. ^
  565. ../src/gn_playlist.cc:82:24: error: ‘New’ is not a member of ‘v8::String’
  566. return scope.Close(String::New(buf));
  567. ^
  568. ../src/gn_file.cc:115:45: error: ‘New’ is not a member of ‘v8::String’
  569. ThrowException(Exception::TypeError(String::New("Expected string arg[0]")));
  570. ^
  571. ../src/gn_file.cc:115:83: error: ‘ThrowException’ was not declared in this scope
  572. ThrowException(Exception::TypeError(String::New("Expected string arg[0]")));
  573. ^
  574. ../src/gn_playlist.cc: At global scope:
  575. ../src/gn_playlist.cc:85:65: error: ‘AccessorInfo’ does not name a type
  576. Handle<Value> GNPlaylist::GetGain(Local<String> property, const AccessorInfo &info) {
  577. ^
  578. ../src/gn_file.cc:116:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
  579. return scope.Close(Undefined());
  580. ^
  581. ../src/gn_file.cc:116:38: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
  582. return scope.Close(Undefined());
  583. ^
  584. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  585. from ../src/gn_file.cc:1:
  586. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here
  587. friend Handle<Primitive> Undefined(Isolate* isolate);
  588. ^
  589. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  590. from ../src/gn_playlist.cc:1:
  591. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNPlaylist::GetGain(v8::Local<v8::String>, const int&)’:
  592. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  593. V8_INLINE HandleScope() {}
  594. ^
  595. ../src/gn_file.cc:119:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  596. if (args.Length() < 2 || !args[0]->IsString()) {
  597. ^
  598. ../src/gn_playlist.cc:86:17: error: within this context
  599. HandleScope scope;
  600. ^
  601. ../src/gn_file.cc:119:37: error: invalid types ‘const int[int]’ for array subscript
  602. if (args.Length() < 2 || !args[0]->IsString()) {
  603. ^
  604. ../src/gn_file.cc:120:45: error: ‘New’ is not a member of ‘v8::String’
  605. ThrowException(Exception::TypeError(String::New("Expected string arg[1]")));
  606. ^
  607. ../src/gn_playlist.cc:87:37: error: ‘node::ObjectWrap’ has not been declared
  608. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(info.This());
  609. ^
  610. ../src/gn_file.cc:120:83: error: ‘ThrowException’ was not declared in this scope
  611. ThrowException(Exception::TypeError(String::New("Expected string arg[1]")));
  612. ^
  613. ../src/gn_playlist.cc:87:66: error: expected primary-expression before ‘>’ token
  614. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(info.This());
  615. ^
  616. ../src/gn_file.cc:121:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
  617. return scope.Close(Undefined());
  618. ^
  619. ../src/gn_playlist.cc:87:73: error: request for member ‘This’ in ‘info’, which is of non-class type ‘const int’
  620. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(info.This());
  621. ^
  622. ../src/gn_file.cc:121:38: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
  623. return scope.Close(Undefined());
  624. ^
  625. ../src/gn_playlist.cc:88:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  626. return scope.Close(Number::New(gn_playlist->playlist->gain));
  627. ^
  628. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  629. from ../src/gn_file.cc:1:
  630. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here
  631. friend Handle<Primitive> Undefined(Isolate* isolate);
  632. ^
  633. ../src/gn_playlist.cc:88:63: error: no matching function for call to ‘v8::Number::New(double&)’
  634. return scope.Close(Number::New(gn_playlist->playlist->gain));
  635. ^
  636. ../src/gn_file.cc:125:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  637. if (args.Length() >= 3) {
  638. ^
  639. ../src/gn_playlist.cc:88:63: note: candidate is:
  640. ../src/gn_file.cc:126:20: error: invalid types ‘const int[int]’ for array subscript
  641. if (!args[2]->IsNumber()) {
  642. ^
  643. ../src/gn_file.cc:127:49: error: ‘New’ is not a member of ‘v8::String’
  644. ThrowException(Exception::TypeError(String::New("Expected number arg[2]")));
  645. ^
  646. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  647. from ../src/gn_playlist.cc:1:
  648. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
  649. static Local<Number> New(Isolate* isolate, double value);
  650. ^
  651. ../src/gn_file.cc:127:87: error: ‘ThrowException’ was not declared in this scope
  652. ThrowException(Exception::TypeError(String::New("Expected number arg[2]")));
  653. ^
  654. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:1999:24: note: candidate expects 2 arguments, 1 provided
  655. ../src/gn_file.cc:128:26: error: ‘class v8::HandleScope’ has no member named ‘Close’
  656. return scope.Close(Undefined());
  657. ^
  658. ../src/gn_file.cc:128:42: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
  659. return scope.Close(Undefined());
  660. ^
  661. ../src/gn_playlist.cc: At global scope:
  662. ../src/gn_playlist.cc:91:38: error: ‘Arguments’ does not name a type
  663. Handle<Value> GNPlaylist::Play(const Arguments& args) {
  664. ^
  665. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  666. from ../src/gn_file.cc:1:
  667. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here
  668. friend Handle<Primitive> Undefined(Isolate* isolate);
  669. ^
  670. ../src/gn_file.cc:130:28: error: invalid types ‘const int[int]’ for array subscript
  671. flags = (int)args[2]->NumberValue();
  672. ^
  673. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  674. from ../src/gn_playlist.cc:1:
  675. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNPlaylist::Play(const int&)’:
  676. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  677. V8_INLINE HandleScope() {}
  678. ^
  679. ../src/gn_file.cc:133:37: error: invalid types ‘const int[int]’ for array subscript
  680. String::Utf8Value key_str(args[0]->ToString());
  681. ^
  682. ../src/gn_playlist.cc:92:17: error: within this context
  683. HandleScope scope;
  684. ^
  685. ../src/gn_file.cc:134:37: error: invalid types ‘const int[int]’ for array subscript
  686. String::Utf8Value val_str(args[1]->ToString());
  687. ^
  688. ../src/gn_playlist.cc:93:37: error: ‘node::ObjectWrap’ has not been declared
  689. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(args.This());
  690. ^
  691. ../src/gn_playlist.cc:93:66: error: expected primary-expression before ‘>’ token
  692. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(args.This());
  693. ^
  694. ../src/gn_playlist.cc:93:73: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  695. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(args.This());
  696. ^
  697. ../src/gn_playlist.cc:95:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  698. return scope.Close(Undefined());
  699. ^
  700. ../src/gn_file.cc:137:41: error: ‘New’ is not a member of ‘v8::String’
  701. ThrowException(Exception::Error(String::New("set metadata failed")));
  702. ^
  703. ../src/gn_playlist.cc:95:34: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
  704. return scope.Close(Undefined());
  705. ^
  706. ../src/gn_file.cc:137:76: error: ‘ThrowException’ was not declared in this scope
  707. ThrowException(Exception::Error(String::New("set metadata failed")));
  708. ^
  709. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  710. from ../src/gn_playlist.cc:1:
  711. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here
  712. friend Handle<Primitive> Undefined(Isolate* isolate);
  713. ^
  714. ../src/gn_file.cc:138:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
  715. return scope.Close(Undefined());
  716. ^
  717. ../src/gn_file.cc:138:38: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
  718. return scope.Close(Undefined());
  719. ^
  720. ../src/gn_playlist.cc: At global scope:
  721. ../src/gn_playlist.cc:98:42: error: ‘Arguments’ does not name a type
  722. Handle<Value> GNPlaylist::Playlist(const Arguments& args) {
  723. ^
  724. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  725. from ../src/gn_file.cc:1:
  726. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here
  727. friend Handle<Primitive> Undefined(Isolate* isolate);
  728. ^
  729. ../src/gn_file.cc:140:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  730. return scope.Close(Undefined());
  731. ^
  732. ../src/gn_file.cc:140:34: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
  733. return scope.Close(Undefined());
  734. ^
  735. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  736. from ../src/gn_file.cc:1:
  737. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here
  738. friend Handle<Primitive> Undefined(Isolate* isolate);
  739. ^
  740. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  741. from ../src/gn_playlist.cc:1:
  742. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNPlaylist::Playlist(const int&)’:
  743. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  744. V8_INLINE HandleScope() {}
  745. ^
  746. ../src/gn_playlist.cc:99:17: error: within this context
  747. HandleScope scope;
  748. ^
  749. ../src/gn_file.cc: At global scope:
  750. ../src/gn_file.cc:143:38: error: ‘Arguments’ does not name a type
  751. Handle<Value> GNFile::Metadata(const Arguments& args) {
  752. ^
  753. ../src/gn_playlist.cc:100:37: error: ‘node::ObjectWrap’ has not been declared
  754. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(args.This());
  755. ^
  756. ../src/gn_playlist.cc:100:66: error: expected primary-expression before ‘>’ token
  757. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(args.This());
  758. ^
  759. ../src/gn_playlist.cc:100:73: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  760. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(args.This());
  761. ^
  762. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  763. from ../src/gn_file.cc:1:
  764. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNFile::Metadata(const int&)’:
  765. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  766. V8_INLINE HandleScope() {}
  767. ^
  768. ../src/gn_file.cc:144:17: error: within this context
  769. HandleScope scope;
  770. ^
  771. ../src/gn_file.cc:145:29: error: ‘node::ObjectWrap’ has not been declared
  772. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  773. ^
  774. ../src/gn_file.cc:145:54: error: expected primary-expression before ‘>’ token
  775. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  776. ^
  777. ../src/gn_file.cc:145:61: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  778. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  779. ^
  780. ../src/gn_file.cc:146:42: error: no matching function for call to ‘v8::Object::New()’
  781. Local<Object> metadata = Object::New();
  782. ^
  783. ../src/gn_file.cc:146:42: note: candidate is:
  784. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  785. from ../src/gn_file.cc:1:
  786. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:2388:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
  787. static Local<Object> New(Isolate* isolate);
  788. ^
  789. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:2388:24: note: candidate expects 1 argument, 0 provided
  790. ../src/gn_file.cc:150:23: error: ‘New’ is not a member of ‘v8::String’
  791. metadata->Set(String::New(groove_tag_key(tag)), String::New(groove_tag_value(tag)));
  792. ^
  793. ../src/gn_file.cc:150:57: error: ‘New’ is not a member of ‘v8::String’
  794. metadata->Set(String::New(groove_tag_key(tag)), String::New(groove_tag_value(tag)));
  795. ^
  796. ../src/gn_file.cc:152:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  797. return scope.Close(metadata);
  798. ^
  799. ../src/gn_file.cc: At global scope:
  800. ../src/gn_file.cc:155:40: error: ‘Arguments’ does not name a type
  801. Handle<Value> GNFile::ShortNames(const Arguments& args) {
  802. ^
  803. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  804. from ../src/gn_file.cc:1:
  805. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNFile::ShortNames(const int&)’:
  806. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  807. V8_INLINE HandleScope() {}
  808. ^
  809. ../src/gn_file.cc:156:17: error: within this context
  810. HandleScope scope;
  811. ^
  812. ../src/gn_file.cc:157:29: error: ‘node::ObjectWrap’ has not been declared
  813. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  814. ^
  815. ../src/gn_file.cc:157:54: error: expected primary-expression before ‘>’ token
  816. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  817. ^
  818. ../src/gn_file.cc:157:61: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  819. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  820. ^
  821. ../src/gn_playlist.cc:102:40: error: no matching function for call to ‘v8::Array::New()’
  822. Local<Array> playlist = Array::New();
  823. ^
  824. ../src/gn_file.cc:158:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  825. return scope.Close(String::New(groove_file_short_names(gn_file->file)));
  826. ^
  827. ../src/gn_playlist.cc:102:40: note: candidate is:
  828. ../src/gn_file.cc:158:24: error: ‘New’ is not a member of ‘v8::String’
  829. return scope.Close(String::New(groove_file_short_names(gn_file->file)));
  830. ^
  831. ../src/gn_file.cc: At global scope:
  832. ../src/gn_file.cc:161:38: error: ‘Arguments’ does not name a type
  833. Handle<Value> GNFile::Duration(const Arguments& args) {
  834. ^
  835. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  836. from ../src/gn_playlist.cc:1:
  837. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:2417:23: note: static v8::Local<v8::Array> v8::Array::New(v8::Isolate*, int)
  838. static Local<Array> New(Isolate* isolate, int length = 0);
  839. ^
  840. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:2417:23: note: candidate expects 2 arguments, 0 provided
  841. In file included from ../src/groove.cc:3:0:
  842. ../src/gn_file.h:8:40: error: expected class-name before ‘{’ token
  843. class GNFile : public node::ObjectWrap {
  844. ^
  845. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  846. from ../src/gn_file.cc:1:
  847. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNFile::Duration(const int&)’:
  848. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  849. V8_INLINE HandleScope() {}
  850. ^
  851. ../src/gn_file.cc:162:17: error: within this context
  852. HandleScope scope;
  853. ^
  854. ../src/gn_playlist.cc:107:36: error: no matching function for call to ‘v8::Number::New(int&)’
  855. playlist->Set(Number::New(i), GNPlaylistItem::NewInstance(item));
  856. ^
  857. ../src/gn_file.cc:163:29: error: ‘node::ObjectWrap’ has not been declared
  858. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  859. ^
  860. ../src/gn_playlist.cc:107:36: note: candidate is:
  861. ../src/gn_file.cc:163:54: error: expected primary-expression before ‘>’ token
  862. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  863. ^
  864. ../src/gn_file.h:13:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  865. static v8::Handle<v8::Value> Open(const v8::Arguments& args);
  866. ^
  867. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  868. from ../src/gn_playlist.cc:1:
  869. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
  870. static Local<Number> New(Isolate* isolate, double value);
  871. ^
  872. ../src/gn_file.cc:163:61: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  873. GNFile *gn_file = node::ObjectWrap::Unwrap<GNFile>(args.This());
  874. ^
  875. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:1999:24: note: candidate expects 2 arguments, 1 provided
  876. ../src/gn_file.cc:164:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  877. return scope.Close(Number::New(groove_file_duration(gn_file->file)));
  878. ^
  879. ../src/gn_file.cc:164:71: error: no matching function for call to ‘v8::Number::New(double)’
  880. return scope.Close(Number::New(groove_file_duration(gn_file->file)));
  881. ^
  882. ../src/gn_playlist.cc:112:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  883. return scope.Close(playlist);
  884. ^
  885. ../src/gn_file.cc:164:71: note: candidate is:
  886. ../src/gn_file.h:21:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  887. static v8::Handle<v8::Value> New(const v8::Arguments& args);
  888. ^
  889. ../src/gn_playlist.cc: At global scope:
  890. ../src/gn_playlist.cc:115:39: error: ‘Arguments’ does not name a type
  891. Handle<Value> GNPlaylist::Pause(const Arguments& args) {
  892. ^
  893. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  894. from ../src/gn_file.cc:1:
  895. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
  896. static Local<Number> New(Isolate* isolate, double value);
  897. ^
  898. ../src/gn_file.h:24:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  899. const v8::AccessorInfo &info);
  900. ^
  901. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:1999:24: note: candidate expects 2 arguments, 1 provided
  902. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  903. from ../src/gn_playlist.cc:1:
  904. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GNPlaylist::Pause(const int&)’:
  905. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: error: ‘v8::HandleScope::HandleScope()’ is protected
  906. V8_INLINE HandleScope() {}
  907. ^
  908. ../src/gn_file.cc: At global scope:
  909. ../src/gn_file.cc:168:5: error: ‘uv_work_t’ does not name a type
  910. uv_work_t req;
  911. ^
  912. ../src/gn_file.h:26:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  913. const v8::AccessorInfo &info);
  914. ^
  915. ../src/gn_playlist.cc:116:17: error: within this context
  916. HandleScope scope;
  917. ^
  918. ../src/gn_file.cc:173:24: error: variable or field ‘CloseAsync’ declared void
  919. static void CloseAsync(uv_work_t *req) {
  920. ^
  921. ../src/gn_file.h:28:27: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
  922. const v8::AccessorInfo &info);
  923. ^
  924. ../src/gn_file.cc:173:24: error: ‘uv_work_t’ was not declared in this scope
  925. ../src/gn_playlist.cc:117:37: error: ‘node::ObjectWrap’ has not been declared
  926. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(args.This());
  927. ^
  928. ../src/gn_file.cc:173:35: error: ‘req’ was not declared in this scope
  929. static void CloseAsync(uv_work_t *req) {
  930. ^
  931. ../src/gn_playlist.cc:117:66: error: expected primary-expression before ‘>’ token
  932. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(args.This());
  933. ^
  934. ../src/gn_file.h:30:54: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  935. static v8::Handle<v8::Value> Close(const v8::Arguments& args);
  936. ^
  937. ../src/gn_playlist.cc:117:73: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
  938. GNPlaylist *gn_playlist = node::ObjectWrap::Unwrap<GNPlaylist>(args.This());
  939. ^
  940. ../src/gn_file.h:31:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  941. static v8::Handle<v8::Value> Duration(const v8::Arguments& args);
  942. ^
  943. ../src/gn_playlist.cc:119:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
  944. return scope.Close(Undefined());
  945. ^
  946. ../src/gn_playlist.cc:119:34: error: too few arguments to function ‘v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)’
  947. return scope.Close(Undefined());
  948. ^
  949. ../src/gn_file.h:32:60: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  950. static v8::Handle<v8::Value> GetMetadata(const v8::Arguments& args);
  951. ^
  952. In file included from /home/carputer/.node-gyp/0.12.0/src/node.h:61:0,
  953. from ../src/gn_playlist.cc:1:
  954. /home/carputer/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: declared here
  955. friend Handle<Primitive> Undefined(Isolate* isolate);
  956. ^
  957. ../src/gn_file.h:33:60: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  958. static v8::Handle<v8::Value> SetMetadata(const v8::Arguments& args);
  959. ^
  960. ../src/gn_playlist.cc: At global scope:
  961. ../src/gn_playlist.cc:122:38: error: ‘Arguments’ does not name a type
  962. Handle<Value> GNPlaylist::Seek(const Arguments& args) {
  963. ^
  964. ../src/gn_file.h:34:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type
  965. static v8::Handle<v8::Value> Metadata(const v8::Arguments& args);
RAW Paste Data