Source: iptstate
Version: 2.2.6-1
Severity: serious
Tags: ftbfs

iptstate fails to build from source in unstable. A build ends as
follows:

| g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security iptstate.cc -o iptstate -lncurses 
-lnetfilter_conntrack
| iptstate.cc: In function ‘void get_input(WINDOW*, std::string&, const 
string&, const flags_t&)’:
| iptstate.cc:685:30: error: format not a string literal and no format 
arguments [-Werror=format-security]
|   685 |   wprintw(cmd, prompt.c_str());
|       |                              ^
| iptstate.cc: In function ‘void c_warn(WINDOW*, const string&, const 
flags_t&)’:
| iptstate.cc:750:32: error: format not a string literal and no format 
arguments [-Werror=format-security]
|   750 |   wprintw(warn, warning.c_str());
|       |                                ^
| iptstate.cc: In function ‘int conntrack_hook(nf_conntrack_msg_type, 
nf_conntrack*, void*)’:
| iptstate.cc:1002:30: warning: ‘:’ directive output may be truncated writing 1 
byte into a region of size between 0 and 5 [-Wformat-truncation=]
|  1002 |   snprintf(ttlc,11, "%3i:%02i:%02i", hours, minutes, seconds);
|       |                              ^
| iptstate.cc:1002:21: note: directive argument in the range [-59, 59]
|  1002 |   snprintf(ttlc,11, "%3i:%02i:%02i", hours, minutes, seconds);
|       |                     ^~~~~~~~~~~~~~~
| iptstate.cc:1002:11: note: ‘snprintf’ output between 10 and 16 bytes into a 
destination of size 11
|  1002 |   snprintf(ttlc,11, "%3i:%02i:%02i", hours, minutes, seconds);
|       |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cc1plus: some warnings being treated as errors
| make[1]: *** [Makefile:34: iptstate] Error 1
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_build: error: make -j1 returned exit code 2
| make: *** [debian/rules:4: build] Error 25
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Helmut

Reply via email to