On Thu, 17 Sep 2026, Riccardo Mottola via macports-dev wrote:
trying to work around a little bit the poppler issue.
I decided to "pin" 24.04.0_3
Here:
This worked fine on 10.13 High Sierra.
Now I am trying my luck on 10.11 ElCapitan
I get this failure:
In file included from
/opt/local/libexec/llvm-16/lib/clang/16/include/float.h:21:
In file included from /opt/local/include/LegacySupport/Availability.h:52:
In file included from
/opt/local/include/LegacySupport/_macports_extras/sdkversion.h:125:
/opt/local/include/LegacySupport/AvailabilityMacros.h:43:15: fatal error:
'AvailabilityMacros.h' file not found
#include_next <AvailabilityMacros.h>
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
This is unexpected, that fail exists. Look here:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/AvailabilityMacros.h
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityMacros.h
/opt/local/include/LegacySupport/AvailabilityMacros.h
both in a patched version and in the original SDK version.
Indeed. AvailabilityMacros.h exists for all OS versions, at least as far
back as 10.4.
Anyone has ideas? Why does this bites me on 10.11 only?
I'm not sure about the 10.11 only part (unless legacy-support isn't used
for 10.13), but I suggest looking at the compiler invocation command in
question, to see what include paths it's setting up and in what order.
Note that if it uses the compiler-wrapper kludge, the command in the
logfile won't be the actual command, so you may need to look at the
CC_PRINT_OPTIONS_FILE to see what's really going on.
The include_next mechanism can only find files which appear later in the
list of include paths than its own file, so getting the order wrong can
cause trouble. The path for legacy-support headers needs to come *before*
the path for system headers.
I'm not too surprised that there would be build problems in a port whose
build used to be incompatible with itself. :-)
Fred Wright