joyent/node — Issue #2359: Make fails on Ubuntu 11.04 - openssl - error 2
Author: luckysmack
Created: 2011-12-18 04:32:24+00:00
State: open

I am trying to onfigure and make latest node.js (master branch) on Ubuntu 11.04. It is a fresh install and only has a few things installed. as per the wiki install page I have python2.7 and libssl-dev installed. I also have the openssl package installed as well.

Here is my output

$ ./configure --prefix=/opt/node
configure options: {'shared_v8': None, 'openssl_includes': None, 'without_snapshot': None, 'shared_v8_includes': None, 'without_npm': None, 'shared_v8_libpath': None, 'openssl_libpath': None, 'shared_cares_includes': None, 'dest_cpu': None, 'without_ssl': None, 'shared_cares': None, 'prefix': '/opt/node', 'no_ssl2': None, 'debug': None, 'shared_cares_libpath': None, 'shared_v8_libname': None, 'openssl_use_sys': None, 'gdb': None, 'with_dtrace': None}
creating ./options.gypi

$ make
make -C out BUILDTYPE=Release
make[1]: Entering directory `/opt/repos/node/out'
CC(target) /opt/repos/node/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/err/err_all.o
In file included from ../deps/openssl/openssl/crypto/err/err_all.c:102:0:
/usr/include/openssl/cms.h:81:1: error: parameter 1 has incomplete type
In file included from ../deps/openssl/openssl/include/openssl/comp.h:1:0,
from ../deps/openssl/openssl/crypto/err/err_all.c:107:
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h: In function ‘DECLARE_ASN1_PRINT_FUNCTION’:
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:11:28: error: storage class specified for parameter ‘COMP_CTX’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:17:14: error: expected declaration specifiers or ‘...’ before ‘COMP_CTX’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:18:17: error: expected declaration specifiers or ‘...’ before ‘COMP_CTX’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:19:18: error: expected declaration specifiers or ‘...’ before ‘COMP_CTX’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:22:16: error: expected declaration specifiers or ‘...’ before ‘COMP_CTX’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:28:4: error: storage class specified for parameter ‘COMP_METHOD’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:32:2: error: expected specifier-qualifier-list before ‘COMP_METHOD’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:30:1: warning: empty declaration [enabled by default]
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:42:1: error: expected declaration specifiers before ‘COMP_CTX’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:43:20: error: expected declaration specifiers or ‘...’ before ‘COMP_CTX’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:44:25: error: expected declaration specifiers or ‘...’ before ‘COMP_CTX’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:46:23: error: expected declaration specifiers or ‘...’ before ‘COMP_CTX’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:48:1: error: expected declaration specifiers before ‘COMP_METHOD’
../deps/openssl/openssl/include/openssl/../../crypto/comp/comp.h:49:1: error: expected declaration specifiers before ‘COMP_METHOD’
../deps/openssl/openssl/crypto/err/err_all.c:110:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/usr/include/openssl/cms.h:81:1: error: old-style parameter declarations in prototyped function definition
/usr/include/openssl/cms.h:81:1: error: parameter name omitted
../deps/openssl/openssl/crypto/err/err_all.c:163:2: error: expected ‘{’ at end of input
../deps/openssl/openssl/crypto/err/err_all.c:163:2: warning: control reaches end of non-void function [-Wreturn-type]
make[1]: *** [/opt/repos/node/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/err/err_all.o] Error 1
make[1]: Leaving directory `/opt/repos/node/out'
make: *** [out/Release/node] Error 2

I did the same on my desktop and it seems to build fine. The installed packages for openssl appear the same as well.