Discussion:
[nodejs] Help linking native addon to openssl on Node.js - And general guidance on how to correctly do that
Jonathan Cardoso
2018-10-04 14:15:20 UTC
Permalink
I have an issue that I cannot for the love of me find a solution, I will
post it here too for extra
visibility: https://github.com/nodejs/node-gyp/issues/1559

The main problem is that libcurl (which my addon is built against) seems to
use Node.js symbols for OpenSSL, instead of using the one it was built with.

From what I could test, it only occurs with Node.js 10, on 8 it works
correctly. on linux it seems to work correctly,

I would love some help or guidance there, and also some help on the correct
way to do that, since I'm pretty sure I'm not doing it right.

This is currently causing some segfaults, since zlib 1.7, which is the one
being used, is not compatible with OpenSSL v1.1.0h, the one shipped with
Node.js 10.

I know that if upgrade zlib to 1.8 the problem would be resolved, but I
still think that there is something wrong there, since it does feel right
to use the OpenSSL from Node.js.
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/1bb43e54-f10f-46a0-8c64-7c5382b009b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jonathan Cardoso
2018-10-04 16:14:56 UTC
Permalink
Where I say `zlib` read `libssh`
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/303a356d-25d6-43bb-bb5a-54014015c3fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...