From MAILER-DAEMON Sun Jan 03 10:13:41 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1aFkLl-0002Xg-6u
	for mharc-bug-plotutils@gnu.org; Sun, 03 Jan 2016 10:13:41 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38281)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1aFjgL-0001Ds-L9
	for bug-plotutils@gnu.org; Sun, 03 Jan 2016 09:30:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1aFjgI-0006qv-82
	for bug-plotutils@gnu.org; Sun, 03 Jan 2016 09:30:53 -0500
Received: from vsrv21575.customer.vlinux.de ([31.15.64.248]:55215)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1aFjgI-0006qm-1t
	for bug-plotutils@gnu.org; Sun, 03 Jan 2016 09:30:50 -0500
Received: from 91-115-38-81.adsl.highway.telekom.at ([91.115.38.81]
	helo=argenau.bebt.de) by vsrv21575.customer.vlinux.de with esmtpsa
	(TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86)
	(envelope-from <ametzler@bebt.de>) id 1aFjg0-0002DI-2R
	for bug-plotutils@gnu.org; Sun, 03 Jan 2016 14:30:46 +0000
Received: from localhost ([127.0.0.1] helo=argenau.bebt.de)
	by argenau.bebt.de with esmtps
	(TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87_RC2)
	(envelope-from <ametzler@bebt.de>) id 1aFjfz-0005rC-KH
	for bug-plotutils@gnu.org; Sun, 03 Jan 2016 15:30:31 +0100
Date: Sun, 3 Jan 2016 15:30:30 +0100
From: Andreas Metzler <ametzler@bebt.de>
To: bug-plotutils@gnu.org
Message-ID: <20160103143030.GC1222@argenau.bebt.de>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="u3/rZRmxL6MmkK24"
Content-Disposition: inline
User-Agent: Mutt/1.5.24 (2015-08-30)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 31.15.64.248
X-Mailman-Approved-At: Sun, 03 Jan 2016 10:13:40 -0500
Subject: [Bug-plotutils] Build error with -Werror=format-security
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 03 Jan 2016 14:30:54 -0000


--u3/rZRmxL6MmkK24
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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 <sochotnicky@redhat.com> - 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'

--u3/rZRmxL6MmkK24
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="plotutils-werror-format-security.patch"

diff --git a/pic2plot/gram.yy b/pic2plot/gram.yy
index d11320b..1bcce46 100644
--- a/pic2plot/gram.yy
+++ b/pic2plot/gram.yy
@@ -1833,7 +1833,7 @@ do_sprintf(const char *form, const double *v, int nv)
 	    {
 	      one_format += *form++;
 	      one_format += '\0';
-	      sprintf(sprintf_buf, one_format.contents());
+	      sprintf(sprintf_buf, "%s", one_format.contents());
 	    }
 	  else 
 	    {

--u3/rZRmxL6MmkK24--


From MAILER-DAEMON Sun Jan 03 13:12:50 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1aFn98-0006IT-Pk
	for mharc-bug-plotutils@gnu.org; Sun, 03 Jan 2016 13:12:50 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33655)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1aFn96-0006IN-Qi
	for bug-plotutils@gnu.org; Sun, 03 Jan 2016 13:12:49 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1aFn93-00054y-Kw
	for bug-plotutils@gnu.org; Sun, 03 Jan 2016 13:12:48 -0500
Received: from vsrv21575.customer.vlinux.de ([31.15.64.248]:55222)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ametzler@bebt.de>) id 1aFn93-00054m-Eu
	for bug-plotutils@gnu.org; Sun, 03 Jan 2016 13:12:45 -0500
Received: from 91-115-38-81.adsl.highway.telekom.at ([91.115.38.81]
	helo=argenau.bebt.de) by vsrv21575.customer.vlinux.de with esmtpsa
	(TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86)
	(envelope-from <ametzler@bebt.de>) id 1aFn90-0003ID-Nj
	for bug-plotutils@gnu.org; Sun, 03 Jan 2016 18:12:43 +0000
Received: from localhost ([127.0.0.1] helo=argenau.bebt.de)
	by argenau.bebt.de with esmtps
	(TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87_RC2)
	(envelope-from <ametzler@bebt.de>) id 1aFn90-00076g-Tm
	for bug-plotutils@gnu.org; Sun, 03 Jan 2016 19:12:42 +0100
Date: Sun, 3 Jan 2016 19:12:41 +0100
From: Andreas Metzler <ametzler@bebt.de>
To: bug-plotutils@gnu.org
Message-ID: <20160103181241.GD1222@argenau.bebt.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.24 (2015-08-30)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 31.15.64.248
Subject: [Bug-plotutils] FTBFS with not so recent automake - missing
	AC_PROG_CXX
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 03 Jan 2016 18:12:49 -0000

Hello,

autoreconf with current automake fails due to missing AC_PROG_CXX in
configure.ac.

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'


