Opened 5 years ago

Closed 5 years ago

#48149 closed defect (worksforme)

nodejs @ 0.12.5: fails to build

Reported by: J.Gilbey@… Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: nodejs

Description (last modified by ci42)

The make -w all part of the build failed. When I tried this command separately, the errors I got began with:

  /usr/bin/clang++ '-D_DARWIN_USE_64_BIT_INODE=1' '-DNODE_WANT_INTERNALS=1' '-DARCH="x64"' '-DNODE_TAG=""' '-DNODE_V8_OPTIONS=""' '-DNODE_HAVE_I18N_SUPPORT=1' '-DHAVE_OPENSSL=1' '-DHAVE_DTRACE=1' '-D__POSIX__' '-DPLATFORM="darwin"' '-DHTTP_PARSER_STRICT=0' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/opt/local/include/openssl -I../src -I../tools/msvs/genfiles -I../deps/uv/src/ares -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.12.5/out/Release/obj/gen -I../deps/debugger-agent/include -I../deps/v8/include -I../deps/zlib -I../deps/http_parser -I../deps/cares/include -I../deps/uv/include  -Os -gdwarf-2 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.12.5/out/Release/.deps//opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.12.5/out/Release/obj.target/node/src/node.o.d.raw -Os -c -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.12.5/out/Release/obj.target/node/src/node.o ../src/node.cc
In file included from ../src/node.cc:35:
../src/node_crypto.h:136:7: warning: 'SSL_CTX_free' is deprecated: first
      deprecated in OS X 10.7 [-Wdeprecated-declarations]
      SSL_CTX_free(ctx_);
      ^
/usr/include/openssl/ssl.h:1363:6: note: 'SSL_CTX_free' has been explicitly marked
      deprecated here
void    SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
In file included from ../src/node.cc:35:
../src/node_crypto.h:167:12: warning: 'SSL_new' is deprecated: first deprecated in
      OS X 10.7 [-Wdeprecated-declarations]
    ssl_ = SSL_new(sc->ctx_);
           ^
/usr/include/openssl/ssl.h:1497:7: note: 'SSL_new' has been explicitly marked
      deprecated here
