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

Build fails on debian #676

Closed
valpackett opened this issue Feb 16, 2011 · 5 comments
Closed

Build fails on debian #676

valpackett opened this issue Feb 16, 2011 · 5 comments

Comments

@valpackett
Copy link

I have all the OpenSSL headers installed, but I get this:

[73/74] cxx: src/node_crypto.cc -> build/default/src/node_crypto_4.o
/usr/bin/g++ -pthread -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=1 -DPLATFORM="linux" -D__POSIX__=1 -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -DNDEBUG -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/linux-ia32 -I../deps/c-ares/linux-ia32 -Ideps/v8/include ../src/node_crypto.cc -c -o default/src/node_crypto_4.o
../src/node_crypto.cc: In static member function ‘static v8::Handle<v8::Value> node::crypto::SecureContext::Init(const v8::Arguments&)’:
../src/node_crypto.cc:75: error: ‘SSLv2_method’ was not declared in this scope
../src/node_crypto.cc:77: error: ‘SSLv2_server_method’ was not declared in this scope
../src/node_crypto.cc:79: error: ‘SSLv2_client_method’ was not declared in this scope
Waf: Leaving directory `/home/myfreeweb/node-v0.4.0/build'
Build failed:  -> task failed (err #1): 
    {task: cxx node_crypto.cc -> node_crypto_4.o}
@qharlie
Copy link

qharlie commented Apr 5, 2011

I get this error also, what version of G++ is needed ?

@laudenberg
Copy link

As written here: http://us.generation-nt.com/answer/bug-622070-witty-ftbfs-openssl-context-service-hpp-73-28-error-sslv2-method-has-not-been-declared-help-202878642.html SSLv2_* functions were disabled in openssl. A quick fix that worked for me was to remove the if-clauses using these functions.

@guybrush
Copy link

I am also running into this error.

  • node: v0.4.7
  • OS: debian (squeeze)
  • openssl: OpenSSL 0.9.8g 19 Oct 2007 (Library: OpenSSL 0.9.8o 01 Jun 2010)

[74/75] cxx: src/node_crypto.cc -> build/default/src/node_crypto_4.o
/usr/bin/g++ -pthread -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=1 -DPLATFORM="linux" -D__POSIX__=1 -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -DNDEBUG -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/linux-ia32 -I../deps/c-ares/linux-ia32 -Ideps/v8/include ../src/node_crypto.cc -c -o default/src/node_crypto_4.o
../src/node_crypto.cc: In static member function ‘static v8::Handle<v8::Value> node::crypto::SecureContext::Init(const v8::Arguments&)’:
../src/node_crypto.cc:101:29: error: ‘SSLv2_method’ was not declared in this scope
../src/node_crypto.cc:103:36: error: ‘SSLv2_server_method’ was not declared in this scope
../src/node_crypto.cc:105:36: error: ‘SSLv2_client_method’ was not declared in this scope
Waf: Leaving directory `/usr/local/n/node-v0.4.7/build'
Build failed: -> task failed (err #1):
        {task: cxx node_crypto.cc -> node_crypto_4.o}
make: *** [install] Error 1 

@guybrush
Copy link

patch: #880

@ry
Copy link

ry commented Jun 15, 2011

fixed in f23c45f

@ry ry closed this as completed Jun 15, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants