[augeas-devel] trouble compiling nodejs bindings for
augeas.rgm at neverbox.com
augeas.rgm at neverbox.com
Sat May 7 04:59:56 UTC 2016
I'm trying to compile the nodejs bindings on Linux Mint 17, but am getting
compiler errors. My gcc/g++ version is:
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
NodeJS is version v0.10.25.
I believe I've got all the prerequisites installed. I'd appreciate any
suggestions for getting past these issues. Errors are:
rgm at smackles ~/src/naug/node-augeas/build $ make
CXX(target) Release/obj.target/augeas/libaugeas.o
../libaugeas.cc: In static member function ‘static
Nan::NAN_METHOD_RETURN_TYPE LibAugeas::defnode(Nan::NAN_METHOD_ARGS_TYPE)’:
../libaugeas.cc:303:62: error: invalid initialization of non-const
reference of type ‘v8::TryCatch&’ from an rvalue of type ‘v8::Isolate*’
node::FatalException(v8::Isolate::GetCurrent(), try_catch);
^
In file included from ../libaugeas.cc:17:0:
/usr/include/nodejs/src/node.h:134:18: error: in passing argument 1 of
‘void node::FatalException(v8::TryCatch&)’
NODE_EXTERN void FatalException(v8::TryCatch &try_catch);
^
../libaugeas.cc: In function ‘void saveAfter(uv_work_t*)’:
../libaugeas.cc:642:54: error: invalid initialization of non-const
reference of type ‘v8::TryCatch&’ from an rvalue of type ‘v8::Isolate*’
node::FatalException(v8::Isolate::GetCurrent(), try_catch);
^
In file included from ../libaugeas.cc:17:0:
/usr/include/nodejs/src/node.h:134:18: error: in passing argument 1 of
‘void node::FatalException(v8::TryCatch&)’
NODE_EXTERN void FatalException(v8::TryCatch &try_catch);
^
../libaugeas.cc: In function ‘void createAugeasAfter(uv_work_t*)’:
../libaugeas.cc:974:54: error: invalid initialization of non-const
reference of type ‘v8::TryCatch&’ from an rvalue of type ‘v8::Isolate*’
node::FatalException(v8::Isolate::GetCurrent(), try_catch);
^
In file included from ../libaugeas.cc:17:0:
/usr/include/nodejs/src/node.h:134:18: error: in passing argument 1 of
‘void node::FatalException(v8::TryCatch&)’
NODE_EXTERN void FatalException(v8::TryCatch &try_catch);
^
make: *** [Release/obj.target/augeas/libaugeas.o] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20160506/35621150/attachment.htm>
More information about the augeas-devel
mailing list