contextify icon indicating copy to clipboard operation
contextify copied to clipboard

Can't build on nodejs 7.2

Open alkino opened this issue 9 years ago • 6 comments

The error is:

../src/contextify.cc:150:16: erreur : ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’; did you mean ‘SetAccessCheckCallback’?
         otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,

And yeah this function has been removed after deprecation. Now we need to use "SetAccessCheckCallback".

As I don't know node at all. I don't know how to fix it.

alkino avatar Dec 05 '16 09:12 alkino

Not sure if its related

screenshot

ahmed1490 avatar Dec 18 '16 02:12 ahmed1490

Same issue, fail in node v7, success in node v4.

RogerKang avatar Apr 18 '17 11:04 RogerKang

Seems that either jsdom or validator requires contextify and causes a failure on node 7.x.x only.

OKNoah avatar Apr 23 '17 09:04 OKNoah

This won't compile in Node 8 either for the same reason:

../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’

sylvio avatar May 31 '17 17:05 sylvio

same issue, please help me

phanngoc avatar Sep 05 '17 03:09 phanngoc

Just a heads up that I tested the installation on the following specs

:~$ lsb_release -a
Description:	Ubuntu 14.04.5 LTS
:~$ node -v
v8.9.0
:~$ npm -v
5.5.1
:~$ node-gyp -v
v3.6.0
:~$ gcc -v | grep version
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

:~$ npm install contextify
......
../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’
         otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,
.....

I can confirm that installation on the exact same machine works fine for a lower version of node.

:~$ node -v
v6.3.0
:~$ npm -v
3.10.3
:~$ node-gyp -v
v3.6.0
:~$ npm install contextify

> [email protected] install ...../node_modules/contextify
> node-gyp rebuild

make: Entering directory `....../node_modules/contextify/build'
  CXX(target) Release/obj.target/contextify/src/contextify.o
  SOLINK_MODULE(target) Release/obj.target/contextify.node
  COPY Release/contextify.node
make: Leaving directory `...../node_modules/contextify/build'
........
└─┬ [email protected]
  ├── [email protected]
  └── [email protected]

npm WARN enoent ENOENT: no such file or directory, open '...../package.json'
npm WARN x No description
npm WARN x No repository field.
npm WARN x No README data
npm WARN x No license field.

mhussain avatar Nov 23 '17 06:11 mhussain