=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for libdwarf-20161124 cd libdwarf && make clang -I/usr/pkg/include/libelf -O2 -I/usr/pkg/include/libelf -I. -I. -fPIC -c ./dwgetopt.c clang -I/usr/pkg/include/libelf -O2 -I/usr/pkg/include/libelf -I. -I. -fPIC ./gennames.c dwgetopt.o -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o gennames grep DW_DLE libdwarf.h >errmsg_check_list clang -I/usr/pkg/include/libelf -O2 -I/usr/pkg/include/libelf -I. -I. -fPIC -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -DTESTING ./dwarf_errmsg_list.c -o errmsg_check ./errmsg_check -f errmsg_check_list rm -f dwarf_names.h dwarf_names.c ./gennames -s -i . -o . ./gennames [ 2016-11-24 14:21:17-08:00 Release] Arguments: -s -i . -o . clang -I/usr/pkg/include/libelf -O2 -I/usr/pkg/include/libelf -I. -I. -fPIC -I/usr/pkg/include/libelf -c dwarf_abbrev.c clang -I/usr/pkg/include/libelf -O2 -I/usr/pkg/include/libelf -I. -I. -fPIC -I/usr/pkg/include/libelf -c dwarf_alloc.c clang -I/usr/pkg/include/libelf -O2 -I/usr/pkg/include/libelf -I. -I. -fPIC -I/usr/pkg/include/libelf -c dwarf_arange.c clang -I/usr/pkg/include/libelf -O2 -I/usr/pkg/include/libelf -I. -I. -fPIC -I/usr/pkg/include/libelf -c dwarf_die_deliv.c clang -I/usr/pkg/include/libelf -O2 -I/usr/pkg/include/libelf -I. -I. -fPIC -I/usr/pkg/include/libelf -c dwarf_dsc.c clang -I/usr/pkg/include/libelf -O2 -I/usr/pkg/include/libelf -I. -I. -fPIC -I/usr/pkg/include/libelf -c dwarf_elf_access.c In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:94:3: error: typedef redefinition with different types ('struct Elf32_Ehdr' vs 'struct Elf32_Ehdr') } Elf32_Ehdr; ^ /usr/include/elf.h:112:3: note: previous definition is here } Elf32_Ehdr; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:112:3: error: typedef redefinition with different types ('struct Elf64_Ehdr' vs 'struct Elf64_Ehdr') } Elf64_Ehdr; ^ /usr/include/elf.h:129:3: note: previous definition is here } Elf64_Ehdr; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:155:9: warning: 'ELFOSABI_NONE' macro redefined [-Wmacro-redefined] #define ELFOSABI_NONE 0 /* No extensions or unspecified */ ^ /usr/include/elf.h:189:9: note: previous definition is here #define ELFOSABI_NONE ELFOSABI_SYSV ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:156:9: warning: 'ELFOSABI_SYSV' macro redefined [-Wmacro-redefined] #define ELFOSABI_SYSV ELFOSABI_NONE ^ /usr/include/elf.h:169:9: note: previous definition is here #define ELFOSABI_SYSV 0 /* UNIX System V ABI */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:161:9: warning: 'ELFOSABI_AIX' macro redefined [-Wmacro-redefined] #define ELFOSABI_AIX 7 /* AIX */ ^ /usr/include/elf.h:190:9: note: previous definition is here #define ELFOSABI_AIX ELFOSABI_MONTEREY ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:266:9: warning: 'EM_OPENRISC' macro redefined [-Wmacro-redefined] #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */ ^ /usr/include/elf.h:286:9: note: previous definition is here #define EM_OPENRISC EM_OR1K ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:285:9: warning: 'EM_NUM' macro redefined [-Wmacro-redefined] #define EM_NUM 111 ^ /usr/include/elf.h:317:9: note: previous definition is here #define EM_NUM 36903 ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:308:3: error: typedef redefinition with different types ('struct Elf32_Shdr' vs 'struct Elf32_Shdr') } Elf32_Shdr; ^ /usr/include/elf.h:394:3: note: previous definition is here } Elf32_Shdr; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:322:3: error: typedef redefinition with different types ('struct Elf64_Shdr' vs 'struct Elf64_Shdr') } Elf64_Shdr; ^ /usr/include/elf.h:407:3: note: previous definition is here } Elf64_Shdr; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:391:9: warning: 'SHT_GNU_verdef' macro redefined [-Wmacro-redefined] #define SHT_GNU_verdef 0x6ffffffd ^ /usr/include/elf.h:442:9: note: previous definition is here #define SHT_GNU_verdef SHT_SUNW_verdef ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:392:9: warning: 'SHT_GNU_verneed' macro redefined [-Wmacro-redefined] #define SHT_GNU_verneed 0x6ffffffe ^ /usr/include/elf.h:444:9: note: previous definition is here #define SHT_GNU_verneed SHT_SUNW_verneed ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:393:9: warning: 'SHT_GNU_versym' macro redefined [-Wmacro-redefined] #define SHT_GNU_versym 0x6fffffff ^ /usr/include/elf.h:446:9: note: previous definition is here #define SHT_GNU_versym SHT_SUNW_versym ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:398:9: warning: 'SHF_WRITE' macro redefined [-Wmacro-redefined] #define SHF_WRITE 0x1 ^ /usr/include/elf.h:466:9: note: previous definition is here #define SHF_WRITE 0x00000001 /* Contains writable data */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:399:9: warning: 'SHF_ALLOC' macro redefined [-Wmacro-redefined] #define SHF_ALLOC 0x2 ^ /usr/include/elf.h:467:9: note: previous definition is here #define SHF_ALLOC 0x00000002 /* Occupies memory */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:400:9: warning: 'SHF_EXECINSTR' macro redefined [-Wmacro-redefined] #define SHF_EXECINSTR 0x4 ^ /usr/include/elf.h:468:9: note: previous definition is here #define SHF_EXECINSTR 0x00000004 /* Contains executable insns */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:401:9: warning: 'SHF_MERGE' macro redefined [-Wmacro-redefined] #define SHF_MERGE 0x10 ^ /usr/include/elf.h:469:9: note: previous definition is here #define SHF_MERGE 0x00000010 /* Might be merged */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:402:9: warning: 'SHF_STRINGS' macro redefined [-Wmacro-redefined] #define SHF_STRINGS 0x20 ^ /usr/include/elf.h:470:9: note: previous definition is here #define SHF_STRINGS 0x00000020 /* Contains nul terminated strings */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:403:9: warning: 'SHF_INFO_LINK' macro redefined [-Wmacro-redefined] #define SHF_INFO_LINK 0x40 ^ /usr/include/elf.h:471:9: note: previous definition is here #define SHF_INFO_LINK 0x00000040 /* "sh_info" contains SHT index */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:404:9: warning: 'SHF_LINK_ORDER' macro redefined [-Wmacro-redefined] #define SHF_LINK_ORDER 0x80 ^ /usr/include/elf.h:472:9: note: previous definition is here #define SHF_LINK_ORDER 0x00000080 /* Preserve order after combining */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:405:9: warning: 'SHF_OS_NONCONFORMING' macro redefined [-Wmacro-redefined] #define SHF_OS_NONCONFORMING 0x100 ^ /usr/include/elf.h:473:9: note: previous definition is here #define SHF_OS_NONCONFORMING 0x00000100 /* OS specific handling required */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:406:9: warning: 'SHF_GROUP' macro redefined [-Wmacro-redefined] #define SHF_GROUP 0x200 ^ /usr/include/elf.h:474:9: note: previous definition is here #define SHF_GROUP 0x00000200 /* Is member of a group */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:407:9: warning: 'SHF_TLS' macro redefined [-Wmacro-redefined] #define SHF_TLS 0x400 ^ /usr/include/elf.h:475:9: note: previous definition is here #define SHF_TLS 0x00000400 /* Holds thread-local data */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:435:3: error: typedef redefinition with different types ('struct Elf32_Sym' vs 'struct Elf32_Sym') } Elf32_Sym; ^ /usr/include/elf.h:491:3: note: previous definition is here } Elf32_Sym; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:445:3: error: typedef redefinition with different types ('struct Elf64_Sym' vs 'struct Elf64_Sym') } Elf64_Sym; ^ /usr/include/elf.h:500:3: note: previous definition is here } Elf64_Sym; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:456:9: warning: 'ELF32_ST_BIND' macro redefined [-Wmacro-redefined] #define ELF32_ST_BIND(i) ((i)>>4) ^ /usr/include/elf.h:1124:9: note: previous definition is here #define ELF32_ST_BIND(info) ELF_ST_BIND(info) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:457:9: warning: 'ELF32_ST_TYPE' macro redefined [-Wmacro-redefined] #define ELF32_ST_TYPE(i) ((i)&0xf) ^ /usr/include/elf.h:1125:9: note: previous definition is here #define ELF32_ST_TYPE(info) ELF_ST_TYPE(info) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:458:9: warning: 'ELF32_ST_INFO' macro redefined [-Wmacro-redefined] #define ELF32_ST_INFO(b,t) (((b)<<4)+((t)&0xf)) ^ /usr/include/elf.h:1126:9: note: previous definition is here #define ELF32_ST_INFO(bind,type) ELF_ST_INFO(bind,type) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:461:9: warning: 'ELF64_ST_BIND' macro redefined [-Wmacro-redefined] #define ELF64_ST_BIND(i) ((i)>>4) ^ /usr/include/elf.h:1129:9: note: previous definition is here #define ELF64_ST_BIND(info) ELF_ST_BIND(info) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:462:9: warning: 'ELF64_ST_TYPE' macro redefined [-Wmacro-redefined] #define ELF64_ST_TYPE(i) ((i)&0xf) ^ /usr/include/elf.h:1130:9: note: previous definition is here #define ELF64_ST_TYPE(info) ELF_ST_TYPE(info) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:463:9: warning: 'ELF64_ST_INFO' macro redefined [-Wmacro-redefined] #define ELF64_ST_INFO(b,t) (((b)<<4)+((t)&0xf)) ^ /usr/include/elf.h:1131:9: note: previous definition is here #define ELF64_ST_INFO(bind,type) ELF_ST_INFO(bind,type) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:497:9: warning: 'ELF32_ST_VISIBILITY' macro redefined [-Wmacro-redefined] #define ELF32_ST_VISIBILITY(o) ((o)&0x3) ^ /usr/include/elf.h:1127:9: note: previous definition is here #define ELF32_ST_VISIBILITY(other) ELF_ST_VISIBILITY(other) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:499:9: warning: 'ELF64_ST_VISIBILITY' macro redefined [-Wmacro-redefined] #define ELF64_ST_VISIBILITY(o) ((o)&0x3) ^ /usr/include/elf.h:1132:9: note: previous definition is here #define ELF64_ST_VISIBILITY(other) ELF_ST_VISIBILITY(other) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:516:3: error: typedef redefinition with different types ('struct Elf32_Rel' vs 'struct Elf32_Rel') } Elf32_Rel; ^ /usr/include/elf.h:577:3: note: previous definition is here } Elf32_Rel; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:522:3: error: typedef redefinition with different types ('struct Elf32_Rela' vs 'struct Elf32_Rela') } Elf32_Rela; ^ /usr/include/elf.h:583:3: note: previous definition is here } Elf32_Rela; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:528:3: error: typedef redefinition with different types ('struct Elf64_Rel' vs 'struct Elf64_Rel') } Elf64_Rel; ^ /usr/include/elf.h:593:3: note: previous definition is here } Elf64_Rel; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:534:3: error: typedef redefinition with different types ('struct Elf64_Rela' vs 'struct Elf64_Rela') } Elf64_Rela; ^ /usr/include/elf.h:599:3: note: previous definition is here } Elf64_Rela; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:540:9: warning: 'ELF32_R_SYM' macro redefined [-Wmacro-redefined] #define ELF32_R_SYM(i) ((i)>>8) ^ /usr/include/elf.h:586:9: note: previous definition is here #define ELF32_R_SYM(info) ((info) >> 8) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:541:9: warning: 'ELF32_R_TYPE' macro redefined [-Wmacro-redefined] #define ELF32_R_TYPE(i) ((unsigned char)(i)) ^ /usr/include/elf.h:587:9: note: previous definition is here #define ELF32_R_TYPE(info) ((info) & 0xff) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:542:9: warning: 'ELF32_R_INFO' macro redefined [-Wmacro-redefined] #define ELF32_R_INFO(s,t) (((s)<<8)+(unsigned char)(t)) ^ /usr/include/elf.h:588:9: note: previous definition is here #define ELF32_R_INFO(sym, type) (((sym) << 8) + (unsigned char)(type)) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:545:9: warning: 'ELF64_R_SYM' macro redefined [-Wmacro-redefined] #define ELF64_R_SYM(i) ((Elf64_Xword)(i)>>32) ^ /usr/include/elf.h:602:9: note: previous definition is here #define ELF64_R_SYM(info) ((info) >> 32) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:546:9: warning: 'ELF64_R_TYPE' macro redefined [-Wmacro-redefined] #define ELF64_R_TYPE(i) ((i)&0xffffffffL) ^ /usr/include/elf.h:603:9: note: previous definition is here #define ELF64_R_TYPE(info) ((info) & 0xffffffff) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:547:9: warning: 'ELF64_R_INFO' macro redefined [-Wmacro-redefined] #define ELF64_R_INFO(s,t) (((Elf64_Xword)(s)<<32)+((t)&0xffffffffL)) ^ /usr/include/elf.h:604:9: note: previous definition is here #define ELF64_R_INFO(sym,type) (((sym) << 32) + (type)) ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:557:3: error: typedef redefinition with different types ('struct Elf32_Nhdr' vs 'struct Elf32_Nhdr') } Elf32_Nhdr; ^ /usr/include/elf.h:803:3: note: previous definition is here } Elf32_Nhdr; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:566:3: error: typedef redefinition with different types ('struct Elf64_Nhdr' vs 'struct Elf64_Nhdr') } Elf64_Nhdr; ^ /usr/include/elf.h:809:3: note: previous definition is here } Elf64_Nhdr; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:588:3: error: typedef redefinition with different types ('struct Elf32_Phdr' vs 'struct Elf32_Phdr') } Elf32_Phdr; ^ /usr/include/elf.h:331:3: note: previous definition is here } Elf32_Phdr; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:600:3: error: typedef redefinition with different types ('struct Elf64_Phdr' vs 'struct Elf64_Phdr') } Elf64_Phdr; ^ /usr/include/elf.h:342:3: note: previous definition is here } Elf64_Phdr; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:655:3: error: typedef redefinition with different types ('struct Elf32_Dyn' vs 'struct Elf32_Dyn') } Elf32_Dyn; ^ /usr/include/elf.h:661:3: note: previous definition is here } Elf32_Dyn; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:664:3: error: typedef redefinition with different types ('struct Elf64_Dyn' vs 'struct Elf64_Dyn') } Elf64_Dyn; ^ /usr/include/elf.h:669:3: note: previous definition is here } Elf64_Dyn; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:702:9: warning: 'DT_ENCODING' macro redefined [-Wmacro-redefined] #define DT_ENCODING 32 /* odd/even encoding rule starts here */ ^ /usr/include/elf.h:703:9: note: previous definition is here #define DT_ENCODING 31 /* ??? */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:706:9: warning: 'DT_LOOS' macro redefined [-Wmacro-redefined] #define DT_LOOS 0x6000000D ^ /usr/include/elf.h:708:9: note: previous definition is here #define DT_LOOS 0x60000000 /* Operating system specific range */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:707:9: warning: 'DT_HIOS' macro redefined [-Wmacro-redefined] #define DT_HIOS 0x6ffff000 ^ /usr/include/elf.h:715:9: note: previous definition is here #define DT_HIOS 0x6fffffff ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:714:9: warning: 'DF_ORIGIN' macro redefined [-Wmacro-redefined] #define DF_ORIGIN 0x1 ^ /usr/include/elf.h:720:9: note: previous definition is here #define DF_ORIGIN 0x00000001 /* uses $ORIGIN */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:715:9: warning: 'DF_SYMBOLIC' macro redefined [-Wmacro-redefined] #define DF_SYMBOLIC 0x2 ^ /usr/include/elf.h:721:9: note: previous definition is here #define DF_SYMBOLIC 0x00000002 /* */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:716:9: warning: 'DF_TEXTREL' macro redefined [-Wmacro-redefined] #define DF_TEXTREL 0x4 ^ /usr/include/elf.h:722:9: note: previous definition is here #define DF_TEXTREL 0x00000004 /* */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:717:9: warning: 'DF_BIND_NOW' macro redefined [-Wmacro-redefined] #define DF_BIND_NOW 0x8 ^ /usr/include/elf.h:723:9: note: previous definition is here #define DF_BIND_NOW 0x00000008 /* */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:718:9: warning: 'DF_STATIC_TLS' macro redefined [-Wmacro-redefined] #define DF_STATIC_TLS 0x10 ^ /usr/include/elf.h:724:9: note: previous definition is here #define DF_STATIC_TLS 0x00000010 /* */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:799:3: error: typedef redefinition with different types ('struct Elf32_Syminfo' vs 'struct Elf32_Syminfo') } Elf32_Syminfo; ^ /usr/include/elf.h:1137:3: note: previous definition is here } Elf32_Syminfo; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:805:3: error: typedef redefinition with different types ('struct Elf64_Syminfo' vs 'struct Elf64_Syminfo') } Elf64_Syminfo; ^ /usr/include/elf.h:1142:3: note: previous definition is here } Elf64_Syminfo; ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:825:9: warning: 'SYMINFO_FLG_DIRECT' macro redefined [-Wmacro-redefined] #define SYMINFO_FLG_DIRECT 0x01 /* bound to an object */ ^ /usr/include/elf.h:1144:9: note: previous definition is here #define SYMINFO_FLG_DIRECT 0x0001 /* symbol ref has direct association ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:826:9: warning: 'SYMINFO_FLG_PASSTHRU' macro redefined [-Wmacro-redefined] #define SYMINFO_FLG_PASSTHRU 0x02 /* pass-thru symbol */ ^ /usr/include/elf.h:1146:9: note: previous definition is here #define SYMINFO_FLG_PASSTHRU 0x0002 /* ignored - see SYMINFO_FLG_FILTER */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:827:9: warning: 'SYMINFO_FLG_COPY' macro redefined [-Wmacro-redefined] #define SYMINFO_FLG_COPY 0x04 /* result of a copy relocation */ ^ /usr/include/elf.h:1147:9: note: previous definition is here #define SYMINFO_FLG_COPY 0x0004 /* symbol is a copy-reloc */ ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:828:9: warning: 'SYMINFO_FLG_LAZYLOAD' macro redefined [-Wmacro-redefined] #define SYMINFO_FLG_LAZYLOAD 0x08 /* bound to lazy-loaded object */ ^ /usr/include/elf.h:1148:9: note: previous definition is here #define SYMINFO_FLG_LAZYLOAD 0x0008 /* object containing defn should be ^ In file included from dwarf_elf_access.c:48: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/libelf.h:31: In file included from /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/sys_elf.h:75: /data/scratch/devel/libdwarf/work/.buildlink/include/libelf/elf_repl.h:841:3: error: typedef redefinition with different types ('struct Elf32_Verdef' vs 'struct Elf32_Verdef') } Elf32_Verdef; ^ /usr/include/elf.h:1227:3: note: previous definition is here } Elf32_Verdef; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 44 warnings and 20 errors generated. *** Error code 1 Stop. make[1]: stopped in /data/scratch/devel/libdwarf/work/dwarf-20161124/libdwarf *** Error code 1 Stop. make: stopped in /data/scratch/devel/libdwarf/work/dwarf-20161124 *** Error code 1 Stop. make[1]: stopped in /data/pkgsrc/devel/libdwarf *** Error code 1 Stop. make: stopped in /data/pkgsrc/devel/libdwarf