GNOME Bugzilla – Bug 565904
gnumeric 1.9.3 does not build with CFLAGS="-Werror=format-security"
Last modified: 2008-12-29 15:21:51 UTC
I'm currently building gnumeric 1.9.3 in Mandriva cooker, and its default CFLAGS is: -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 Please note that "-Werror=format-security" option[1], which will make following usage of function impossible: g_warning (msg); Instead, you must use g_warning ("%s", msg); For the record, I've put the patch here: http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/gnumeric/current/SOURCES/gnumeric-1.9.3-fix-str-fmt.patch [1] http://wiki.mandriva.com/en/Development/Packaging/Problems#format_not_a_string_literal_and_no_format_arguments
*** This bug has been marked as a duplicate of 559291 ***
We might still have issues in lpsolve.c
Fixed. And -Werror=format-security added.