Bug#810885: libelf-dev requires libc >= 2.22

2016-01-13 Thread Andreas Boll
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 
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


signature.asc
Description: Digital signature


Bug#810885: libelf-dev requires libc >= 2.22

2016-01-13 Thread Kurt Roeckx
On Wed, Jan 13, 2016 at 11:36:51AM +0100, Andreas Boll wrote:
> 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.

As far as I understand the binutils changes in testing and
unstable now generate this, causing elfutils in testing and
unstable to break on arches that don't have async unwind tables
(#746516 / #746426).  As far as I understand I need to either
support that or have the async unwind tables.

But maybe I can fix the installed headers to not require a newer
glibc version ...


Kurt



Bug#810885: libelf-dev requires libc >= 2.22

2016-01-13 Thread Mark Wielaard
On Wed, 2016-01-13 at 16:58 +0100, Kurt Roeckx wrote:
> But maybe I can fix the installed headers to not require a newer
> glibc version ...

I just posted an upstream fix to do this:
https://lists.fedorahosted.org/archives/list/elfutils-devel%
40lists.fedorahosted.org/message/2FU5HOHMLA47PPD44NQQPTNHDZL7RNPK/

I tried to CC this bug report, but that seems to not have worked.

Sorry for the breakage. I added a new test to make sure we catch such
issues earlier next time.