GNOME Bugzilla – Bug 785245
tracker 1.99.1 fails to build with -Werror=format-security
Last modified: 2017-07-23 20:36:41 UTC
I tried building tracker 1.99.1 on Ubuntu 17.04 but got this error. libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -Wno-unused-variable -Wno-unused-function -Wno-shadow -Wno-format-nonliteral -Wno-sign-compare -Wno-strict-prototypes -DG_LOG_DOMAIN=\"Tracker\" -DTRACKER_COMPILATION -I../../src -I../../src -DSHAREDIR=\"/usr/share\" -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c tracker-db-manager.c -fPIC -DPIC -o .libs/tracker-db-manager.o tracker-db-interface-sqlite.c: In function ‘tracker_db_interface_sqlite_wal_checkpoint’: tracker-db-interface-sqlite.c:1900:16: error: format not a string literal and no format arguments [-Werror=format-security] sqlite3_errstr (return_val)); ^~~~~~~~~~~~~~
Created attachment 356227 [details] [review] libtracker-data: fix format-security issue
Comment on attachment 356227 [details] [review] libtracker-data: fix format-security issue Looks good. Thanks
Attachment 356227 [details] pushed as 1f39141 - libtracker-data: fix format-security issue