#49637: nodejs @ 4.2.2_0 fail to build on El Capitan -----------------------------+------------------------- Reporter: trond.kandal@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: nodejs | -----------------------------+------------------------- Comment (by mp@…): Still the same error when building from source. Noticed this: {{{ egrep -r ares_txt_reply /opt/local/include/ /opt/local/include/ares.h:struct ares_txt_reply { /opt/local/include/ares.h: struct ares_txt_reply *next; /opt/local/include/ares.h: struct ares_txt_reply** txt_out); /opt/local/include/node/ares.h:struct ares_txt_reply { /opt/local/include/node/ares.h: struct ares_txt_reply *next; /opt/local/include/node/ares.h: struct ares_txt_reply** txt_out); }}} {{{ port provides /opt/local/include/ares.h /opt/local/include/ares.h is provided by: c-ares }}} {{{ port provides /opt/local/include/node/ares.h /opt/local/include/node/ares.h is provided by: nodejs }}} {{{ diff /opt/local/include/ares.h /opt/local/include/node/ares.h 22,23d21 < #include "ares_build.h" /* c-ares build definitions */ < #include "ares_rules.h" /* c-ares rules enforcement */ 33a32,34
/* Data type definition of ares_socklen_t. */ typedef unsigned ares_socklen_t;
474a476,477
unsigned char record_start; /* 1 - if start of new record * 0 - if a chunk in the same record */ }}}
{{{ diff /opt/local/include/ares_version.h /opt/local/include/node/ares_version.h 10c10 < #define ARES_VERSION_PATCH 0 ---
#define ARES_VERSION_PATCH 1 14c14 < #define ARES_VERSION_STR "1.10.0"
#define ARES_VERSION_STR "1.10.1-DEV" }}}
It seems `nodejs` should include the {{{ /opt/local/include/node/ }}} directory before {{{ /opt/local/include/ }}} -- Ticket URL: <https://trac.macports.org/ticket/49637#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X