[Bug 259198] make buildworld failure due to ncurses

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 16 Oct 2021 05:32:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259198

            Bug ID: 259198
           Summary: make buildworld failure due to ncurses
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: moonlapse81@gmail.com

Created attachment 228739
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=228739&action=edit
src-dot-conf

this is on 14-CURRENT, git SHA 67829b6307b8c81397cedaaf7a0e6e281560be32
buildworld stops with 14 errors:

--- lib/ncurses/ncurses__L ---
Building /usr/obj/usr/src/amd64.amd64/lib/ncurses/ncurses/lib_clreol.o
--- cddl/lib/libuutil__L ---
Building /usr/obj/usr/src/amd64.amd64/cddl/lib/libuutil/_libinstall
--- lib/libc++__L ---
Building /usr/obj/usr/src/amd64.amd64/lib/libc++/valarray.pico
--- lib/liblzma__L ---
Building /usr/obj/usr/src/amd64.amd64/lib/liblzma/index_encoder.o
--- lib/libc++__L ---
Building /usr/obj/usr/src/amd64.amd64/lib/libc++/variant.pico
--- lib/ncurses/ncurses__L ---
Building /usr/obj/usr/src/amd64.amd64/lib/ncurses/ncurses/lib_color.o
--- lib/liblzma__L ---
Building /usr/obj/usr/src/amd64.amd64/lib/liblzma/stream_buffer_encoder.o
--- lib/ncurses/ncurses__L ---
Building /usr/obj/usr/src/amd64.amd64/lib/ncurses/ncurses/lib_colorset.o
--- lib_color.o ---
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:192:5: error: implicit
declaration of function '_nc_tiparm' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                                TIPARM_1(set_a_background, bg),
                                ^
/usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from macro
'TIPARM_1'
#define TIPARM_1(s,a) _nc_tiparm(1,s,a)
                      ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:192:5: error: incompatible
integer to pointer conversion passing 'int' to parameter of type 'const char *'
[-Werror,-Wint-conversion]
                                TIPARM_1(set_a_background, bg),
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from macro
'TIPARM_1'
#define TIPARM_1(s,a) _nc_tiparm(1,s,a)
                      ^~~~~~~~~~~~~~~~~
./term.h:850:77: note: passing argument to parameter here
extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tputs) (SCREEN*, const char *,
int, NCURSES_SP_OUTC);
                                                                            ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:197:5: error: implicit
declaration of function '_nc_tiparm' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                                TIPARM_1(set_background, toggled_colors(bg)),
                                ^
/usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from macro
'TIPARM_1'
#define TIPARM_1(s,a) _nc_tiparm(1,s,a)
                      ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:197:5: error: incompatible
integer to pointer conversion passing 'int' to parameter of type 'const char *'
[-Werror,-Wint-conversion]
                                TIPARM_1(set_background, toggled_colors(bg)),
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from macro
'TIPARM_1'
#define TIPARM_1(s,a) _nc_tiparm(1,s,a)
                      ^~~~~~~~~~~~~~~~~
./term.h:850:77: note: passing argument to parameter here
extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tputs) (SCREEN*, const char *,
int, NCURSES_SP_OUTC);
                                                                            ^
--- lib/liblzma__L ---
Building /usr/obj/usr/src/amd64.amd64/lib/liblzma/stream_encoder.o
--- lib/ncurses/ncurses__L ---
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:212:5: error: implicit
declaration of function '_nc_tiparm' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                                TIPARM_1(set_a_foreground, fg),
                                ^
/usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from macro
'TIPARM_1'
#define TIPARM_1(s,a) _nc_tiparm(1,s,a)
                      ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:212:5: error: incompatible
integer to pointer conversion passing 'int' to parameter of type 'const char *'
[-Werror,-Wint-conversion]
                                TIPARM_1(set_a_foreground, fg),
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from macro
'TIPARM_1'
#define TIPARM_1(s,a) _nc_tiparm(1,s,a)
                      ^~~~~~~~~~~~~~~~~
./term.h:850:77: note: passing argument to parameter here
extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tputs) (SCREEN*, const char *,
int, NCURSES_SP_OUTC);
                                                                            ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:217:5: error: implicit
declaration of function '_nc_tiparm' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                                TIPARM_1(set_foreground, toggled_colors(fg)),
                                ^
/usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from macro
'TIPARM_1'
#define TIPARM_1(s,a) _nc_tiparm(1,s,a)
                      ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:217:5: error: incompatible
