cairo-trace fails to compile with clang
Submitted by Fabio Scaccabarozzi
Assigned to Chris Wilson @ickle
Description
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: https://bugs.gentoo.org/show_bug.cgi?id=483408
Can you please merge the following patch? https://483408.bugs.gentoo.org/attachment.cgi?id=382588
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