-
Notifications
You must be signed in to change notification settings - Fork 7.3k
v0.10.33 does not build when openssl disabled #8676
Comments
We have the same problem at Buildroot. It is a bug in src/node.cc introduced by commit d601c76 which includes node_crypto.h twice. Once with #if HAVE_OPENSSL
# include "node_crypto.h"
#endif
[...]
#include "node_crypto.h" So you're doomed to build with openssl... |
This seems to be fixed on master, but a quick fix for v0.10.33 is to ifdef the SSL2_ENABLE with HAVE_OPENSSL. in src/node.cc at line 2582
|
But right now this script is blocked by: nodejs/node-v0.x-archive#8676
Cant reproduce on cfcb1de so this issue can probably be closed. |
We are using the same patch at Buidlroot: http://git.buildroot.net/buildroot/tree/package/nodejs/nodejs-0004-fix-build-error-without-OpenSSL-support.patch It's not fixed at master since must work is done in the 0.12 branch. The commit cfcb1de is from 2 Oct. The SSL2 and SSL3 handling are fixes done in this way only on the stable branch 0.10.xx. |
Sorry, missed the different branches... |
This issue is still not fixed in v0.10.34 :-( |
Still an error with v0.12.0. Same fix. |
@lovebug356 @joerg-krause @jsiei97 @tedu Thank you for your help, and sorry for the delay. Adding this issue to the v0.10.40 release milestone, because we want to get v0.10.39 out as quickly as possible due to OpenSSL vulnerabilities and we don't want to add anything more to that milestone. |
I'm available to guide anyone willing to pick this issue up and submit a PR that fixes it. Ping me on GitHub by mentioning @misterdjules or find me on IRC (jgi in #libuv on Freenode). EDIT: I'm also available by email at jgilli at fastmail dot fm. |
I'd like to take a shot at this. I'll get started and will hit you up with any questions I come up with. |
@whitlockjc Excellent! Thank you 👍 |
I can reproduce with the latest
I'll get a PR together shortly. |
This is the patch we use to build nodejs 0.10.40 with Buildroot: http://git.buildroot.net/buildroot/tree/package/nodejs/0.10.40/0004-fix-build-error-without-OpenSSL-support.patch And this is the PR I already did to fix this issue: #8761 |
Cool, I didn't see your work before. I'll stop working on this then. I got pulled into other work yesterday so after reproducing, I didn't work on the fix. |
@joerg-krause Your PR in #8761 seems to reference a deleted repository and cannot be reopened. Do you want to close that PR and create a new one, linking to this issue? If not, I don't mind creating a new PR to fix this issue I just don't want to do it without giving you the chance to. |
@whitlockjc Done so in PR #25862. So this can actually be closed, but I don't see a |
Sorry, I know why I cannot close this! I am not the opener 😄 |
I don't think you want to close this. :) This will be closed when your PR is resubmitted and accepted. |
Yeah, just go ahead and leave this open for now. We'll close when the corrected PR lands. |
Landed. |
v0.10.33 does not build when openssl disabled, v0.10.32 builds fine if openssl is disabled.
The text was updated successfully, but these errors were encountered: