DX Application Performance Management

CA-APM-PROBE 1.10.32 does not compile in node8

  • 1.  CA-APM-PROBE 1.10.32 does not compile in node8

    Posted Jul 25, 2018 11:08 PM

    Hello folks.

     

    Is the version aforementioned not supported in node 8? When compiling the module with node-gyp, I get the following : 

     

    Warning: Missing input files:
    C:\Projects\backend-portalvendas\node_modules\ca-apm-probe\build\..\src\features.h
    strong-agent.cc
    win_delay_load_hook.cc
    c:\projects\backend-portalvendas\node_modules\ca-apm-probe\src\dyninst.h(31): error C2660: 'v8::Debug::GetDebugContext': function does not take 0 arguments (compiling source file ..\src\strong-agent.cc) [C:\Projects\backend-portalvendas\node_modules\ca-apm-probe\build\strong-agent.vcxproj]
    c:\projects\backend-portalvendas\node_modules\ca-apm-probe\src\dyninst.h(35): error C2039: 'GetMirror': is not a member of 'v8::Debug' (compiling source file ..\src\strong-agent.cc) [C:\Projects\backend-portalvendas\node_modules\ca-apm-probe\build\strong-agent.vcxproj]
    C:\Users\administrator\.node-gyp\8.11.1\include\node\v8-debug.h(26): note: see declaration of 'v8::Debug' (compiling source file ..\src\strong-agent.cc)
    c:\projects\backend-portalvendas\node_modules\ca-apm-probe\src\dyninst.h(35): error C3861: 'GetMirror': identifier not found (compiling source file ..\src\strong-agent.cc) [C:\Projects\backend-portalvendas\node_modules\ca-apm-probe\build\strong-agent.vcxproj]
    c:\projects\backend-portalvendas\node_modules\ca-apm-probe\src\dyninst.h(36): error C2660: 'v8::Debug::GetDebugContext': function does not take 0 arguments (compiling source file ..\src\strong-agent.cc) [C:\Projects\backend-portalvendas\node_modules\ca-apm-probe\build\strong-agent.vcxproj]
    c:\projects\backend-portalvendas\node_modules\ca-apm-probe\src\gcinfo.h(66): warning C4996: 'v8::V8::AddGCEpilogueCallback': was declared deprecated (compiling source file ..\src\strong-agent.cc) [C:\Projects\backend-portalvendas\node_modules\ca-apm-probe\build\strong-agent.vcxproj]
    c:\users\administrator\.node-gyp\8.11.1\include\node\v8.h(7902): note: see declaration of 'v8::V8::AddGCEpilogueCallback' (compiling source file ..\src\strong-agent.cc)
    c:\projects\backend-portalvendas\node_modules\ca-apm-probe\src\gcinfo.h(72): warning C4996: 'v8::V8::RemoveGCEpilogueCallback': was declared deprecated (compiling source file ..\src\strong-agent.cc) [C:\Projects\backend-portalvendas\node_modules\ca-apm-probe\build\strong-agent.vcxproj]
    c:\users\administrator\.node-gyp\8.11.1\include\node\v8.h(10279): note: see declaration of 'v8::V8::RemoveGCEpilogueCallback' (compiling source file ..\src\strong-agent.cc)
    c:\projects\backend-portalvendas\node_modules\ca-apm-probe\src\profiler.h(172): warning C4996: 'v8::String::NewFromOneByte': was declared deprecated (compiling source file ..\src\strong-agent.cc) [C:\Projects\backend-portalvendas\node_modules\ca-apm-probe\build\strong-agent.vcxproj]
    c:\users\administrator\.node-gyp\8.11.1\include\node\v8.h(2683): note: see declaration of 'v8::String::NewFromOneByte' (compiling source file ..\src\strong-agent.cc)
    gyp ERR! build error
    gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
    gyp ERR! stack at ChildProcess.onExit (C:\Projects\backend-portalvendas\node_modules\node-gyp\lib\build.js:285:23)
    gyp ERR! stack at emitTwo (events.js:126:13)
    gyp ERR! stack at ChildProcess.emit (events.js:214:7)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
    gyp ERR! System Windows_NT 10.0.15063
    gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Projects\\backend-portalvendas\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "-j" "10"
    gyp ERR! cwd C:\Projects\backend-portalvendas\node_modules\ca-apm-probe
    gyp ERR! node -v v8.11.1
    gyp ERR! node-gyp -v v3.6.0
    gyp ERR! not ok
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! backend-portalvendas@1.23.0 prestart: `cd ./node_modules/oracledb && node ../node-gyp/bin/node-gyp.js rebuild -j 10 && cd ../../ && cd ./node_modules/ca-apm-probe && node ../node-gyp/bin/node-gyp.js rebuild -j 10 && cd ../../`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the backend-portalvendas@1.23.0 prestart 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! C:\Users\administrator\AppData\Roaming\npm-cache\_logs\2018-07-26T02_55_52_059Z-debug.log

     

    Node-gyp rebuild fails to compile properly in node 8.11.3, and it runs ok in node 6, any ideas?