Skip to content

Node 0.9.x compilation problems #17

@rektide

Description

@rektide

Getting errors & some deprecation warnings compiling against the Node 0.9 tree:

CXX(target) Release/obj.target/leveldb/src/cpp/comparator.o
../src/cpp/comparator.cc: In function 'void node_leveldb::UnrefComparator(v8::Persistentv8::Value, void_)':
../src/cpp/comparator.cc:157:3: warning: 'static void_ v8::External::Unwrap(v8::Handlev8::Value)' is deprecated (declared at /home/rektide/archive/node/deps/v8/include/v8.h:4741) [-Wdeprecated-declarations]
CXX(target) Release/obj.target/leveldb/src/cpp/handle.o
In file included from ../src/cpp/handle.cc:18:0:
../src/cpp/options.h: In function 'void node_leveldb::UnpackOptions(v8::Handlev8::Value, leveldb::Options&, v8::Persistentv8::Value_)':
../src/cpp/options.h:70:63: warning: 'static void_ v8::External::Unwrap(v8::Handlev8::Value)' is deprecated (declared at /home/rektide/archive/node/deps/v8/include/v8.h:4741) [-Wdeprecated-declarations]
../src/cpp/options.h: In function 'void node_leveldb::UnpackReadOptions(v8::Handlev8::Value, leveldb::ReadOptions&)':
../src/cpp/options.h:98:61: warning: 'static void* v8::External::Unwrap(v8::Handlev8::Value)' is deprecated (declared at /home/rektide/archive/node/deps/v8/include/v8.h:4741) [-Wdeprecated-declarations]
../src/cpp/handle.cc: In static member function 'static void node_leveldb::JHandle::GetSnapshotAsync::UnrefSnapshot(v8::Persistentv8::Value, void_)':
../src/cpp/handle.cc:426:62: warning: 'static void_ v8::External::Unwrap(v8::Handlev8::Value)' is deprecated (declared at /home/rektide/archive/node/deps/v8/include/v8.h:4741) [-Wdeprecated-declarations]
../src/cpp/handle.cc: In static member function 'static v8::Handlev8::Value node_leveldb::JHandle::New(const v8::Arguments&)':
../src/cpp/handle.cc:611:59: warning: 'static void* v8::External::Unwrap(v8::Handlev8::Value)' is deprecated (declared at /home/rektide/archive/node/deps/v8/include/v8.h:4741) [-Wdeprecated-declarations]
../src/cpp/handle.cc: In instantiation of 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::ReadAsync]':
../src/cpp/handle.cc:235:38: required from here
../src/cpp/handle.cc:78:59: error: no matches converting function 'AsyncCallback' to type 'uv_after_work_cb {aka void ()(struct uv_work_s, int)}'
../src/cpp/handle.cc:86:34: error: candidate is: template static void node_leveldb::JHandle::OpAsync::AsyncCallback(uv_work_t_)
../src/cpp/handle.cc: In instantiation of 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::WriteAsync]':
../src/cpp/handle.cc:295:39: required from here
../src/cpp/handle.cc:78:59: error: no matches converting function 'AsyncCallback' to type 'uv_after_work_cb {aka void ()(struct uv_work_s, int)}'
../src/cpp/handle.cc:86:34: error: candidate is: template static void node_leveldb::JHandle::OpAsync::AsyncCallback(uv_work_t_)
../src/cpp/handle.cc: In instantiation of 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::GetIteratorAsync]':
../src/cpp/handle.cc:341:45: required from here
../src/cpp/handle.cc:78:59: error: no matches converting function 'AsyncCallback' to type 'uv_after_work_cb {aka void ()(struct uv_work_s, int)}'
../src/cpp/handle.cc:86:34: error: candidate is: template static void node_leveldb::JHandle::OpAsync::AsyncCallback(uv_work_t_)
../src/cpp/handle.cc: In instantiation of 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::GetSnapshotAsync]':
../src/cpp/handle.cc:401:45: required from here
../src/cpp/handle.cc:78:59: error: no matches converting function 'AsyncCallback' to type 'uv_after_work_cb {aka void ()(struct uv_work_s, int)}'
../src/cpp/handle.cc:86:34: error: candidate is: template static void node_leveldb::JHandle::OpAsync::AsyncCallback(uv_work_t_)
../src/cpp/handle.cc: In instantiation of 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::GetPropertyAsync]':
../src/cpp/handle.cc:469:45: required from here
../src/cpp/handle.cc:78:59: error: no matches converting function 'AsyncCallback' to type 'uv_after_work_cb {aka void ()(struct uv_work_s, int)}'
../src/cpp/handle.cc:86:34: error: candidate is: template static void node_leveldb::JHandle::OpAsync::AsyncCallback(uv_work_t_)
../src/cpp/handle.cc: In instantiation of 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::GetApproximateSizesAsync]':
../src/cpp/handle.cc:537:53: required from here
../src/cpp/handle.cc:78:59: error: no matches converting function 'AsyncCallback' to type 'uv_after_work_cb {aka void ()(struct uv_work_s, int)}'
../src/cpp/handle.cc:86:34: error: candidate is: template static void node_leveldb::JHandle::OpAsync::AsyncCallback(uv_work_t_)
../src/cpp/handle.cc: In instantiation of 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::OpenAsync]':
../src/cpp/handle.cc:145:30: required from 'static v8::Handlev8::Value node_leveldb::JHandle::OpenAsync::Hook(const v8::Arguments&) [with T = node_leveldb::JHandle::OpenAsync]'
../src/cpp/handle.cc:592:61: required from here
../src/cpp/handle.cc:78:59: error: no matches converting function 'AsyncCallback' to type 'uv_after_work_cb {aka void ()(struct uv_work_s, int)}'
../src/cpp/handle.cc:86:34: error: candidate is: template static void node_leveldb::JHandle::OpAsync::AsyncCallback(uv_work_t_)
../src/cpp/handle.cc: In instantiation of 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::DestroyAsync]':
../src/cpp/handle.cc:145:30: required from 'static v8::Handlev8::Value node_leveldb::JHandle::OpenAsync::Hook(const v8::Arguments&) [with T = node_leveldb::JHandle::DestroyAsync]'
../src/cpp/handle.cc:593:67: required from here
../src/cpp/handle.cc:78:59: error: no matches converting function 'AsyncCallback' to type 'uv_after_work_cb {aka void ()(struct uv_work_s, int)}'
../src/cpp/handle.cc:86:34: error: candidate is: template static void node_leveldb::JHandle::OpAsync::AsyncCallback(uv_work_t_)
../src/cpp/handle.cc: In instantiation of 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::RepairAsync]':
../src/cpp/handle.cc:145:30: required from 'static v8::Handlev8::Value node_leveldb::JHandle::OpenAsync::Hook(const v8::Arguments&) [with T = node_leveldb::JHandle::RepairAsync]'
../src/cpp/handle.cc:594:65: required from here
../src/cpp/handle.cc:78:59: error: no matches converting function 'AsyncCallback' to type 'uv_after_work_cb {aka void ()(struct uv_work_s, int)}'
../src/cpp/handle.cc:86:34: error: candidate is: template static void node_leveldb::JHandle::OpAsync::AsyncCallback(uv_work_t_)
../src/cpp/handle.cc: In static member function 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::RepairAsync]':
../src/cpp/handle.cc:79:3: warning: control reaches end of non-void function [-Wreturn-type]
../src/cpp/handle.cc: In static member function 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::DestroyAsync]':
../src/cpp/handle.cc:79:3: warning: control reaches end of non-void function [-Wreturn-type]
../src/cpp/handle.cc: In static member function 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::OpenAsync]':
../src/cpp/handle.cc:79:3: warning: control reaches end of non-void function [-Wreturn-type]
../src/cpp/handle.cc: In static member function 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T_) [with T = node_leveldb::JHandle::GetApproximateSizesAsync]':
../src/cpp/handle.cc:79:3: warning: control reaches end of non-void function [-Wreturn-type]
../src/cpp/handle.cc: In static member function 'static v8::Handlev8::Value node_leveldb::JHandle::OpAsync::AsyncEnqueue(T*) [with T = node_leveldb::JHandle::GetPropertyAsync]':
../src/cpp/handle.cc:79:3: warning: control reaches end of non-void function [-Wreturn-type]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions