[MacPorts] #67784: R-s2 @1.1.4: error: use of undeclared identifier 'MAP_ANONYMOUS' (was: R-s2 @1.1.4: Build failure)

MacPorts noreply at macports.org
Fri Jul 21 21:46:07 UTC 2023


#67784: R-s2 @1.1.4: error: use of undeclared identifier 'MAP_ANONYMOUS'
-------------------------+-------------------------------------------------
  Reporter:  ryandesign  |      Owner:  barracuda156
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  lion mountainlion mavericks
      Port:  R-s2        |  yosemite
-------------------------+-------------------------------------------------

Comment (by ryandesign):

 Replying to [comment:1 barracuda156]:
 > Replying to [ticket:67784 ryandesign]:
 > > R-s2 @1.1.4 failed to build on the 10.7–10.10 buildbot workers two
 months ago. Logs have expired so I've scheduled new builds. There is a
 backlog of builds so it may take a day for it to get to those builds.
 >
 > But it was building on 10.6 Intel?

 Yes. The 10.7–10.10 builds ran and all failed due to:

 {{{
 absl/debugging/internal/examine_stack.cc:58:34: error: use of undeclared
 identifier 'MAP_ANONYMOUS'
                    MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
                                  ^
 1 error generated.
 }}}

 so that's a simple fix of:

 {{{#!c
 #ifndef MAP_ANONYMOUS
 #define MAP_ANONYMOUS MAP_ANON
 #endif
 }}}

 Or the legacysupport portgroup can be included which includes that fix.

 I'm not sure why the build succeeded on 10.6.

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


More information about the macports-tickets mailing list