bug-plotutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-plotutils] Build error with -Werror=format-security


From: Andreas Metzler
Subject: [Bug-plotutils] Build error with -Werror=format-security
Date: Sun, 3 Jan 2016 15:30:30 +0100
User-agent: Mutt/1.5.24 (2015-08-30)

Hello,

plotutils 2.6 FTBFS with -Werror=format-security:

g++ -DHAVE_CONFIG_H -I. -I.. -I./../include -I./include  -Wdate-time 
-D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -c -o gram.o gram.cc
gram.yy: In function 'char* do_sprintf(const char*, const double*, int)':
gram.yy:1836:50: error: format not a string literal and no format arguments 
[-Werror=format-security]
        sprintf(sprintf_buf, one_format.contents());
                                                  ^
gram.yy: In function 'int yyparse()':
gram.yy:347:29: warning: ignoring return value of 'int system(const char*)', 
declared with attribute warn_unused_result [-Wunused-result]
cc1plus: some warnings being treated as errors
Makefile:525: recipe for target 'gram.o' failed
make[4]: *** [gram.o] Error 1

This was reported in Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=1037251
fixed there by the attached patch with changelog message
* Wed Dec 04 2013 Stanislav Ochotnicky <address@hidden> - 2.6-10
- Fix FTBFS when "-Werror=format-security" is used


cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

Attachment: plotutils-werror-format-security.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]