-
Notifications
You must be signed in to change notification settings - Fork 39
Installation failed with security enable #179
Description
i have build iotivity 1.3.0 with SECURED=1 and RD_MODE=all. i define the variable
i have define define
OCTBSTACK_CFLAGS
OCTBSTACK_LIBS
but npm install fails as:
make: Entering directory '/home/vcs/iotivity-node/build' TOUCH Release/obj.target/csdk.stamp ACTION Generating constants generated/constants.cc TOUCH Release/obj.target/generateconstants.stamp ACTION Generating enums generated/enums.cc TOUCH Release/obj.target/generateenums.stamp ACTION Generating functions generated/functions.cc TOUCH Release/obj.target/generatefunctions.stamp CC(target) Release/obj.target/nothing/node_modules/node-addon-api/src/nothing.o AR(target) Release/obj.target/node_modules/node-addon-api/src/nothing.a COPY Release/nothing.a CXX(target) Release/obj.target/iotivity/generated/constants.o CXX(target) Release/obj.target/iotivity/generated/enums.o CXX(target) Release/obj.target/iotivity/generated/functions.o CXX(target) Release/obj.target/iotivity/src/common.o CXX(target) Release/obj.target/iotivity/src/functions/entity-handler.o CXX(target) Release/obj.target/iotivity/src/functions/oc-create-delete-resource.o CXX(target) Release/obj.target/iotivity/src/functions/oc-do-resource.o ../src/functions/oc-do-resource.cc: In function ‘napi_value__* bind_OCRDDiscover(napi_env, napi_callback_info)’: ../src/functions/oc-do-resource.cc:135:73: error: ‘OCRDDiscover’ was not declared in this scope OCRDDiscover(&(cData->data), connectivityType, &cbData, qos)); ^ ../src/functions/oc-do-resource.cc:93:28: note: in definition of macro ‘OC_DO_CALL’ OCStackResult result = doCall; \ ^ ../src/functions/oc-do-resource.cc: In function ‘napi_value__* bind_OCRDPublish(napi_env, napi_callback_info)’: ../src/functions/oc-do-resource.cc:187:52: error: ‘OCRDPublish’ was not declared in this scope handles.size(), ttl, &cbData, qos)); ^ ../src/functions/oc-do-resource.cc:93:28: note: in definition of macro ‘OC_DO_CALL’ OCStackResult result = doCall; \ ^ ../src/functions/oc-do-resource.cc:184:3: note: in expansion of macro ‘OC_DO_RESOURCE_LIST_CALL’ OC_DO_RESOURCE_LIST_CALL( ^ ../src/functions/oc-do-resource.cc: In function ‘napi_value__* bind_OCRDPublishWithDeviceId(napi_env, napi_callback_info)’: ../src/functions/oc-do-resource.cc:199:48: error: ‘OCRDPublishWithDeviceId’ was not declared in this scope ttl, &cbData, qos)); ^ ../src/functions/oc-do-resource.cc:93:28: note: in definition of macro ‘OC_DO_CALL’ OCStackResult result = doCall; \ ^ ../src/functions/oc-do-resource.cc:195:3: note: in expansion of macro ‘OC_DO_RESOURCE_LIST_CALL’ OC_DO_RESOURCE_LIST_CALL( ^ ../src/functions/oc-do-resource.cc: In function ‘napi_value__* bind_OCRDDelete(napi_env, napi_callback_info)’: ../src/functions/oc-do-resource.cc:207:46: error: ‘OCRDDelete’ was not declared in this scope handles.size(), &cbData, qos)); ^ ../src/functions/oc-do-resource.cc:93:28: note: in definition of macro ‘OC_DO_CALL’ OCStackResult result = doCall; \ ^ ../src/functions/oc-do-resource.cc:204:3: note: in expansion of macro ‘OC_DO_RESOURCE_LIST_CALL’ OC_DO_RESOURCE_LIST_CALL( ^ iotivity.target.mk:130: recipe for target 'Release/obj.target/iotivity/src/functions/oc-do-resource.o' failed make: *** [Release/obj.target/iotivity/src/functions/oc-do-resource.o] Error 1 make: Leaving directory '/home/vcs/iotivity-node/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:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Linux 3.4.69-rt85
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/vcs/iotivity-node
gyp ERR! node -v v6.14.4
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 3.4.69-rt85
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v6.14.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! iotivity-node@1.3.1-2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iotivity-node@1.3.1-2 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the iotivity-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs iotivity-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls iotivity-node
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/vcs/iotivity-node/npm-debug.log
`