Summary: | app-emulation/dosemu fails to compile with format-security | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Hanno Böck <hanno> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | slyfox |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 259417 | ||
Attachments: | dosemu-1.4.1_pre20091009:20140825-222748.log |
Description
Agostino Sarubbo
![]() Created attachment 383668 [details]
dosemu-1.4.1_pre20091009:20140825-222748.log
build log
The error message doesn't look like -Wformat-security. But I can't reproduce it with the current ebuild anyway. Can you retest if this is still an issue? you right. it is not a format security, but it still fails for me. I'd say it's a -Werror=format-security bug. Needs a bit of scrolling up to find actual gcc crash. The build log was: x86_64-pc-linux-gnu-gcc -c -MP -MMD -I../../../../src/include -I../../../../src/plugin/include -Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -march=native -Wformat -Werror=format-security -g0 -O2 -fno-pic -fno-strict-aliasing -Wno-pointer-sign -pipe -o debug.o debug.c debug.c:15:3: error: format not a string literal and no format arguments [-Werror=format-security] debug.c:17:3: error: format not a string literal and no format arguments [-Werror=format-security] debug.c: In function 'start_gdb': debug.c:28:3: error: format not a string literal and no format arguments [-Werror=format-security] debug.c: In function 'collect_info': cc1: some warnings being treated as errors make[2]: *** [debug.o] Error 1 I think it's src/arch/linux/async/debug.c Was fixed upstream as https://sourceforge.net/p/dosemu/code/ci/44436f19b9ac53549adf7896d673d95b7e50adaf/#diff-1 : commit 44436f19b9ac53549adf7896d673d95b7e50adaf Author: Bart Oldeman <bartoldeman@users.sourceforge.net> Date: Sat May 28 22:01:59 2011 +0000 static void gdb_command(char *cmd) { - printf(cmd); + printf("%s", cmd); fflush(stdout); - fprintf(gdb_f, cmd); + fprintf(gdb_f, "%s", cmd); fflush(gdb_f); } Fix is a part of latest stable dosemu-1.4.1_pre20130107. |