[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#997183: meterec: FTBFS: display.c:474:9: error: format not a string literal and no format arguments [-Werror=format-security]



Source: meterec
Version: 0.9.3-1
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):
> gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -Wall  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -c -o display.o display.c
> display.c: In function ‘display_tiny_meter’:
> display.c:474:9: error: format not a string literal and no format arguments [-Werror=format-security]
>   474 |         wprintw(win, blink + 2*pos);
>       |         ^~~~~~~
> display.c: In function ‘display_ports’:
> display.c:1370:46: warning: zero-length gnu_printf format string [-Wformat-zero-length]
>  1370 |                                 wprintw(win, "");
>       |                                              ^~
> gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -Wall  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -c -o queue.o queue.c
> gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -Wall  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -c -o keyboard.o keyboard.c
> gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -Wall  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -c -o session.o session.c
> gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -Wall  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -c -o disk.o disk.c
> session.c: In function ‘session_callback’:
> session.c:61:9: warning: ‘jack_session_reply’ is deprecated [-Wdeprecated-declarations]
>    61 |         jack_session_reply( meterec->client, event );
>       |         ^~~~~~~~~~~~~~~~~~
> In file included from session.c:33:
> /usr/include/jack/session.h:204:5: note: declared here
>   204 | int jack_session_reply (jack_client_t        *client,
>       |     ^~~~~~~~~~~~~~~~~~
> session.c:64:17: warning: ‘jack_session_event_free’ is deprecated [-Wdeprecated-declarations]
>    64 |                 jack_session_event_free(event);
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from session.c:33:
> /usr/include/jack/session.h:217:6: note: declared here
>   217 | void jack_session_event_free (jack_session_event_t *event) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
>       |      ^~~~~~~~~~~~~~~~~~~~~~~
> session.c:68:9: warning: ‘jack_session_event_free’ is deprecated [-Wdeprecated-declarations]
>    68 |         jack_session_event_free (event);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from session.c:33:
> /usr/include/jack/session.h:217:6: note: declared here
>   217 | void jack_session_event_free (jack_session_event_t *event) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
>       |      ^~~~~~~~~~~~~~~~~~~~~~~
> gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -Wall  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -c -o meterec.o meterec.c
> meterec.c: In function ‘main’:
> meterec.c:1302:9: warning: ‘jack_set_session_callback’ is deprecated [-Wdeprecated-declarations]
>  1302 |         jack_set_session_callback(meterec->client, session_callback, meterec);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from meterec.c:48:
> /usr/include/jack/session.h:187:5: note: declared here
>   187 | int jack_set_session_callback (jack_client_t       *client,
>       |     ^~~~~~~~~~~~~~~~~~~~~~~~~
> gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -Wall  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/opus   -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -c -o test.o test.c
> cc1: some warnings being treated as errors
> make[2]: *** [Makefile:501: display.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/meterec_0.9.3-1_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 to: