Opened 6 years ago
Closed 6 years ago
#57723 closed defect (fixed)
tuntaposx @20150118: fatal error: 'kern/locks.h' file not found
Reported by: | mriyah | Owned by: | Equidamoid |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.5.4 |
Keywords: | mojave | Cc: | mriyah, jackiezhangcn |
Port: | tuntaposx |
Description (last modified by mf2k (Frank Schima))
tuntaposx as a dependency failed to build with the following
fatal error: 'kern/locks.h' file not found.
Regards.
Attachments (1)
Change History (11)
comment:1 Changed 6 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Port: | tuntaposx added |
comment:2 Changed 6 years ago by mf2k (Frank Schima)
Please attach the main.log file after cleaning the port (sudo port clean tuntaposx
).
Changed 6 years ago by mriyah
comment:3 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | mojave added |
---|---|
Summary: | installing tinc on mojave → tuntaposx @20150118: fatal error: 'kern/locks.h' file not found |
comment:5 Changed 6 years ago 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}
comment:6 Changed 6 years ago by Equidamoid
I believe this line in src/{tun,tap}/Makefile
can be patched for a better fix:
INCLUDE = -I.. -I/System/Library/Frameworks/Kernel.framework/Headers
comment:7 Changed 6 years ago by Equidamoid
comment:8 Changed 6 years ago by Equidamoid
Owner: | set to Equidamoid |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:9 Changed 6 years ago by jmroot (Joshua Root)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Build still fails on Mojave: https://build.macports.org/builders/ports-10.14_x86_64-builder/builds/24556
comment:10 Changed 6 years ago by ken-cunningham-webuse
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
In the future, please use WikiFormatting, fill in the Port field and add the port maintainer(s) to Cc (
port info --maintainers tuntaposx
), if any.