-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: addons cannot use the bundled OpenSSL #4932
Comments
As a side note, the headers in |
@nodejs/platform-windows ping, we need some expertise here, I can't answer this but am ready to help out where needed if we need to take action |
As a part of the build process one of the libraries generated is
Maybe ass a temporary workaround we should just publish those? |
Fixed by #6274. |
I don't think this was ever actually fixed. I can't find a header distribution for any Node version that allows me to link against the built-in OpenSSL symbols on Windows, but the header is still there so there is still this conflict. |
This definitely was fixed and we've had reports (and fixed) of missing OpenSSL symbols as we only export a subset of them (e.g. #27494). Note that this only applies to the binaries available from https://nodejs.org/. Other distributions may differ, e.g. |
In this case, you're missing at least these symbols from at least Node 10:
|
For visibility, please open a new issue (this one was closed over two years ago). |
I mean, I hate being this guy, but I can't consider this issue closed. Saying that you've fixed it, but you're only partially exporting symbols isn't a fix, it's an unreliable kludge. Going this cycle where we have to do trial-and-error to figure out what's missing next isn't viable. Say we get these symbols in. Say we change our code to stop embedding OpenSSL in our native module and start using the symbols from nodejs. And say that several months down the line, we add new code for a new feature that starts using symbols that you haven't exported yet. We'd be forced to rollback the initial change and start embedding OpenSSL again. This isn't reliable. It seems to me we can't trust the headers you're exposing to appropriately describe the symbols you're actually exporting, therefore, this issue isn't solved. |
cc @nodejs/platform-windows @nodejs/crypto @nodejs/node-gyp |
@nicolasnoble I can see your point, I wish the situation was less manual, too. Keep in mind that we can keep the issue open forever, but without some suggestions (or PRs) to the OpenSSL/node build process to keep the list correct, I'm not sure what will be done. |
Sure, we'll discuss this internally and see if we can help you improve the process. |
That would be great, thank you. |
I'm going to close out this issue again because there isn't anything actionable right now or even ideas on how to improve the status quo. Can you file a new issue when you come up with something? Thanks. |
This is basically a copy of nodejs/node-v0.x-archive#4051, since it looks like that repository is obsolete and the problem still exists in the latest version of Node.
In the Node development package on Windows, the
include
directory has anopenssl
subdirectory with all of the OpenSSL headers, but thenode.lib
libraries do not export those symbols to link against.This means that any Node extension that wants to use OpenSSL must instruct its users to follow the instructions at https://github.com/nodejs/node-gyp/wiki/Linking-to-OpenSSL#windows.
The text was updated successfully, but these errors were encountered: