Source: qmenu
Version: 5.0.2-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wl,-z,relro -o qmenu qmenu.c -lncurses
> qmenu.c: In function ‘senum’:
> qmenu.c:2132:1: warning: type of ‘numero’ defaults to ‘int’ [-Wimplicit-int]
>  2132 | senum (numero)          /* Verifica se l'argomento e' un numero */
>       | ^~~~~
> qmenu.c: In function ‘selspool’:
> qmenu.c:2266:17: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  2266 |     printw (prts[t]);
>       |             ~~~~^~~
> qmenu.c:2277:25: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  2277 |             printw (prts[t]);
>       |                     ~~~~^~~
> qmenu.c:2285:25: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  2285 |             printw (prts[t]);
>       |                     ~~~~^~~
> qmenu.c:2294:25: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  2294 |             printw (prts[t]);
>       |                     ~~~~^~~
> qmenu.c:2302:25: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  2302 |             printw (prts[t]);
>       |                     ~~~~^~~
> qmenu.c: In function ‘confirm’:
> qmenu.c:2790:21: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  2790 |     printw (tag_item[t]);
>       |             ~~~~~~~~^~~
> qmenu.c:2801:29: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  2801 |             printw (tag_item[t]);
>       |                     ~~~~~~~~^~~
> qmenu.c:2809:29: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  2809 |             printw (tag_item[t]);
>       |                     ~~~~~~~~^~~
> qmenu.c:2818:29: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  2818 |             printw (tag_item[t]);
>       |                     ~~~~~~~~^~~
> qmenu.c:2826:29: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  2826 |             printw (tag_item[t]);
>       |                     ~~~~~~~~^~~
> qmenu.c: In function ‘display_config’:
> qmenu.c:3230:30: warning: format ‘%i’ expects argument of type ‘int’, but 
> argument 2 has type ‘long int’ [-Wformat=]
>  3230 |     printw (" LOGFILE_DIM = %i ", logfile_dim);
>       |                             ~^    ~~~~~~~~~~~
>       |                              |    |
>       |                              int  long int
>       |                             %li
> qmenu.c: In function ‘win_option’:
> qmenu.c:3311:17: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  3311 |     printw (prts[t]);
>       |             ~~~~^~~
> qmenu.c:3322:25: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  3322 |             printw (prts[t]);
>       |                     ~~~~^~~
> qmenu.c:3330:25: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  3330 |             printw (prts[t]);
>       |                     ~~~~^~~
> qmenu.c:3339:25: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  3339 |             printw (prts[t]);
>       |                     ~~~~^~~
> qmenu.c:3347:25: error: format not a string literal and no format arguments 
> [-Werror=format-security]
>  3347 |             printw (prts[t]);
>       |                     ~~~~^~~
> qmenu.c: In function ‘main’:
> qmenu.c:387:5: warning: ignoring return value of ‘system’ declared with 
> attribute ‘warn_unused_result’ [-Wunused-result]
>   387 |     system (linea);
>       |     ^~~~~~~~~~~~~~
> qmenu.c: In function ‘history_string’:
> qmenu.c:1904:9: warning: ignoring return value of ‘system’ declared with 
> attribute ‘warn_unused_result’ [-Wunused-result]
>  1904 |         system ("echo \"\" > qmenu.log");
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> qmenu.c:1908:9: warning: ignoring return value of ‘system’ declared with 
> attribute ‘warn_unused_result’ [-Wunused-result]
>  1908 |         system ("mv  qmenu.log qmenu.log.bak");
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> qmenu.c: In function ‘esegui’:
> qmenu.c:2173:5: warning: ignoring return value of ‘system’ declared with 
> attribute ‘warn_unused_result’ [-Wunused-result]
>  2173 |     system (comando);
>       |     ^~~~~~~~~~~~~~~~
> qmenu.c: In function ‘infoterm’:
> qmenu.c:2742:35: warning: ‘%s’ directive writing up to 31 bytes into a region 
> of size between 25 and 74 [-Wformat-overflow=]
>  2742 |     sprintf (riga, "%s %s:%s,[%s] %s", sistema, utente, porta, 
> termname (),
>       |                                   ^~
>  2743 |              lpdestenv);
>       |              ~~~~~~~~~             
> In file included from /usr/include/stdio.h:866,
>                  from /usr/include/curses.h:232,
>                  from qmenu.c:37:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:10: note: 
> ‘__builtin___sprintf_chk’ output 7 or more bytes (assuming 87) into a 
> destination of size 80
>    38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    39 |                                   __bos (__s), __fmt, __va_arg_pack 
> ());
>       |                                   
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> qmenu.c: In function ‘main’:
> qmenu.c:427:29: warning: ‘%.2d’ directive writing between 2 and 10 bytes into 
> a region of size 4 [-Wformat-overflow=]
>   427 |             sprintf (buf0, "%.2d", c1 - 1000);
>       |                             ^~~~
> qmenu.c:427:28: note: directive argument in the range [1, 2147482647]
>   427 |             sprintf (buf0, "%.2d", c1 - 1000);
>       |                            ^~~~~~
> In file included from /usr/include/stdio.h:866,
>                  from /usr/include/curses.h:232,
>                  from qmenu.c:37:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:10: note: 
> ‘__builtin___sprintf_chk’ output between 3 and 11 bytes into a destination of 
> size 4
>    38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    39 |                                   __bos (__s), __fmt, __va_arg_pack 
> ());
>       |                                   
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> make[1]: *** [debian/rules:7: override_dh_auto_build] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/qmenu_5.0.2-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to