Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2021 06:32:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 255478] buildworld failure 12.2 stable with installed ncurses from ports. error: implicit declaration of function 'setcchar' is invalid in C99
Message-ID:  <bug-255478-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255478

            Bug ID: 255478
           Summary: buildworld failure 12.2 stable with installed ncurses
                    from ports. error: implicit declaration of function
                    'setcchar' is invalid in C99
           Product: Base System
           Version: 12.2-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: igor.polovykh@gmail.com

[root:/usr/src/usr.bin/talk]# make
clang  -O2 -pipe -fno-common   -g -MD  -MF.depend.display.o -MTdisplay.o
-std=3Dgnu99 -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-stri=
ngs
-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 functi=
on
'setcchar' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if (setcchar(&cc, wc, A_NORMAL, 0, NULL) !=3D 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 funct=
ion
'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 funct=
ion
'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]#

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255478-227>