[MacPorts] #61068: lynx on Big Sur cannot find ncurses headers due to implicit declaration not allowed in C99
MacPorts
noreply at macports.org
Wed Aug 26 10:11:01 UTC 2020
#61068: lynx on Big Sur cannot find ncurses headers due to implicit declaration not
allowed in C99
-----------------------+----------------------
Reporter: snowflake | Owner: larryv
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.99
Keywords: | Port: lynx
-----------------------+----------------------
lynx on Big Sur fails in the configure phase.
Config.log shows
{{{
configure:18958: /usr/bin/clang -c -pipe -Os -isysroot/Applications/Xcode-
beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk
-arch x86_64 -I/opt/local/include -isysroot/Applications/Xcode-
beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk
-D_DARWIN_C_SOURCE -I/opt/local/include/openssl conftest.c >&5
configure:18947:10: fatal error: 'ncurses/curses.h' file not found
#include <ncurses/curses.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
configure:18961: $? = 1
configure: failed program was:
#line 18946 "configure"
#include "confdefs.h"
#include <ncurses/curses.h>
int
main (void)
{
initscr(); tgoto("?", 0,0)
;
return 0;
}
configure:18978: result: none
configure:18982: error: No curses header-files found
}}}
Earlier in config.log, it was complaining that implicit declaration of
tgoto was not allowed in C99
{{{
configure:18934: checking if we have identified curses headers
configure:18958: /usr/bin/clang -c -pipe -Os -isysroot/Applications/Xcode-
beta.app/Contents/Deve
loper/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -arch x86_64
-I/opt/local/include
-isysroot/Applications/Xcode-
beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDK
s/MacOSX11.0.sdk -D_DARWIN_C_SOURCE -I/opt/local/include/openssl
conftest.c >&5
configure:18951:12: error: implicit declaration of function 'tgoto' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
initscr(); tgoto("?", 0,0)
^
1 error generated.
configure:18961: $? = 1
configure: failed program was:
#line 18946 "configure"
#include "confdefs.h"
#include <ncurses.h>
int
main (void)
{
initscr(); tgoto("?", 0,0)
;
return 0;
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61068>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list