Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Fails to build when '--without-ssl' configure option set #8645

Closed
@amudukutore

Description

@amudukutore

I see the following error message in the build log:
out/Release/obj.target/node/src/node.o: In function ParseArgs': out/../src/node.cc:2583: undefined reference tonode::SSL2_ENABLE'
out/../src/node.cc:2586: undefined reference to `node::SSL3_ENABLE'
collect2: error: ld returned 1 exit status
gmake[1]: *** [out/Release/node] Error 1

The following patch appears to fix this:
diff --git a/src/node.cc b/src/node.cc
index 18c743f..44026e2 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -2544,8 +2544,10 @@ static void PrintHelp() {
" --trace-deprecation show stack traces on deprecations\n"
" --v8-options print v8 command line options\n"
" --max-stack-size=val set max v8 stack size (bytes)\n"
+#if HAVE_OPENSSL
" --enable-ssl2 enable ssl2\n"
" --enable-ssl3 enable ssl3\n"
+#endif
"\n"
"Environment variables:\n"
#ifdef _WIN32
@@ -2579,12 +2581,14 @@ static void ParseArgs(int argc, char argv) {
p = 1 + strchr(arg, '=');
max_stack_size = atoi(p);
argv[i] = const_cast<char
>("");
+#if HAVE_OPENSSL
} else if (strcmp(arg, "--enable-ssl2") == 0) {
SSL2_ENABLE = true;
argv[i] = const_cast<char
>("");
} else if (strcmp(arg, "--enable-ssl3") == 0) {
SSL3_ENABLE = true;
argv[i] = const_cast<char*>("");
+#endif
} else if (strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) {
PrintHelp();
exit(0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions