[MacPorts] #60106: nodejs12, nodejs13: error: use of undeclared identifier 'MAP_ANONYMOUS' (was: nodejs12/13 fail to build on older OSX)

MacPorts noreply at macports.org
Thu Mar 26 19:58:03 UTC 2020


#60106: nodejs12, nodejs13: error: use of undeclared identifier 'MAP_ANONYMOUS'
-------------------------+-------------------------------------------------
  Reporter:  dubiousjim  |      Owner:  ci42
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.2
Resolution:              |   Keywords:  snowleopard lion mountainlion
      Port:  nodejs13    |  mavericks yosemite
-------------------------+-------------------------------------------------
Changes (by ryandesign):

 * keywords:   => snowleopard lion mountainlion mavericks yosemite


Comment:

 Here is a log showing the build failure:

 https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/19672/steps
 /install-port/logs/stdio

 {{{
 ../src/large_pages/node_large_page.cc:337:53: error: use of undeclared
 identifier 'MAP_ANONYMOUS'
               PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
                                                     ^
 ../src/large_pages/node_large_page.cc:387:29: error: use of undeclared
 identifier 'MAP_ANONYMOUS'
               MAP_PRIVATE | MAP_ANONYMOUS,
                             ^
 }}}

 If it is not desired to patch the software, the legacysupport portgroup
 could also be used.

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


More information about the macports-tickets mailing list