Bug 255478 - buildworld failure 12.2 stable. error: implicit declaration of function 'setcchar' is invalid in C99
Summary: buildworld failure 12.2 stable. error: implicit declaration of function 'setc...
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-29 06:32 UTC by igor.polovykh
Modified: 2021-05-04 04:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description igor.polovykh 2021-04-29 06:32:54 UTC
[root:/usr/src/usr.bin/talk]# make
clang  -O2 -pipe -fno-common   -g -MD  -MF.depend.display.o -MTdisplay.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable  -Qunused-arguments  -c /usr/src/usr.bin/talk/display.c -o display.o
/usr/src/usr.bin/talk/display.c:80:6: error: implicit declaration of function 'setcchar' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if (setcchar(&cc, wc, A_NORMAL, 0, NULL) != OK)
            ^
/usr/src/usr.bin/talk/display.c:80:6: note: did you mean 'getchar'?
/usr/include/stdio.h:271:6: note: 'getchar' declared here
int      getchar(void);
         ^
/usr/src/usr.bin/talk/display.c:108:3: error: implicit declaration of function 'wadd_wch' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                wadd_wch(win->x_win, makecchar(L'\n'));
                ^
/usr/src/usr.bin/talk/display.c:108:3: note: did you mean 'waddch'?
/usr/include/curses.h:780:28: note: 'waddch' declared here
extern NCURSES_EXPORT(int) waddch (WINDOW *, const chtype);             /* implemented */
                           ^
/usr/src/usr.bin/talk/display.c:190:3: error: implicit declaration of function 'wadd_wch' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                wadd_wch(win->x_win, makecchar(*wc));
                ^
3 errors generated.
*** Error code 1

Stop.
make: stopped in /usr/src/usr.bin/talk





Installed latest ncurses from ports:

[root:/usr/src/usr.bin/talk]# pkg info |grep ncurses
adacurses-20180127             Ada95 bindings for ncurses
ncurses-6.2.20210313_1         Library for terminal-independent, full-screen output
[root:/usr/src/usr.bin/talk]#