warning: unknown warning option '-Wformat-signedness' [-Wunknown-warning-option] warning: unknown warning option '-Wmaybe-uninitialized'; did you mean '-Wuninitialized'? [-Wunknown-warning-option] mv -f .deps/color-ncurses.Tpo .deps/color-ncurses.Plo tty-ncurses.c:556:5: error: unknown type name 'cchar_t'; did you mean 'wchar_t'? cchar_t *ctext; ^~~~~~~ wchar_t /usr/include/stdlib.h:58:20: note: 'wchar_t' declared here typedef ___wchar_t wchar_t; ^ tty-ncurses.c:565:31: error: use of undeclared identifier 'cchar_t' ctext = g_malloc (sizeof (cchar_t) * (cols + 1)); ^ tty-ncurses.c:569:9: warning: implicit declaration of function 'mvin_wchnstr' is invalid in C99 [-Wimplicit-function-declaration] mvin_wchnstr (y + row, x, ctext, cols); ^ tty-ncurses.c:573:13: warning: implicit declaration of function 'getcchar' is invalid in C99 [-Wimplicit-function-declaration] getcchar (&ctext[col], wch, &attrs, &color_pair, NULL); ^ tty-ncurses.c:574:13: warning: implicit declaration of function 'setcchar' is invalid in C99 [-Wimplicit-function-declaration] setcchar (&ctext[col], wch, attrs, color, NULL); ^ tty-ncurses.c:577:9: warning: implicit declaration of function 'mvadd_wchnstr' is invalid in C99 [-Wimplicit-function-declaration] mvadd_wchnstr (y + row, x, ctext, cols); ^ 6 warnings and 2 errors generated. gmake[5]: *** [Makefile:548: tty-ncurses.lo] Error 1 gmake[5]: Leaving directory '/usr/obj/usr/ports/misc/mc/work/mc-4.8.26/lib/tty' gmake[4]: *** [Makefile:704: all-recursive] Error 1 gmake[4]: Leaving directory '/usr/obj/usr/ports/misc/mc/work/mc-4.8.26/lib' gmake[3]: *** [Makefile:584: all-recursive] Error 1 gmake[3]: Leaving directory '/usr/obj/usr/ports/misc/mc/work/mc-4.8.26' gmake[2]: *** [Makefile:514: all] Error 2 gmake[2]: Leaving directory '/usr/obj/usr/ports/misc/mc/work/mc-4.8.26' ===> Compilation failed unexpectedly.
Got the same thing here. It compiles with the (default) slang option on, but not with the ncurses option.
Same here, on latest 11.2-RELEASE
Same here on stable/12:e82353f84.
Created attachment 221949 [details] patch Allow to build an run.
Comment on attachment 221949 [details] patch Looks good - thanks for the fix!
A commit references this bug: Author: woodsb02 Date: Tue Jan 26 23:04:55 UTC 2021 New revision: 563008 URL: https://svnweb.freebsd.org/changeset/ports/563008 Log: misc/mc: Fix build with ncurses option PR: 252903 Submitted by: Rozhuk Ivan <rozhuk.im@gmail.com> Reported by: jakub_lach@mailplus.pl Reported by: mbeis@xs4all.nl Reported by: m.bueker@berlin.de Reported by: michael.osipov@siemens.com Changes: head/misc/mc/Makefile
Committed - thanks again everyone for reporting and fixing this one.