Summary: | build_id.c:36:20: error: unknown type name 'Elf_Nhdr' | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED MOVED | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | CC: | chadversary, emil.l.velikov, jsg, mattst88 |
Version: | 17.1 | Keywords: | bisected, regression |
Hardware: | x86-64 (AMD64) | ||
OS: | FreeBSD | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Vinson Lee
2017-02-25 01:39:00 UTC
Looking at the FreeBSD headers it appears they define Elf_Note not Elf_Nhdr. https://svnweb.freebsd.org/base/head/sys/sys/elf_common.h?revision=HEAD&view=co The OpenBSD headers define both at the moment to be compatible though the Elf_Note members on OpenBSD do not have the n_ prefix only the Elf_Nhdr structs do where as the FreeBSD Elf_Note has the n_ prefix. Build error introduced with this commit. commit d4fa083e11fa71abd50e615d6f02b6da4ea34644 Author: Matt Turner <mattst88@gmail.com> Date: Tue Feb 14 07:29:56 2017 -0800 util: Add utility build-id code. Provides the ability to read the .note.gnu.build-id section of ELF binaries, which is inserted by the --build-id=... flag to ld. Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Chad Versace <chadversary@chromium.org> Quick search showed the following handy website. In there you can see that things "broke" between FreeBSD 10 and 11 - former has Elf_Nhdr while latter does not. Not sure how to solve this - anyone having a platform like that feel free to send a patch to the mailing list :-) http://fxr.watson.org/fxr/ident?v=FREEBSD10;i=Elf_Nhdr Vinson do check the said site. Alternatively you can see/work with the FreeBSD people - they seems to have some partial solution there [1] [1] https://github.com/freebsd/freebsd-ports-graphics/blob/master/graphics/mesa-dri/files/patch-src_util_build__id.c -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1007. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.