<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - configure check for -Wformat-security is broken"
href="https://bugs.freedesktop.org/show_bug.cgi?id=59621">59621</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>configure check for -Wformat-security is broken
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chpe@gnome.org
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>The configure check for -Wformat-security is broken because it checks the flags
one-by-one, but -Wformat-security only works together with -Wformat:
configure:15548: checking if gcc -std=gnu99 supports flag -Wformat-security in
envvar CFLAGS
configure:15559: gcc -std=gnu99 -c -Werror -Wformat-security conftest.c >&5
cc1: error: -Wformat-security ignored without -Wformat
[-Werror=format-security]
cc1: all warnings being treated as errors
configure:15559: $? = 1
I think this broke in commit eb2e280f9c59b66965c9316eadc4c113a13ca744 ; prior
to that commit, the flags were appended to CFLAGS directly and there is a check
for -Wformat=2 before the -Wformat-security check.
systemd is git master, gcc is gcc (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>