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 662490 - Fails to build with -Werror=format-security
Fails to build with -Werror=format-security
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: build
git master
Other Linux
: Normal normal
: ---
Assigned To: gnote-maint
gnote-maint
Depends on:
Blocks:
 
 
Reported: 2011-10-23 00:01 UTC by Vincent Cheng
Modified: 2011-10-23 11:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Cheng 2011-10-23 00:01:35 UTC
Bug report forwarded from Debian BTS: http://bugs.debian.org/646265

Gnote currently fails to build from source in Ubuntu when compiled with -Werror=format-security (see https://launchpadlibrarian.net/83182557/buildlog_ubuntu-precise-i386.gnote_0.8.0-1_FAILEDTOBUILD.txt.gz for the full build log):

  CC    remotecontrolproxy.o
remotecontrolproxy.cpp: In static member function 'static void gnote::RemoteControlProxy::load_introspection_xml()':
remotecontrolproxy.cpp:129:5: error: format not a string literal and no format arguments [-Werror=format-security]
cc1plus: some warnings being treated as errors
Comment 1 Aurimas Černius 2011-10-23 11:30:22 UTC
I added -Wformat-security to compilation flags to prevent such issues in the future.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.