[MacPorts] #54068: mozjs17 @17.0.0_5 won't build (on PPC Tiger, Mac OS X 10.4.11) because sys/sysctl.h does not provide _SC_NPROCESSORS_ONLN but HW_NCPU

MacPorts noreply at macports.org
Sun Apr 30 23:00:23 UTC 2017


#54068: mozjs17  @17.0.0_5 won't build (on PPC Tiger, Mac OS X 10.4.11) because
sys/sysctl.h does not provide _SC_NPROCESSORS_ONLN but HW_NCPU
------------------------+-------------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:
      Port:  mozjs17    |
------------------------+-------------------

Comment (by ballapete):

 Mac OS X 10.5.8, Leopard, also has HW_NCPU instead of _SC_NPROCESSORS_ONLN
 – in `sys/sysctl.h`, but if has `#define     _SC_NPROCESSORS_ONLN
 5` in `unistd.h`. So it must be something like:

 {{{
 #ifdef XP_WIN
 # include "jswin.h"
 #else
 # include <unistd.h>
 # if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050
 # include <sys/sysctl.h>
 # endif
 #endif
 }}}

 The attached patch, `patch_js_src_jsgc.cpp.diff`, allows compilation of
 `js/src/jsgc.cpp`.

--
Ticket URL: <https://trac.macports.org/ticket/54068#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list