integer to pointer conversion passing 'int' to parameter of type 'const char *'
[-Werror,-Wint-conversion]
                                TIPARM_1(set_foreground, toggled_colors(fg)),
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from macro
'TIPARM_1'
#define TIPARM_1(s,a) _nc_tiparm(1,s,a)
                      ^~~~~~~~~~~~~~~~~
./term.h:850:77: note: passing argument to parameter here
extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tputs) (SCREEN*, const char *,
int, NCURSES_SP_OUTC);
                                                                            ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:674:9: error: implicit
declaration of function '_nc_tiparm' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                      TIPARM_7(initialize_pair,
                      ^
/usr/src/contrib/ncurses/include/nc_tparm.h:87:35: note: expanded from macro
'TIPARM_7'
#define TIPARM_7(s,a,b,c,d,e,f,g) _nc_tiparm(7,s,a,b,c,d,e,f,g)
                                  ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:674:9: error: incompatible
integer to pointer conversion passing 'int' to parameter of type 'const char *'
[-Werror,-Wint-conversion]
                      TIPARM_7(initialize_pair,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/contrib/ncurses/include/nc_tparm.h:87:35: note: expanded from macro
'TIPARM_7'
#define TIPARM_7(s,a,b,c,d,e,f,g) _nc_tiparm(7,s,a,b,c,d,e,f,g)
                                  ^
/usr/src/contrib/ncurses/ncurses/curses.priv.h:538:86: note: expanded from
macro 'NCURSES_PUTP2'
#define NCURSES_PUTP2(name,value)    NCURSES_SP_NAME(_nc_putp)(NCURSES_SP_ARGx
name, value)
                                                                               
     ^~~~~
/usr/src/contrib/ncurses/ncurses/curses.priv.h:2727:93: note: passing argument
to parameter here
extern NCURSES_EXPORT(int)      NCURSES_SP_NAME(_nc_putp)(SCREEN*, const char
*, const char*);
                                                                               
            ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:748:9: error: implicit
declaration of function '_nc_tiparm' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                      TIPARM_4(initialize_color, color, r, g, b));
                      ^
/usr/src/contrib/ncurses/include/nc_tparm.h:84:29: note: expanded from macro
'TIPARM_4'
#define TIPARM_4(s,a,b,c,d) _nc_tiparm(4,s,a,b,c,d)
                            ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:748:9: error: incompatible
integer to pointer conversion passing 'int' to parameter of type 'const char *'
[-Werror,-Wint-conversion]
                      TIPARM_4(initialize_color, color, r, g, b));
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/contrib/ncurses/include/nc_tparm.h:84:29: note: expanded from macro
'TIPARM_4'
#define TIPARM_4(s,a,b,c,d) _nc_tiparm(4,s,a,b,c,d)
                            ^
/usr/src/contrib/ncurses/ncurses/curses.priv.h:538:86: note: expanded from
macro 'NCURSES_PUTP2'
#define NCURSES_PUTP2(name,value)    NCURSES_SP_NAME(_nc_putp)(NCURSES_SP_ARGx
name, value)
                                                                               
     ^~~~~
/usr/src/contrib/ncurses/ncurses/curses.priv.h:2727:93: note: passing argument
to parameter here
extern NCURSES_EXPORT(int)      NCURSES_SP_NAME(_nc_putp)(SCREEN*, const char
*, const char*);
                                                                               
            ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:1006:9: error: implicit
declaration of function '_nc_tiparm' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                                    TIPARM_1(set_color_pair, pair),
                                    ^
/usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from macro
'TIPARM_1'
#define TIPARM_1(s,a) _nc_tiparm(1,s,a)
                      ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:1006:9: error: incompatible
integer to pointer conversion passing 'int' to parameter of type 'const char *'
[-Werror,-Wint-conversion]
                                    TIPARM_1(set_color_pair, pair),
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from macro
'TIPARM_1'
#define TIPARM_1(s,a) _nc_tiparm(1,s,a)
                      ^~~~~~~~~~~~~~~~~
./term.h:850:77: note: passing argument to parameter here
extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tputs) (SCREEN*, const char *,
int, NCURSES_SP_OUTC);
                                                                            ^
14 errors generated.
*** [lib_color.o] Error code 1

make[4]: stopped in /usr/src/lib/ncurses/ncurses
.ERROR_TARGET='lib_color.o'
.ERROR_META_FILE='/usr/obj/usr/src/amd64.amd64/lib/ncurses/ncurses/lib_color.o.meta'
.MAKE.LEVEL='4'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'

make[2]: stopped in /usr/src
      254.15 real      1539.14 user       119.05 sys

make[1]: stopped in /usr/src

make: stopped in /usr/src

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