Opened 4 years ago

Last modified 4 years ago

#62194 new defect

mc @4.8.26_0+ncurses: error: unknown type name 'cchar_t'

Reported by: beremour Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: mc

Description

While upgrading 4.8.25_1 to 4.8.26_0 I am getting some errors and warnings like this:

:info:build tty-ncurses.c:556:5: error: unknown type name 'cchar_t'; did you mean 'wchar_t'?
:info:build     cchar_t *ctext;
:info:build     ^~~~~~~
:info:build     wchar_t

Attachments (1)

main.log (67.4 KB) - added by beremour 4 years ago.
build log

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by beremour

Attachment: main.log added

build log

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mc Midnight Commander ncurses removed
Summary: mc @4.8.26_0+ncurses Building errormc @4.8.26_0+ncurses: error: unknown type name 'cchar_t'

There are also implicit declarations of function which would have been an error if you had been using Xcode 12 or later:

:info:build tty-ncurses.c:569:9: warning: implicit declaration of function 'mvin_wchnstr' is invalid in C99 [-Wimplicit-function-declaration]
:info:build         mvin_wchnstr (y + row, x, ctext, cols);
:info:build         ^
:info:build tty-ncurses.c:573:13: warning: implicit declaration of function 'getcchar' is invalid in C99 [-Wimplicit-function-declaration]
:info:build             getcchar (&ctext[col], wch, &attrs, &color_pair, NULL);
:info:build             ^
:info:build tty-ncurses.c:574:13: warning: implicit declaration of function 'setcchar' is invalid in C99 [-Wimplicit-function-declaration]
:info:build             setcchar (&ctext[col], wch, attrs, color, NULL);
:info:build             ^
:info:build tty-ncurses.c:577:9: warning: implicit declaration of function 'mvadd_wchnstr' is invalid in C99 [-Wimplicit-function-declaration]
:info:build         mvadd_wchnstr (y + row, x, ctext, cols);
:info:build         ^

This and the error you mentioned above point to a #include statement being missing somewhere.

Note: See TracTickets for help on using tickets.