After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 733468 - libgda-5.2.2 fails to build with -Werror=format-security
libgda-5.2.2 fails to build with -Werror=format-security
Status: RESOLVED OBSOLETE
Product: libgda
Classification: Other
Component: general
5.2.x
Other Linux
: Normal normal
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-20 19:30 UTC by Pacho Ramos
Modified: 2018-09-21 13:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pacho Ramos 2014-07-20 19:30:00 UTC
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
Comment 1 Murray Cumming 2014-11-17 11:09:41 UTC
> 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

The code around that line looks OK in git master:
https://git.gnome.org/browse/libgda/tree/libgda-ui/demos/ddl_queries.c#n475
Comment 2 GNOME Infrastructure Team 2018-09-21 13:49:32 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libgda/issues/80.