=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Building for elfsh-0.51b3nb4 Builting libelfsh... gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c dynamic.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c dynsym.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c elf.c elf.c: In function 'elfsh_get_magic': elf.c:264:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] return (*(u_int *) hdr->e_ident); ^ elf.c: In function 'elfsh_set_magic': elf.c:273:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(u_int *) hdr->e_ident = mag; ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c fixup.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c got.c got.c: In function 'elfsh_get_got_entry_by_name': got.c:109:29: warning: pointer targets in passing argument 2 of 'elfsh_get_got' differ in signedness [-Wpointer-sign] got = elfsh_get_got(file, &nbr); ^ got.c:14:10: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' u_long *elfsh_get_got(elfshobj_t *file, int *num) ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c hash.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c interp.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c pht.c pht.c: In function 'elfsh_get_object_baseaddr': pht.c:252:27: warning: pointer targets in passing argument 2 of 'elfsh_get_pht' differ in signedness [-Wpointer-sign] if (elfsh_get_pht(file, &nbr) == NULL) ^ In file included from pht.c:7:0: include/libelfsh.h:487:8: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' void *elfsh_get_pht(elfshobj_t *file, int *num); ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c plt.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c section.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c sht.c sht.c: In function 'elfsh_sort_sht': sht.c:81:39: warning: operation on 'actual->prev' may be undefined [-Wsequence-point] actual->prev->next = actual->prev = actual->next; ^ sht.c: In function 'elfsh_get_sht_entry_by_name': sht.c:762:11: warning: variable 'index' set but not used [-Wunused-but-set-variable] u_int index; ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c error.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c stab.c stab.c: In function 'elfsh_get_stab': stab.c:50:12: warning: pointer targets in passing argument 3 of 'elfsh_get_section_by_name' differ in signedness [-Wpointer-sign] &index, &strindex, &nbr); ^ In file included from stab.c:7:0: include/libelfsh.h:552:14: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' elfshsect_t *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *); ^ stab.c:50:20: warning: pointer targets in passing argument 4 of 'elfsh_get_section_by_name' differ in signedness [-Wpointer-sign] &index, &strindex, &nbr); ^ In file included from stab.c:7:0: include/libelfsh.h:552:14: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' elfshsect_t *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *); ^ stab.c:50:31: warning: pointer targets in passing argument 5 of 'elfsh_get_section_by_name' differ in signedness [-Wpointer-sign] &index, &strindex, &nbr); ^ In file included from stab.c:7:0: include/libelfsh.h:552:14: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' elfshsect_t *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *); ^ stab.c: In function 'elfsh_get_stab_offset': stab.c:89:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return ((void *) ((int) (s->value))); ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c symbol.c symbol.c: In function 'elfsh_shift_symtab': symbol.c:363:71: warning: pointer targets in passing argument 6 of 'elfsh_get_section_by_type' differ in signedness [-Wpointer-sign] actual = elfsh_get_section_by_type(file, SHT_SYMTAB, 0, NULL, NULL, &nbr); ^ In file included from symbol.c:7:0: include/libelfsh.h:550:14: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' elfshsect_t *elfsh_get_section_by_type(elfshobj_t *, u_int type, int range, int *, int *, int *); ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c notes.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c reloc.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c blocks.c blocks.c: In function 'elfsh_scan_blocks': blocks.c:17:18: warning: variable 'prev_fct' set but not used [-Wunused-but-set-variable] elfshblock_t *prev_fct; ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c ctors.c ctors.c: In function 'elfsh_get_ctors_entry_by_name': ctors.c:106:33: warning: pointer targets in passing argument 2 of 'elfsh_get_ctors' differ in signedness [-Wpointer-sign] ctors = elfsh_get_ctors(file, &nbr); ^ ctors.c:12:10: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' u_long *elfsh_get_ctors(elfshobj_t *file, int *num) ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c dtors.c dtors.c: In function 'elfsh_get_dtors_entry_by_name': dtors.c:98:33: warning: pointer targets in passing argument 2 of 'elfsh_get_dtors' differ in signedness [-Wpointer-sign] dtors = elfsh_get_dtors(file, &nbr); ^ dtors.c:12:10: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' u_long *elfsh_get_dtors(elfshobj_t *file, int *num) ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c raw.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c map.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c strtab.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c sht_rebuild.c sht_rebuild.c: In function 'elfsh_rebuild_sht': sht_rebuild.c:360:28: warning: pointer targets in passing argument 2 of 'elfsh_get_pht' differ in signedness [-Wpointer-sign] if (!elfsh_get_pht(file, &num) || init_sht(file, num) < 0) ^ In file included from sht_rebuild.c:11:0: include/libelfsh.h:487:8: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' void *elfsh_get_pht(elfshobj_t *file, int *num); ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c comment.c comment.c: In function 'elfsh_get_comments': comment.c:22:19: warning: pointer targets in passing argument 5 of 'elfsh_get_section_by_name' differ in signedness [-Wpointer-sign] NULL, NULL, &size); ^ In file included from comment.c:10:0: include/libelfsh.h:552:14: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' elfshsect_t *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *); ^ gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c sym_common.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c hijack.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c obj.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c pax.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c save.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c copy.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c strip.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c remap.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/usr/pkg/include -c relinject.c relinject.c: In function 'elfsh_relocate_i386': relinject.c:23:10: error: 'R_386_32' undeclared (first use in this function) case R_386_32: ^ relinject.c:23:10: note: each undeclared identifier is reported only once for each function it appears in relinject.c:28:10: error: 'R_386_PC32' undeclared (first use in this function) case R_386_PC32: ^ relinject.c: In function 'elfsh_relocate_etrel_section': relinject.c:316:42: warning: pointer targets in passing argument 3 of 'elfsh_relocate_entry' differ in signedness [-Wpointer-sign] if (elfsh_relocate_entry(new, cur, dword, addr) < 0) ^ relinject.c:190:17: note: expected 'u_long * {aka long unsigned int *}' but argument is of type 'long int *' static int elfsh_relocate_entry(elfshsect_t *new, ^ relinject.c: In function 'elfsh_inject_etrel': relinject.c:433:31: warning: pointer targets in passing argument 2 of 'elfsh_get_symtab' differ in signedness [-Wpointer-sign] sym = elfsh_get_symtab(rel, &symnbr); ^ In file included from relinject.c:9:0: include/libelfsh.h:332:8: note: expected 'int *' but argument is of type 'u_int * {aka unsigned int *}' void *elfsh_get_symtab(elfshobj_t *file, int *num); ^ *** Error code 1 Stop. make[1]: stopped in /tmp/pkgbuild/devel/elfsh/work/elfsh-0.51b3/libelfsh *** Error code 1 Stop. make: stopped in /tmp/pkgbuild/devel/elfsh/work/elfsh-0.51b3 *** Error code 1 Stop. make[1]: stopped in /usr/pkgsrc/devel/elfsh *** Error code 1 Stop. make: stopped in /usr/pkgsrc/devel/elfsh