enocean-js / nrce-deprecated

depricated
MIT License
2 stars 2 forks source link

Won't install under latest Node-red 0.19.5 #12

Closed davemclaughlin closed 5 years ago

davemclaughlin commented 5 years ago

There are a heap of errors when trying to install under Node-red 0.19.5 on a brand new Installation of Debian Stretch. Nodejs is V10.14.0

pi@192.168.1.159:~/.node-red$ npm install node-red-contrib-enocean

leveldown@1.7.2 install /home/pi/.node-red/node_modules/leveldown prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=10.14.0 runtime=node arch=arm platform=linux) make: Entering directory '/home/pi/.node-red/node_modules/leveldown/build' CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_impl.o In file included from /usr/include/c++/6/algorithm:62:0, from ../deps/leveldb/leveldb-1.20/db/db_impl.cc:7: /usr/include/c++/6/bits/stl_algo.h: In function ‘void std::insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::normal_iterator<long long un’: /usr/include/c++/6/bits/stl_algo.h:1837:5: note: parameter passing for argument of type ‘gnu_cxx::__normal_iterator<long long unsigned int*, std::vector >’ will change in GCC 7.1 insertion_sort(_RandomAccessIterator first, ^~~~ /usr/include/c++/6/bits/stl_algo.h:1837:5: note: parameter passing for argument of type ‘__gnu_cxx::normal_iterator<long long unsigned int, std::vector >’ will change in GCC 7.1 /usr/include/c++/6/bits/stl_algo.h:1837:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long unsigned int, std::vector >’ will change in GCC 7.1 In file included from /usr/include/c++/6/bits/stl_algo.h:61:0, from /usr/include/c++/6/algorithm:62, from ../deps/leveldb/leveldb-1.20/db/db_impl.cc:7: /usr/include/c++/6/bits/stl_heap.h: In function ‘void std::adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::normal_iterator<long long u’: /usr/include/c++/6/bits/stl_heap.h:209:5: note: parameter passing for argument of type ‘gnu_cxx::__normal_iterator<long long unsigned int*, std::vector >’ will change in GCC 7.1 adjust_heap(_RandomAccessIterator first, _Distance holeIndex, ^~~~~ In file included from /usr/include/c++/6/algorithm:62:0, from ../deps/leveldb/leveldb-1.20/db/db_impl.cc:7: /usr/include/c++/6/bits/stl_algo.h: In function ‘void std::introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::normal_iterator<long ’: /usr/include/c++/6/bits/stl_algo.h:1937:5: note: parameter passing for argument of type ‘gnu_cxx::__normal_iterator<long long unsigned int*, std::vector >’ will change in GCC 7.1 introsort_loop(_RandomAccessIterator first, ^~~~ /usr/include/c++/6/bits/stl_algo.h:1937:5: note: parameter passing for argument of type ‘__gnu_cxx::normal_iterator<long long unsigned int, std::vector >’ will change in GCC 7.1 /usr/include/c++/6/bits/stl_algo.h:1951:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long unsigned int, std::vector >’ will change in GCC 7.1 std::introsort_loop(cut, last, __depth_limit, comp); ^~~ /usr/include/c++/6/bits/stl_algo.h: In member function ‘leveldb::Status leveldb::DBImpl::Recover(leveldb::VersionEdit, bool)’: /usr/include/c++/6/bits/stl_algo.h:1965:4: note: parameter passing for argument of type ‘gnu_cxx::__normal_iterator<long long unsigned int*, std::vector >’ will change in GCC 7.1 std::introsort_loop(first, last, ^~~ /usr/include/c++/6/bits/stl_algo.h:1882:4: note: parameter passing for argument of type ‘gnu_cxx::__normal_iterator<long long unsigned int*, std::vector >’ will change in GCC 7.1 std::insertion_sort(first, first + int(_S_threshold), comp); ^~~ /usr/include/c++/6/bits/stl_algo.h:1887:2: note: parameter passing for argument of type ‘__gnu_cxx::normal_iterator<long long unsigned int, std::vector >’ will change in GCC 7.1 std::__insertion_sort(first, last, __comp); ^~~ CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_iter.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/filename.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/dbformat.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_reader.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_writer.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/memtable.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/repair.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/table_cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_edit.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_set.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/write_batch.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix_sse.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/filter_block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/format.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/merger.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/two_level_iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/arena.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/bloom.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/coding.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/comparator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/crc32c.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/filter_policy.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/hash.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/logging.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/options.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/status.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env_posix.o AR(target) Release/obj.target/deps/leveldb/leveldb.a COPY Release/leveldb.a CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-sinksource.o CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-stubs-internal.o CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy.o AR(target) Release/obj.target/deps/snappy/snappy.a COPY Release/snappy.a CXX(target) Release/obj.target/leveldown/src/batch.o In file included from ../node_modules/nan/nan.h:192:0, from ../src/batch.cc:3: ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)’: ../node_modules/nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’ return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs); ^~~~ In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:198, from ../src/batch.cc:3: ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(v8::Local)’: ../node_modules/nan/nan_implementation_12_inl.h:337:37: warning: ‘static v8::Local v8::StringObject::New(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] return v8::StringObject::New(value).As(); ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:5053:37: note: declared here static Local New(Local value)); ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/batch.cc:3:0: ../node_modules/nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’: ../node_modules/nan/nan.h:835:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallb] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ In file included from ../src/batch.cc:1:0: /home/pi/.node-gyp/10.14.0/include/node/node.h:176:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /home/pi/.node-gyp/10.14.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/batch.cc:3:0: ../node_modules/nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’: ../node_modules/nan/nan.h:850:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallbac] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ In file included from ../src/batch.cc:1:0: /home/pi/.node-gyp/10.14.0/include/node/node.h:169:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /home/pi/.node-gyp/10.14.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/batch.cc:3:0: ../node_modules/nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, const char, int, v8::Local)’: ../node_modules/nan/nan.h:865:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, const char, int, v8::Local)’ is deprecated: Use MakeCallback(..., asy] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ In file included from ../src/batch.cc:1:0: /home/pi/.node-gyp/10.14.0/include/node/node.h:162:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /home/pi/.node-gyp/10.14.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/batch.cc:3:0: ../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local)’: ../node_modules/nan/nan.h:911:53: warning: ‘v8::Local v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] v8::Local string = from->ToString(); ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10040:15: note: declared here Local Value::ToString() const { ^~~~~ In file included from ../src/batch.cc:3:0: ../node_modules/nan/nan.h:921:74: warning: ‘int v8::String::WriteUtf8(char, int, int, int) const’ is deprecated: Use Isolate version [-Wdeprecated-declarations] length = string->WriteUtf8(str, static_cast(len), 0, flags); ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:2659:21: note: declared here int WriteUtf8(char buffer, int length = -1, ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/batch.cc:3:0: ../nodemodules/nan/nan.h: In member function ‘v8::Local Nan::Callback::Call(v8::Isolate, v8::Local, int, v8::Local) const’: ../node_modules/nan/nan.h:1479:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallb] )); ^ In file included from ../src/batch.cc:1:0: /home/pi/.node-gyp/10.14.0/include/node/node.h:176:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /home/pi/.node-gyp/10.14.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h: In function ‘size_t StringOrBufferLength(v8::Local)’: ../src/leveldown.h:16:26: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] return (!obj->ToObject().IsEmpty() ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:17:48: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] && node::Buffer::HasInstance(obj->ToObject())) ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:18:42: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] ? node::Buffer::Length(obj->ToObject()) ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:19:21: warning: ‘v8::Local v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] : obj->ToString()->Utf8Length(); ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10040:15: note: declared here Local Value::ToString() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:19:35: warning: ‘int v8::String::Utf8Length() const’ is deprecated: Use Isolate version instead [-Wdeprecated-declarations] : obj->ToString()->Utf8Length(); ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:2587:52: note: declared here V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const); ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/batch.cc:8:0: ../src/common.h: In function ‘bool leveldown::BooleanOptionValue(v8::Local, const char, bool)’: ../src/common.h:20:39: warning: ‘bool v8::Value::BooleanValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] ? options->Get(key)->BooleanValue() ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:2474:43: note: declared here V8_DEPRECATED("Use maybe version", bool BooleanValue() const); ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/batch.cc:8:0: ../src/common.h: In function ‘uint32_t leveldown::UInt32OptionValue(v8::Local, const char, uint32_t)’: ../src/common.h:32:38: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] ? options->Get(key)->Uint32Value() ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:2477:47: note: declared here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ ../src/batch.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE leveldown::Batch::New(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/batch.cc:42:76: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] Database database = Nan::ObjectWrap::Unwrap(info[0]->ToObject()); ^ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/batch.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE leveldown::Batch::Put(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/leveldown.h:53:30: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] } else if (!from->ToObject().IsEmpty() \ ^ ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:54:51: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] && node::Buffer::HasInstance(from->ToObject())) { \ ^ ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TOSLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:55:53: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] to ## Sz = node::Buffer::Length(from->ToObject()); \ ^ ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TOSLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:56:51: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] to ## Ch = node::Buffer::Data(from->ToObject()); \ ^ ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:58:54: warning: ‘v8::Local v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] v8::Local to ## Str = from->ToString(); \ ^ ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TOSLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10040:15: note: declared here Local Value::ToString() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:59:39: warning: ‘int v8::String::Utf8Length() const’ is deprecated: Use Isolate version instead [-Wdeprecated-declarations] to ## Sz = to ## Str->Utf8Length(); \ ^ ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:2587:52: note: declared here V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const); ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:65:5: warning: ‘int v8::String::WriteUtf8(char, int, int, int) const’ is deprecated: Use Isolate version [-Wdeprecated-declarations] ); \ ^ ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:2659:21: note: declared here int WriteUtf8(char buffer, int length = -1, ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:53:30: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] } else if (!from->ToObject().IsEmpty() \ ^ ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:54:51: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] && node::Buffer::HasInstance(from->ToObject())) { \ ^ ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TOSLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:55:53: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] to ## Sz = node::Buffer::Length(from->ToObject()); \ ^ ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TOSLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:56:51: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] to ## Ch = node::Buffer::Data(from->ToObject()); \ ^ ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:58:54: warning: ‘v8::Local v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] v8::Local to ## Str = from->ToString(); \ ^ ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TOSLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10040:15: note: declared here Local Value::ToString() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:59:39: warning: ‘int v8::String::Utf8Length() const’ is deprecated: Use Isolate version instead [-Wdeprecated-declarations] to ## Sz = to ## Str->Utf8Length(); \ ^ ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:2587:52: note: declared here V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const); ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:65:5: warning: ‘int v8::String::WriteUtf8(char, int, int, int) const’ is deprecated: Use Isolate version [-Wdeprecated-declarations] ); \ ^ ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:2659:21: note: declared here int WriteUtf8(char buffer, int length = -1, ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/batch.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE leveldown::Batch::Del(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/leveldown.h:53:30: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] } else if (!from->ToObject().IsEmpty() \ ^ ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:54:51: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] && node::Buffer::HasInstance(from->ToObject())) { \ ^ ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TOSLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:55:53: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] to ## Sz = node::Buffer::Length(from->ToObject()); \ ^ ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TOSLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:56:51: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] to ## Ch = node::Buffer::Data(from->ToObject()); \ ^ ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10046:15: note: declared here Local Value::ToObject() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:58:54: warning: ‘v8::Local v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] v8::Local to ## Str = from->ToString(); \ ^ ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TOSLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/node.h:63:0, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:10040:15: note: declared here Local Value::ToString() const { ^~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:59:39: warning: ‘int v8::String::Utf8Length() const’ is deprecated: Use Isolate version instead [-Wdeprecated-declarations] to ## Sz = to ## Str->Utf8Length(); \ ^ ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:2587:52: note: declared here V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const); ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:65:5: warning: ‘int v8::String::WriteUtf8(char, int, int, int) const’ is deprecated: Use Isolate version [-Wdeprecated-declarations] ); \ ^ ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’ LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /home/pi/.node-gyp/10.14.0/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.14.0/include/node/node.h:63, from ../src/batch.cc:1: /home/pi/.node-gyp/10.14.0/include/node/v8.h:2659:21: note: declared here int WriteUtf8(char buffer, int length = -1, ^ /home/pi/.node-gyp/10.14.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ leveldown.target.mk:117: recipe for target 'Release/obj.target/leveldown/src/batch.o' failed make: *** [Release/obj.target/leveldown/src/batch.o] Error 1 make: Leaving directory '/home/pi/.node-red/node_modules/leveldown/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Linux 4.14.79-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/.node-red/node_modules/leveldown gyp ERR! node -v v10.14.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN node-red-project@0.0.1 No repository field. npm WARN node-red-project@0.0.1 No license field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! leveldown@1.7.2 install: prebuild-install || node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the leveldown@1.7.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-11-29T05_27_44_757Z-debug.log

Holger-Will commented 5 years ago

I'm working on a fix. should be done this WE.

BitTourette commented 5 years ago

any news ? can we help ?

Holger-Will commented 5 years ago

well, yes! we are working on a complete rewrite of node-enocean (now enocean-js) and there is a lot(!) to do. we are just starting the rewrite after some work was done here . Any help is greatly appreciated! have a look over at https://github.com/enocean-js/enocean-js/issues