Actions
Bug #3867
closedwindows: compile warnings
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
A recent mingw update triggered lots of warnings:
In file included from alert-debuglog.c:45: alert-debuglog.c: In function 'AlertDebugLogger': alert-debuglog.c:169:43: warning: unknown conversion type character 'l' in format [-Wformat=] 169 | MemBufferWriteString(aft->buffer, "PCAP PKT NUM: %"PRIu64"\n", p->pcap_cnt); | ^~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~ alert-debuglog.c:169:43: warning: too many arguments for format [-Wformat-extra-args] 169 | MemBufferWriteString(aft->buffer, "PCAP PKT NUM: %"PRIu64"\n", p->pcap_cnt); | ^~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~ alert-debuglog.c:209:43: warning: unknown conversion type character 'l' in format [-Wformat=] 209 | MemBufferWriteString(aft->buffer, "FLOW PKTS TODST: %"PRIu32"\n" | ^~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~ alert-debuglog.c:209:43: warning: too many arguments for format [-Wformat-extra-args] 209 | MemBufferWriteString(aft->buffer, "FLOW PKTS TODST: %"PRIu32"\n" | ^~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~ alert-debuglog.c:269:21: warning: unknown conversion type character 'l' in format [-Wformat=] 269 | "ALERT IN TX [%02d]: %"PRIu64"\n", i, pa->tx_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~ alert-debuglog.c:269:21: warning: too many arguments for format [-Wformat-extra-args] 269 | "ALERT IN TX [%02d]: %"PRIu64"\n", i, pa->tx_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~
Compiler is Gcc 10.1.0.
Files
Updated by Victor Julien over 2 years ago
- Target version changed from 6.0.0rc1 to 6.0.1
Updated by Victor Julien over 2 years ago
- Status changed from New to Assigned
- Assignee set to Victor Julien
Updated by Peter Manev over 2 years ago
- File allout.txt allout.txt added
Have a more complete list I meant to upload.
Please find attached.
Updated by Victor Julien over 2 years ago
Peter can you try again with the git master? It seems fixed in CI, but not in my local setup.
Updated by Peter Manev over 2 years ago
running it now on fresh 2019 Server setup - seems i got stuck on cbindgen
checking for ./rust/dist/rust-bindings.h... no checking for ./rust/gen/rust-bindings.h... no checking for cbindgen... no Warning: cbindgen too old or not found, it is required to generate header files. To install: cargo install --force cbindgen configure: error: cbindgen required
Did i miss something ?
Updated by Peter Manev over 2 years ago
I missed
cargo install -f cbindgen --root /usr/
Updated by Peter Manev over 2 years ago
I can confirm no more warnings with
# src/.libs/suricata -V [2624] 6/11/2020 -- 13:17:26 - (win32-service.c:54) <Info> (SCRunningAsService) -- Running as service: no This is Suricata version 6.0.1-dev (2ede73611 2020-11-04)
Updated by Victor Julien over 2 years ago
- Target version changed from 6.0.1 to 6.0.2
While it seems to have improved, I still get some of these warnings. So leaving the ticket open for now.
Updated by Victor Julien over 2 years ago
- Target version changed from 6.0.2 to 7.0.0-beta1
Updated by Victor Julien about 1 year ago
- Status changed from Assigned to New
- Assignee deleted (
Victor Julien)
Updated by Victor Julien 7 months ago
- Target version changed from 7.0.0-beta1 to 8.0.0-beta1
Updated by Victor Julien 19 days ago
- Status changed from New to Closed
- Assignee deleted (
Victor Julien) - Target version deleted (
8.0.0-beta1)
No longer seeing these in master and master-6.0.x
Actions