Package: libelf-dev
Version: 0.165-1
Severity: serious

Dear Maintainer,

the newest upload of libelf-dev doesn't work with libc 2.21-6 and thus breaks
the build of mesa.
I've reproduced the FTBFS with the following minimal testcase:

cat > elf-ftbfs.c << EOF
#include <gelf.h>
EOF

gcc -c elf-ftbfs.c

In file included from /usr/include/gelf.h:32:0,
                 from elf-ftbfs.c:1:
/usr/include/libelf.h:280:8: error: unknown type name ‘Elf32_Chdr’
 extern Elf32_Chdr *elf32_getchdr (Elf_Scn *__scn);
        ^
/usr/include/libelf.h:281:8: error: unknown type name ‘Elf64_Chdr’
 extern Elf64_Chdr *elf64_getchdr (Elf_Scn *__scn);
        ^
In file included from elf-ftbfs.c:1:0:
/usr/include/gelf.h:89:9: error: unknown type name ‘Elf64_Chdr’
 typedef Elf64_Chdr GElf_Chdr;
         ^

Using libc 2.22 from experimental fixes this issue.

It seems that this implicit dependency on libc 2.22 was introduced in this
upstream change [1].

jcristau found the corresponding libc patch [2].

Please consider reverting the upstream change until we have libc 2.22 in
unstable.

Thanks,
Andreas

[1] 
https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=5ddb50af4a488fdec358570502cbe058acb8ae93
[2] https://sourceware.org/ml/libc-alpha/2015-05/msg00018.html

Attachment: signature.asc
Description: Digital signature

Reply via email to