nodejs / nodejs/node-gyp

xmlsec1 library fails when using node-gyp with higher node js versions

Open
#2,446 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.7k
Forks
1.9k
Avg merge
1d 4h
Merged PRs (30d)
5

Description

  • Node Version: v10.21.0 and v6.14.4
  • Platform: Linux platform 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • Compiler: gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
  • Module: xmlsec1
Verbose output (from npm or node-gyp): ```node IntegTest.js func=xmlSecDSigCtxProcessKeyInfoNode:file=xmldsig.c:line=889:obj=unknown:subj=unknown:error=45:key is not found: func=xmlSecDSigCtxProcessSignatureNode:file=xmldsig.c:line=581:obj=unknown:subj=xmlSecDSigCtxProcessKeyInfoNode:error=1:xmlsec library function failed: func=xmlSecDSigCtxSign:file=xmldsig.c:line=319:obj=unknown:subj=xmlSecDSigCtxSignatureProcessNode:error=1:xmlsec library function failed: Error: signature failed ```

node-gyp succeeds building the module sign.node but when trying to run sign.node thru IntegTest.js I see the above error. The same sign.node built on node v6.6.0 works fine and produces signed XML output.
IntegTest.js is the program that calls the functions within sign.node

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the xmlsec1 native-module failure using the reported Node v10.21.0, Linux platform, GCC 4.8.5, and IntegTest.js, then compare it with the working Node v6.6.0 build. Inspect the generated sign.node behavior and the reported xmlsec errors; done means the newer Node build produces signed XML successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.