Bug 259198 - libncurses: Fails to build: -Werror,-Wimplicit-function-declaration, -Wint-conversion
Summary: libncurses: Fails to build: -Werror,-Wimplicit-function-declaration, -Wint-co...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: Baptiste Daroussin
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2021-10-16 05:32 UTC by Oleh Vinichenko
Modified: 2021-10-20 09:35 UTC (History)
0 users

See Also:
koobs: maintainer-feedback? (bapt)


Attachments
src-dot-conf (605 bytes, text/plain)
2021-10-16 05:32 UTC, Oleh Vinichenko
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh Vinichenko 2021-10-16 05:32:48 UTC
Created attachment 228739 [details]
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
Comment 1 Oleh Vinichenko 2021-10-20 09:35:40 UTC
attempt to build 14-head is from latest stable/13 ( up to date ) branch host. i will attach full build.log, compressed with fresh try and with steps to reproduce.