[MacPorts] #57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
MacPorts
noreply at macports.org
Wed Feb 20 19:02:02 UTC 2019
#57723: tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
------------------------+--------------------
Reporter: mriyah | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords: mojave
Port: tuntaposx |
------------------------+--------------------
Comment (by Equidamoid):
The build uses incorrect path for kernel headers:
`-I/System/Library/Frameworks/Kernel.framework/Headers`
instead of the one that made it compile for me:
`-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers`
I have no idea (for now) how to fix it properly in macports way, but here
is the hack that may help someone before proper fix is available:
Run `port edit tuntaposx` and replace
`reinplace "s|@ARCHFLAGS@|[get_canonical_archflags cc]|" ${f}`
with
`reinplace "s|@ARCHFLAGS@|[get_canonical_archflags cc]
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.
sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers|" ${f}`
--
Ticket URL: <https://trac.macports.org/ticket/57723#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list