<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - cairo-trace fails to compile with clang"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96467">96467</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cairo-trace fails to compile with clang
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>fsvm88@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The cairo-trace program included in the cairo release fails to build when using
clang.
There is a lengthy and quite old bug in the gentoo bugzilla about this:
<a href="https://bugs.gentoo.org/show_bug.cgi?id=483408">https://bugs.gentoo.org/show_bug.cgi?id=483408</a>

Can you please merge the following patch?
<a href="https://483408.bugs.gentoo.org/attachment.cgi?id=382588">https://483408.bugs.gentoo.org/attachment.cgi?id=382588</a>

The patch removes the extra libiberty.h include, as both bfd.h and libiberty.h
include ansidecl.h. I'm not sure why clang is so picky about this header and
I'm not sure this is the proper way to fix the issue, but with the patch cairo
builds fine, and the cairo-trace util seems to work properly (not
segfaulting/crashing when invoked).

Additional details:
- The first version that failed for me was 1.12.16, current stable still fails
- When I tested with cairo 1.12.16, clang was version 3.3; current stable
(3.8.0) still fails</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>