Bug 2080201 - liboping-1.10.0-20.fc37 FTBFS: oping.c:1128:25: error: format not a string literal and no format arguments
Summary: liboping-1.10.0-20.fc37 FTBFS: oping.c:1128:25: error: format not a string li...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: liboping
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Frantisek Sumsal
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F37FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-04-29 08:50 UTC by Petr Pisar
Modified: 2022-05-03 18:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-03 18:46:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2022-04-29 08:50:05 UTC
liboping-1.10.0-20.fc37 fails to build in Fedora 37:

gcc -DHAVE_CONFIG_H -I.    -Wall -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o oping.o oping.c
[...]
oping.c: In function 'update_graph_prettyping':
oping.c:1128:25: error: format not a string literal and no format arguments [-Werror=format-security]
 1128 |                         mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, symbol);
      |                         ^~~~~~~~~
oping.c: In function 'update_graph_histogram':
oping.c:1226:41: error: format not a string literal and no format arguments [-Werror=format-security]
 1226 |                                         hist_symbols_utf8[index]);
      |                                         ^~~~~~~~~~~~~~~~~
oping.c: In function 'update_host_hook':
oping.c:1601:38: warning: too many arguments for format [-Wformat-extra-args]
 1601 |                         HOST_PRINTF ("%zu bytes from %s (%s): icmp_seq=%u ttl=%i ",
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
oping.c:1578:45: note: in definition of macro 'HOST_PRINTF'
 1578 | # define HOST_PRINTF(...) wprintw(main_win, __VA_ARGS__)
      |                                             ^~~~~~~~~~~

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/12739812>. This is probably triggered by upgading ncurses-devel from 6.2-9.20210508.fc36 to 6.3-1.20220416.fc37.

Comment 1 Frantisek Sumsal 2022-05-03 18:46:40 UTC
Should be addressed by https://bodhi.fedoraproject.org/updates/FEDORA-2022-c6bc198b90.


Note You need to log in before you can comment on or make changes to this bug.