libgda-5.2.2 fails to build with -Werror=format-security
@pachoramos1
Submitted by Pacho Ramos Assigned to mal..@..db.org
Link to original bug (#733468)
Description
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME="GNU\ Data\ Access" -DPACKAGE_TARNAME="libgda" -DPACKAGE_VERSION="5.2.2" -DPACKAGE_STRING="GNU\ Data\ Access\ 5.2.2" -DPACKAGE_BUGREPORT="https://bugzilla.gnome.org/enter_bug.cgi?product=libgda" -DPACKAGE_URL="http://www.gnome-db.org" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_INT_P=8 -DHAVE_LOCALTIME_R=1 -DUSE_MLOCK=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GDU=1 -DGETTEXT_PACKAGE="libgda-5.0" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DHAVE_UI=1 -DHAVE_GDKPIXBUF=1 -DHAVE_GLADE=1 -DISO_CODES_PREFIX="/usr" -DHAVE_LIBCRYPTO=/**/ -DHAVE_ICONV=1 -DICONV_CONST= -DHAVE_READLINE=1 -DHAVE_HISTORY=1 -DHAVE_TERMIOS_H=1 -I. -I../.. -I../../libgda -I../.. -I../../libgda -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -DLIBGDA_ABI_NAME="libgda-5.0" -Wall -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPREFIX=""/usr"" -DSYSCONFDIR=""/etc"" -DDATADIR=""/usr/share"" -DLIBDIR=""/usr/lib64"" -I/usr/include/db4.8 -march=native -Werror=format-security -g0 -O2 -c login.c grid_pict.c: In function ‘do_grid_pict’:grid_rw.c: In function ‘do_grid_rw’:
grid_rw.c:26:13: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]grid_pict.c:30:13: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
linked_model_param.c: In function ‘do_linked_model_param’:
linked_model_param.c:38:13: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
linked_grid_form.c: In function ‘do_linked_grid_form’:
linked_grid_form.c:82:13: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
grid_model_change.c: In function ‘do_grid_model_change’:
grid_model_change.c:39:13: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
grid_data_layout.c: In function ‘do_grid_data_layout’:
grid_data_layout.c:29:13: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
ddl_queries.c: In function ‘do_ddl_queries’:
ddl_queries.c:66:13: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
ddl_queries.c: In function ‘show_named_parameters’:
ddl_queries.c:412:9: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
ddl_queries.c: In function ‘show_sql’:
ddl_queries.c:481:10: error: format not a string literal and no format arguments [-Werror=format-security]
cc1: some warnings being treated as errors
make[3]: *** [ddl_queries.o] Error 1
make[3]: *** Waiting for unfinished jobs....
login.c: In function ‘do_login’:
login.c:70:13: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
make[3]: Leaving directory /var/tmp/portage/gnome-extra/libgda-5.2.2/work/libgda-5.2.2/libgda-ui/demos' make[2]: *** [all] Error 2 make[2]: Leaving directory
/var/tmp/portage/gnome-extra/libgda-5.2.2/work/libgda-5.2.2/libgda-ui/demos'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-extra/libgda-5.2.2/work/libgda-5.2.2/libgda-ui'
make: *** [all-recursive] Error 1
Version: 5.2.x