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

‘SSL_COMP_get_compression_methods’ was not declared in this scope #1242

Closed
bnoordhuis opened this issue Jun 28, 2011 · 3 comments
Closed
Labels

Comments

@bnoordhuis
Copy link
Member

The #ifdef check for SSL_COMP_get_compression_methods in node_crypto.cc (added for #1087) apparently succeeds with some versions of OpenSSL that don't actually implement or export it.

/usr/bin/g++ -pthread -arch i386 -m32 -g -O3 -DHAVE_OPENSSL=1 -DEV_FORK_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_MULTIPLICITY=0 -DX_STACKSIZE=65536 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEV_MULTIPLICITY=0 -DHAVE_FDATASYNC=0 -DPLATFORM="darwin" -D__POSIX__=1 -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -Idefault/src -I../src -Idefault/deps/libeio -I../deps/libeio -Idefault/deps/http_parser -I../deps/http_parser -Idefault/deps/v8/include -I../deps/v8/include -Idefault/deps/libev -I../deps/libev -Idefault/deps/c-ares -I../deps/c-ares -Idefault/deps/c-ares/darwin-ia32 -I../deps/c-ares/darwin-ia32 -Ideps/v8/include ../src/node_crypto.cc -c -o default/src/node_crypto_4.o
../src/node_crypto.cc: In function ‘void node::crypto::InitCrypto(v8::Handle<v8::Object>)’:
../src/node_crypto.cc:2917: error: ‘SSL_COMP_get_compression_methods’ was not declared in this scope

Should probably be a feature check in the wscript file.

http://pastebin.com/S8t8BnhA

bnoordhuis added a commit to bnoordhuis/node that referenced this issue Jul 3, 2011
@japj
Copy link

japj commented Jul 20, 2011

anything blocking this from being pulled into master?

@bnoordhuis
Copy link
Member Author

@ry or @pquerna - review please!

bnoordhuis added a commit to bnoordhuis/node that referenced this issue Jul 20, 2011
Function was named SSL_COMP_get_compression_method() (singular)
in OpenSSL 0.9.7 and older.

Fixes nodejs#1242.
@bnoordhuis
Copy link
Member Author

Okay, we're going with 6f0740e - no feature check needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants