Opened 9 months ago

Closed 7 months ago

#69158 closed defect (fixed)

htop does not build on 10.7 Lion missing _mach_port_t.h

Reported by: rmottola (Riccardo) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version:
Keywords: tiger leopard snowleopard lion mountainlion haspatch Cc:
Port: htop

Description

:info:build depbase=`echo darwin/DarwinProcess.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
:info:build 	/usr/bin/clang -DHAVE_CONFIG_H -I.  -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -std=c99 -pedantic -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR -I/opt/local/include -Wall -Wcast-align -Wcast-qual -Wextra -Wfloat-equal -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -Wnull-dereference -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR="\"/opt/local/etc\"" -I"./darwin" -pipe -Os -arch x86_64 -MT darwin/DarwinProcess.o -MD -MP -MF $depbase.Tpo -c -o darwin/DarwinProcess.o darwin/DarwinProcess.c &&\
:info:build 	mv -f $depbase.Tpo $depbase.Po
:info:build darwin/Platform.c:21:10: fatal error: 'sys/_types/_mach_port_t.h' file not found
:info:build #include <sys/_types/_mach_port_t.h>
:info:build          ^
:info:build 1 error generated.

Change History (6)

comment:1 Changed 9 months ago by rmottola (Riccardo)

I just removed the header include ... and things compiled fine ?!

comment:2 Changed 9 months ago by jmroot (Joshua Root)

Owner: set to neverpanic
Status: newassigned

comment:3 Changed 9 months ago by neverpanic (Clemens Lang)

Thanks for the report. I support the last three major versions of macOS, and Lion isn't among those. I will happily accept a pull request that fixes this conditionally on affected operating systems, though. Do you think you can open one?

comment:4 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: tiger leopard snowleopard lion mountainlion haspatch added; Lion removed

comment:5 in reply to:  description Changed 7 months ago by barracuda156

Replying to rmottola:

:info:build depbase=`echo darwin/DarwinProcess.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
:info:build 	/usr/bin/clang -DHAVE_CONFIG_H -I.  -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -std=c99 -pedantic -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR -I/opt/local/include -Wall -Wcast-align -Wcast-qual -Wextra -Wfloat-equal -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -Wnull-dereference -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR="\"/opt/local/etc\"" -I"./darwin" -pipe -Os -arch x86_64 -MT darwin/DarwinProcess.o -MD -MP -MF $depbase.Tpo -c -o darwin/DarwinProcess.o darwin/DarwinProcess.c &&\
:info:build 	mv -f $depbase.Tpo $depbase.Po
:info:build darwin/Platform.c:21:10: fatal error: 'sys/_types/_mach_port_t.h' file not found
:info:build #include <sys/_types/_mach_port_t.h>
:info:build          ^
:info:build 1 error generated.

I guess, this is fixed by https://github.com/macports/macports-ports/commit/8c2c931036d3f75abda16a6627d3207435558cfa and should be closed.

comment:6 Changed 7 months ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.