Build fails if libbfd development headers are installed
To reproduce: compile cairo 1.17.6 or git master on a Debian system that has binutils-dev
installed. (We don't use this in production builds, but individual developers might have binutils-dev
because it's a build-dependency for sysprof
.)
In file included from ../util/cairo-trace/lookup-symbol.c:63:
../util/cairo-trace/lookup-symbol.c: In function ‘_symtab_init’:
../util/cairo-trace/lookup-symbol.c:109:59: error: ‘PTR’ undeclared (first use in this function)
109 | symcount = bfd_read_minisymbols (symtab->bfd, false, (PTR) &symtab->syms, &size);
| ^~~