[Mesa-dev] [Bug 99956] build_id.c:36:20: error: unknown type name 'Elf_Nhdr'
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Feb 25 01:39:00 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=99956
Bug ID: 99956
Summary: build_id.c:36:20: error: unknown type name 'Elf_Nhdr'
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: FreeBSD
Status: NEW
Keywords: regression
Severity: normal
Priority: medium
Component: Mesa core
Assignee: mesa-dev at lists.freedesktop.org
Reporter: vlee at freedesktop.org
QA Contact: mesa-dev at lists.freedesktop.org
CC: emil.l.velikov at gmail.com, jsg at openbsd.org,
mattst88 at gmail.com
mesa: 292c24ddac5acc35676424f05291c101fcd47b3e (master 17.1.0-devel)
FreeBSD build error.
CC libmesautil_la-build_id.lo
build_id.c:36:20: error: unknown type name 'Elf_Nhdr'
#define ElfW(type) Elf_##type
^
build_id.c:42:4: note: in expansion of macro 'ElfW'
ElfW(Nhdr) nhdr;
^
build_id.c: In function 'build_id_find_nhdr_callback':
build_id.c:71:24: error: request for member 'n_type' in something not a
structure or union
if (note->nhdr.n_type == NT_GNU_BUILD_ID &&
^
build_id.c:72:23: error: request for member 'n_descsz' in something not a
structure or union
note->nhdr.n_descsz != 0 &&
^
build_id.c:73:23: error: request for member 'n_namesz' in something not a
structure or union
note->nhdr.n_namesz == 4 &&
^
build_id.c:36:20: error: 'Elf_Nhdr' undeclared (first use in this function)
#define ElfW(type) Elf_##type
^
build_id.c:79:33: note: in expansion of macro 'ElfW'
size_t offset = sizeof(ElfW(Nhdr)) +
^
build_id.c:36:20: note: each undeclared identifier is reported only once for
each function it appears in
#define ElfW(type) Elf_##type
^
build_id.c:79:33: note: in expansion of macro 'ElfW'
size_t offset = sizeof(ElfW(Nhdr)) +
^
build_id.c:80:42: error: request for member 'n_namesz' in something not a
structure or union
ALIGN(note->nhdr.n_namesz, 4) +
^
build_id.c:39:35: note: in definition of macro 'ALIGN'
#define ALIGN(val, align) (((val) + (align) - 1) & ~((align) - 1))
^
build_id.c:81:42: error: request for member 'n_descsz' in something not a
structure or union
ALIGN(note->nhdr.n_descsz, 4);
^
build_id.c:39:35: note: in definition of macro 'ALIGN'
#define ALIGN(val, align) (((val) + (align) - 1) & ~((align) - 1))
^
build_id.c: In function 'build_id_length':
build_id.c:107:21: error: request for member 'n_descsz' in something not a
structure or union
return note->nhdr.n_descsz;
^
build_id.c:108:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170225/25ac32ca/attachment.html>
More information about the mesa-dev
mailing list