-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: use of undeclared identifier 'MAP_ANONYMOUS' #245
Comments
For example like this: |
Thank you for reporting! We are about to update abseil and S2 to newer versions. Do you know if abseil-cpp and the latest version of google/s2geometry are able to compile on macports? |
I did not see this fix in the upstream abseil repository. In MacPorts, the abseil port works around the problem by using a compatibility library developed by MacPorts which includes, among other things, the missing |
Build status information for abseil and s2geometry in MacPorts are here: |
|
But abseil also now uses |
s2 fails to build on OS X 10.10 and earlier:
https://trac.macports.org/ticket/67784
MAP_ANONYMOUS
is equivalent toMAP_ANON
which is available on older systems.There are several places where you already have code to address this:
s2/src/absl/base/internal/low_level_alloc.cc
Lines 56 to 63 in 4fe0c97
s2/src/absl/debugging/failure_signal_handler.cc
Lines 154 to 156 in 4fe0c97
s2/src/s2/base/port.h
Lines 574 to 581 in 4fe0c97
Note that the comment is outdated:
MAP_ANONYMOUS
does exist on Darwin in OS X 10.11 (released 2015) and later.There are two places where similar code needs to be added, or it needs to be moved into a more central include file:
s2/src/absl/debugging/internal/examine_stack.cc
Lines 57 to 58 in 4fe0c97
s2/src/absl/debugging/internal/stack_consumption.cc
Lines 113 to 114 in 4fe0c97
I see no reason to limit the fix to systems where
__APPLE__
is defined.The text was updated successfully, but these errors were encountered: