-
Notifications
You must be signed in to change notification settings - Fork 34
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
Build fails on some macOS versions does to wrong assumption on sysroot and possibly missing SLIST_REMOVE_AFTER
#133
Comments
SLIST_REMOVE_AFTER
In fact, just removing that Apple hack fixes the build :) |
Literally, just removing the hack fixes it:
Tested on 10.6 and 14.4.1. |
It seems you're building using GCC on macOS. If so, |
@lichray On Sonoma with Clang it did not break the build indeed, but it was unneeded. I removed that hack, and Log from Sonoma as an example: https://build.macports.org/builders/ports-14_x86_64-builder/builds/37229/steps/install-port/logs/stdio (gcc build tested locally, no buildbot for it.) |
@lichray There was an earlier issue related to this: #69
However there are remaining problems. The first is that
${CMAKE_OSX_SYSROOT}/usr/include/db.h
expands to//usr/include/db.h
(notice double slash), when it is actually in/
and not inside Xcode app, and this breaks include:Once that is fixed, it fails on:
This is because
sys/queue.h
is not guaranteed to have it on macOS.Apple own code suggests this:
https://opensource.apple.com/source/Libc/Libc-997.1.1/gen/FreeBSD/popen.c.auto.html
Since this is used in more than one file, it can be placed in
common.h
instead. Then the build succeeds.The text was updated successfully, but these errors were encountered: