[MacPorts] #66765: starship @1.12.0: error: unknown type name 'SCREEN'
MacPorts
noreply at macports.org
Thu Jan 26 17:37:04 UTC 2023
#66765: starship @1.12.0: error: unknown type name 'SCREEN'
-----------------------+-------------------------
Reporter: vigna | Owner: herbygillot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Resolution: | Keywords: ventura
Port: starship |
-----------------------+-------------------------
Comment (by kencu):
Here's one simple reproducer.
{{{
% cat test.c
#include <ncurses.h>
int
main(void) {
return (0);
}
}}}
{{{
% clang -isystem /opt/local/include test.c
< OK >
% clang -fmodules -isystem /opt/local/include test.c
While building module 'Darwin' imported from
/opt/local/include/curses.h:95:
In file included from <module-includes>:477:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ncurses.h:141:
/opt/local/include/unctrl.h:61:63: error: unknown type name 'SCREEN'
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*,
chtype);
^
/opt/local/include/unctrl.h:61:53: error: function cannot return function
type 'char *(int *, chtype)' (aka 'char *(int *, unsigned int)')
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*,
chtype);
^
/opt/local/include/unctrl.h:61:54: error: a parameter list without types
is only allowed in a function definition
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*,
chtype);
^
In file included from test.c:1:
/opt/local/include/curses.h:95:10: fatal error: could not build module
'Darwin'
#include <stdint.h>
~~~~~~~~^
4 errors generated.
}}}
you get a lot more errors if it is run as "test.m" by the way.
--
Ticket URL: <https://trac.macports.org/ticket/66765#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list