Both those issues should be solved by my bigger elf.h patch. E.g. it defines both EM_PPC64 and EM_X86_64. I'll merge latest git and resubmit for review again.
On Tue, Sep 12, 2017 at 4:23 PM, Christian Weisgerber <na...@mips.inka.de> wrote: > Martin Pieuchot: > >> > So here's a first step, introducing /usr/include/elf.h. Could some of >> > you run a bulk with it and report the possible breakages? >> >> Now that the offending function declaration has been remove from libc >> libelf builds as before. >> >> Could you guys tell us if there's any other fallout from this diff? > > On amd64, two ports failed to build: devel/libdwarf and devel/valgrind. > > ===> devel/libdwarf > print_reloc.c:150:10: error: use of undeclared identifier 'EM_PPC64' > case EM_PPC64: > ^ > > ===> devel/valgrind > m_coredump/coredump-elf.c:105:22: error: use of undeclared identifier > 'EM_X86_64' > ehdr->e_machine = VG_ELF_MACHINE; > ^ > ./pub_core_machine.h:51:31: note: expanded from macro 'VG_ELF_MACHINE' > # define VG_ELF_MACHINE EM_X86_64 > ^ > > -- > Christian "naddy" Weisgerber na...@mips.inka.de