SSL *   SSL_new(SSL_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
In file included from ../src/node.cc:35:
../src/node_crypto.h:372:5: warning: 'EVP_CIPHER_CTX_cleanup' is deprecated: first
      deprecated in OS X 10.7 [-Wdeprecated-declarations]
    EVP_CIPHER_CTX_cleanup(&ctx_);
    ^
/usr/include/openssl/evp.h:637:5: note: 'EVP_CIPHER_CTX_cleanup' has been
      explicitly marked deprecated here
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSI...
    ^
In file included from ../src/node.cc:35:
../src/node_crypto.h:435:5: warning: 'HMAC_CTX_cleanup' is deprecated: first
      deprecated in OS X 10.7 [-Wdeprecated-declarations]
    HMAC_CTX_cleanup(&ctx_);
    ^
/usr/include/openssl/hmac.h:91:6: note: 'HMAC_CTX_cleanup' has been explicitly
      marked deprecated here
void HMAC_CTX_cleanup(HMAC_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_A...
     ^
In file included from ../src/node.cc:35:
../src/node_crypto.h:468:5: warning: 'EVP_MD_CTX_cleanup' is deprecated: first
      deprecated in OS X 10.7 [-Wdeprecated-declarations]
    EVP_MD_CTX_cleanup(&mdctx_);
    ^
/usr/include/openssl/evp.h:548:5: note: 'EVP_MD_CTX_cleanup' has been explicitly
      marked deprecated here
int     EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION...
        ^
In file included from ../src/node.cc:35:
../src/node_crypto.h:515:5: warning: 'EVP_MD_CTX_cleanup' is deprecated: first
      deprecated in OS X 10.7 [-Wdeprecated-declarations]
    EVP_MD_CTX_cleanup(&mdctx_);
    ^
/usr/include/openssl/evp.h:548:5: note: 'EVP_MD_CTX_cleanup' has been explicitly
      marked deprecated here
int     EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION...
        ^
In file included from ../src/node.cc:35:
../src/node_crypto.h:575:41: error: unknown type name 'EVP_PKEY_CTX'
  typedef int (*EVP_PKEY_cipher_init_t)(EVP_PKEY_CTX *ctx);
                                        ^
../src/node_crypto.h:576:36: error: unknown type name 'EVP_PKEY_CTX'
  typedef int (*EVP_PKEY_cipher_t)(EVP_PKEY_CTX *ctx,
                                   ^
../src/node_crypto.h:607:7: warning: 'DH_free' is deprecated: first deprecated in
      OS X 10.7 [-Wdeprecated-declarations]
      DH_free(dh);
      ^
/usr/include/openssl/dh.h:185:6: note: 'DH_free' has been explicitly marked
      deprecated here
void    DH_free(DH *dh) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
In file included from ../src/node.cc:35:
../src/node_crypto.h:653:7: warning: 'EC_KEY_free' is deprecated: first deprecated
      in OS X 10.7 [-Wdeprecated-declarations]
      EC_KEY_free(key_);
      ^
/usr/include/openssl/ec.h:307:6: note: 'EC_KEY_free' has been explicitly marked
      deprecated here
void EC_KEY_free(EC_KEY *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
In file included from ../src/node.cc:35:
../src/node_crypto.h:665:16: warning: 'EC_KEY_get0_group' is deprecated: first
      deprecated in OS X 10.7 [-Wdeprecated-declarations]
        group_(EC_KEY_get0_group(key_)) {
               ^
/usr/include/openssl/ec.h:313:17: note: 'EC_KEY_get0_group' has been explicitly
      marked deprecated here
const EC_GROUP *EC_KEY_get0_group(const EC_KEY *) DEPRECATED_IN_MAC_OS_X_V...
                ^
In file included from ../src/node.cc:35:
../src/node_crypto.h:173:7: warning: 'SSL_free' is deprecated: first deprecated in
      OS X 10.7 [-Wdeprecated-declarations]
      SSL_free(ssl_);
      ^
../src/node_crypto.h:278:3: note: in instantiation of member function
      'node::crypto::SSLWrap<node::crypto::Connection>::~SSLWrap' requested here
  ~Connection() {
  ^
/usr/include/openssl/ssl.h:1506:6: note: 'SSL_free' has been explicitly marked
      deprecated here
void    SSL_free(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
        ^
In file included from ../src/node.cc:35:
../src/node_crypto.h:177:7: warning: 'SSL_SESSION_free' is deprecated: first
      deprecated in OS X 10.7 [-Wdeprecated-declarations]
      SSL_SESSION_free(next_sess_);
      ^
/usr/include/openssl/ssl.h:1453:6: note: 'SSL_SESSION_free' has been explicitly
      marked deprecated here
void    SSL_SESSION_free(SSL_SESSION *ses) DEPRECATED_IN_MAC_OS_X_VERSION_...
        ^
11 warnings and 2 errors generated.
make[1]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/work/node-v0.12.5/out/Release/obj.target/node/src/node.o] Error 1

Standard log file attached.

Attachments (2)

main.log (6.2 KB) - added by J.Gilbey@… 5 years ago.
main.2.log (681.5 KB) - added by J.Gilbey@… 5 years ago.
Failed fresh build

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by J.Gilbey@…

Attachment: main.log added

comment:1 Changed 5 years ago by ci42

Description: modified (diff)
Owner: changed from macports-tickets@… to ciserlohn@…
Port: node added
Summary: nodejs: v0.12.5 fails to buildnodejs @ 0.12.5: fails to build

comment:2 in reply to:  description Changed 5 years ago by ci42

Port: nodejs added; node removed

Replying to J.Gilbey@…:

Standard log file attached.

This was not a clean attempt. Please try again:

$ sudo port clean nodejs
$ sudo port install nodejs

and attach the log file if it fails.

In the future please use WikiFormatting, Cc the port maintainer(s) (port info --maintainers nodejs) and fill in the port field.

comment:3 Changed 5 years ago by J.Gilbey@…

My humble apologies - I will note that for future reference. (On the first point, I confused WikiFormatting and Markdown formatting. Oh, so many markup languages!)

I have cleaned and attempted to rebuild nodejs. This time, it failed at a completely different place, which may be where it failed on the first attempt (which was when I ran a port upgrade outdated).

I'll attach the new log: it failed when it attempted to run a dtrace. I have no idea why it's trying to do that, and I ran port under sudo.

Thanks!

Changed 5 years ago by J.Gilbey@…

Attachment: main.2.log added

Failed fresh build

comment:4 Changed 5 years ago by neverpanic (Clemens Lang)

Resolution: worksforme
Status: newclosed

Reporter has also filed #48612 but can no longer reproduce. Might have been a local problem that has been fixed by their OS X update.

Note: See TracTickets for help on using tickets.