=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/devel/elfsh", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for elfsh-0.51b3nb4 Builting libelfsh... gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c dynamic.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from dynamic.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c dynsym.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from dynsym.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c elf.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from elf.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c fixup.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from fixup.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c got.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from got.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ 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] 109 | got = elfsh_get_got(file, &nbr); | ^~~~ | | | u_int * {aka unsigned int *} got.c:14:55: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 14 | u_long *elfsh_get_got(elfshobj_t *file, int *num) | ~~~~~^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c hash.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from hash.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c interp.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from interp.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c pht.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from pht.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ pht.c: In function 'elfsh_get_parent_segment': pht.c:221:65: warning: comparison of constant '0' with boolean expression is always false [-Wbool-compare] 221 | (NULL == new->parent->pht && elfsh_load_pht(new->parent)) < 0) | ^ 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] 252 | if (elfsh_get_pht(file, &nbr) == NULL) | ^~~~ | | | u_int * {aka unsigned int *} include/libelfsh.h:487:55: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 487 | void *elfsh_get_pht(elfshobj_t *file, int *num); | ~~~~~^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c plt.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from plt.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c section.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from section.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c sht.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from sht.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ sht.c: In function 'elfsh_sort_sht': sht.c:81:53: warning: operation on 'actual->prev' may be undefined [-Wsequence-point] 81 | actual->prev->next = actual->prev = actual->next; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ sht.c: In function 'elfsh_get_sht_entry_by_name': sht.c:762:25: warning: variable 'index' set but not used [-Wunused-but-set-variable] 762 | u_int index; | ^~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c error.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from error.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c stab.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from stab.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ stab.c: In function 'elfsh_get_stab': stab.c:50:40: warning: pointer targets in passing argument 3 of 'elfsh_get_section_by_name' differ in signedness [-Wpointer-sign] 50 | &index, &strindex, &nbr); | ^~~~~~ | | | u_int * {aka unsigned int *} include/libelfsh.h:552:70: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 552 | elfshsect_t *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *); | ^~~~~ stab.c:50:48: warning: pointer targets in passing argument 4 of 'elfsh_get_section_by_name' differ in signedness [-Wpointer-sign] 50 | &index, &strindex, &nbr); | ^~~~~~~~~ | | | u_int * {aka unsigned int *} include/libelfsh.h:552:77: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 552 | elfshsect_t *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *); | ^~~~~ stab.c:50:59: warning: pointer targets in passing argument 5 of 'elfsh_get_section_by_name' differ in signedness [-Wpointer-sign] 50 | &index, &strindex, &nbr); | ^~~~ | | | u_int * {aka unsigned int *} include/libelfsh.h:552:84: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 552 | 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] 89 | return ((void *) ((int) (s->value))); | ^ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c symbol.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from symbol.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ 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] 363 | actual = elfsh_get_section_by_type(file, SHT_SYMTAB, 0, NULL, NULL, &nbr); | ^~~~ | | | u_int * {aka unsigned int *} include/libelfsh.h:550:95: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 550 | elfshsect_t *elfsh_get_section_by_type(elfshobj_t *, u_int type, int range, int *, int *, int *); | ^~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c notes.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from notes.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c reloc.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from reloc.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c blocks.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from blocks.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ blocks.c: In function 'elfsh_scan_blocks': blocks.c:17:26: warning: variable 'prev_fct' set but not used [-Wunused-but-set-variable] 17 | elfshblock_t *prev_fct; | ^~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c ctors.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from ctors.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ 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] 106 | ctors = elfsh_get_ctors(file, &nbr); | ^~~~ | | | u_int * {aka unsigned int *} ctors.c:12:57: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 12 | u_long *elfsh_get_ctors(elfshobj_t *file, int *num) | ~~~~~^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c dtors.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from dtors.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ 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] 98 | dtors = elfsh_get_dtors(file, &nbr); | ^~~~ | | | u_int * {aka unsigned int *} dtors.c:12:57: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 12 | u_long *elfsh_get_dtors(elfshobj_t *file, int *num) | ~~~~~^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c raw.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from raw.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c map.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from map.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c strtab.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from strtab.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c sht_rebuild.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from sht_rebuild.c:11: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ 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] 360 | if (!elfsh_get_pht(file, &num) || init_sht(file, num) < 0) | ^~~~ | | | u_int * {aka unsigned int *} include/libelfsh.h:487:55: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 487 | void *elfsh_get_pht(elfshobj_t *file, int *num); | ~~~~~^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c comment.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from comment.c:10: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ comment.c: In function 'elfsh_get_comments': comment.c:22:47: warning: pointer targets in passing argument 5 of 'elfsh_get_section_by_name' differ in signedness [-Wpointer-sign] 22 | NULL, NULL, &size); | ^~~~~ | | | u_int * {aka unsigned int *} include/libelfsh.h:552:84: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 552 | elfshsect_t *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *); | ^~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c sym_common.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from sym_common.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c hijack.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from hijack.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c obj.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from obj.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c pax.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from pax.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c save.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from save.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c copy.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from copy.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c strip.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from strip.c:10: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c remap.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from remap.c:10: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ remap.c: In function 'elfsh_remap': remap.c:314:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 314 | if (diff == (u_int) -1); | ^~ In file included from include/libelfsh-compat.h:382: include/libelfsh-internal.h:100:1: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 100 | do \ | ^~ remap.c:315:5: note: in expansion of macro 'ELFSH_SETERROR' 315 | ELFSH_SETERROR("[libelfsh:relocate] Object base address is NULL\n", -1); | ^~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c relinject.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from relinject.c:9: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ 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] 316 | if (elfsh_relocate_entry(new, cur, dword, addr) < 0) | ^~~~~ | | | long int * relinject.c:192:58: note: expected 'u_long *' {aka 'long unsigned int *'} but argument is of type 'long int *' 192 | u_long *dword, | ~~~~~~~~~~~~~~~~~~~~^~~~~ 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] 433 | sym = elfsh_get_symtab(rel, &symnbr); | ^~~~~~~ | | | u_int * {aka unsigned int *} include/libelfsh.h:332:58: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 332 | void *elfsh_get_symtab(elfshobj_t *file, int *num); | ~~~~~^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c sanitize.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from sanitize.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c debug.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from debug.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c bss.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from bss.c:7: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ bss.c: In function 'elfsh_find_bsslen': bss.c:210:34: warning: pointer targets in passing argument 2 of 'elfsh_get_symtab' differ in signedness [-Wpointer-sign] 210 | symtab = elfsh_get_symtab(rel, &size); | ^~~~~ | | | u_int * {aka unsigned int *} include/libelfsh.h:332:58: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 332 | void *elfsh_get_symtab(elfshobj_t *file, int *num); | ~~~~~^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c sort.c In file included from include/libelfsh-compat.h:378, from include/libelfsh.h:19, from sort.c:10: include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ Libelfsh has been built successfully. Builting libhashelfsh... Libhash has been built successfully. Builting ELFsh... gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c grammar.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from grammar.c:9: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ grammar.c: In function 'lookup_immed': grammar.c:21:25: warning: variable 'isptr' set but not used [-Wunused-but-set-variable] 21 | char isptr; | ^~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c disasm.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from disasm.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ disasm.c: In function 'display_object': disasm.c:170:43: warning: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 170 | snprintf(buf, sizeof(buf), " %08X [foff: %u] \t %s[%0*u] = %08X", | ~~~^ | | | unsigned int | %08lX 171 | vaddr + index * sizeof(long), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int disasm.c:170:53: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 170 | snprintf(buf, sizeof(buf), " %08X [foff: %u] \t %s[%0*u] = %08X", | ~^ | | | unsigned int | %lu 171 | vaddr + index * sizeof(long), 172 | foffset + index * sizeof(long), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int disasm.c:180:55: warning: pointer targets in passing argument 3 of 'elfsh_get_parent_section' differ in signedness [-Wpointer-sign] 180 | sect = elfsh_get_parent_section(file, loff, &sct_index); | ^~~~~~~~~~ | | | u_int * {aka unsigned int *} ../libelfsh/include/libelfsh.h:553:78: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 553 | elfshsect_t *elfsh_get_parent_section(elfshobj_t *file, u_int addr, int *offset); | ~~~~~^~~~~~ disasm.c:188:52: warning: pointer targets in passing argument 3 of 'elfsh_reverse_symbol' differ in signedness [-Wpointer-sign] 188 | s = elfsh_reverse_symbol(file, loff, &idx_bytes); | ^~~~~~~~~~ | | | u_int * {aka unsigned int *} ../libelfsh/include/libelfsh.h:330:79: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 330 | char *elfsh_reverse_symbol(elfshobj_t *file, u_int sym_value, int *offset); | ~~~~~^~~~~~ disasm.c:190:57: warning: pointer targets in passing argument 3 of 'elfsh_reverse_dynsymbol' differ in signedness [-Wpointer-sign] 190 | s = elfsh_reverse_dynsymbol(file, loff, &idx_bytes); | ^~~~~~~~~~ | | | u_int * {aka unsigned int *} ../libelfsh/include/libelfsh.h:343:82: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 343 | char *elfsh_reverse_dynsymbol(elfshobj_t *file, u_int sym_value, int *offset); | ~~~~~^~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c dyn.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from dyn.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c hdr.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from hdr.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ hdr.c: In function 'cmd_elf': hdr.c:74:64: warning: pointer targets in passing argument 3 of 'elfsh_reverse_metasym' differ in signedness [-Wpointer-sign] 74 | name = elfsh_reverse_metasym(world.current, header->e_entry, &offset); | ^~~~~~~ | | | u_int * {aka unsigned int *} ../libelfsh/include/libelfsh.h:368:76: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 368 | char *elfsh_reverse_metasym(elfshobj_t *file, u_int vaddr, int *off); | ~~~~~^~~ hdr.c:115:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 115 | header->e_ehsize, (void *) header->e_entry, | ^ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c main.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from main.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c got.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from got.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ got.c: In function 'cmd_got': got.c:44:15: warning: the comparison will always evaluate as 'true' for the address of 'off' will never be NULL [-Waddress] 44 | if (off != NULL) | ^~ got.c:21:17: note: 'off' declared here 21 | char off[30]; | ^~~ got.c:48:42: warning: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 48 | snprintf(buff, sizeof(buff), " [%08X:%5u] 0x%08X \t <%s%s>", | ~~~^ | | | unsigned int | %08lX 49 | world.current->secthash[ELFSH_SECTION_GOT]->shdr->sh_addr + (index * sizeof(u_long)), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c interp.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from interp.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c notes.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from notes.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c pht.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from pht.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c rel.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from rel.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ rel.c: In function 'cmd_rel': rel.c:110:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 110 | (void *) elfsh_get_reloffset(rel), | ^ rel.c:117:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 117 | (void *) elfsh_get_reloffset(rel), | ^ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c sht.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from sht.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ sht.c: In function 'cmd_sht': sht.c:25:40: warning: pointer targets in passing argument 2 of 'elfsh_get_sht' differ in signedness [-Wpointer-sign] 25 | shdr = elfsh_get_sht(world.current, &num); | ^~~~ | | | u_int * {aka unsigned int *} ../libelfsh/include/libelfsh.h:436:55: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 436 | void *elfsh_get_sht(elfshobj_t *file, int *num); | ~~~~~^~~ sht.c:57:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 57 | index, (void *) elfsh_get_section_addr(shdr + index), | ^ sht.c:76:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 76 | index, (void *) elfsh_get_section_addr(shdr + index), | ^ sht.c:73:8: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 73 | else | ^~~~ sht.c:89:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 89 | if (!tmp || (tmp && !regexec(tmp, buff, 0, 0, 0))) | ^~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c stab.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from stab.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ stab.c: In function 'cmd_stab': stab.c:25:41: warning: pointer targets in passing argument 2 of 'elfsh_get_stab' differ in signedness [-Wpointer-sign] 25 | entry = elfsh_get_stab(world.current, &num); | ^~~~ | | | u_int * {aka unsigned int *} ../libelfsh/include/libelfsh.h:428:56: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 428 | void *elfsh_get_stab(elfshobj_t *file, int *num); | ~~~~~^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c sym.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from sym.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ sym.c: In function 'ds': sym.c:96:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 96 | index, (void *) elfsh_get_symbol_value(table + index), | ^ sym.c:107:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 107 | index, (void *) elfsh_get_symbol_value(table + index), | ^ sym.c: In function 'cmd_sym': sym.c:134:44: warning: pointer targets in passing argument 2 of 'elfsh_get_symtab' differ in signedness [-Wpointer-sign] 134 | symtab = elfsh_get_symtab(world.current, &num); | ^~~~ | | | u_int * {aka unsigned int *} ../libelfsh/include/libelfsh.h:332:58: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 332 | void *elfsh_get_symtab(elfshobj_t *file, int *num); | ~~~~~^~~ sym.c: In function 'cmd_dynsym': sym.c:154:47: warning: pointer targets in passing argument 2 of 'elfsh_get_dynsymtab' differ in signedness [-Wpointer-sign] 154 | dynsym = elfsh_get_dynsymtab(world.current, &num); | ^~~~ | | | u_int * {aka unsigned int *} ../libelfsh/include/libelfsh.h:342:61: note: expected 'int *' but argument is of type 'u_int *' {aka 'unsigned int *'} 342 | void *elfsh_get_dynsymtab(elfshobj_t *file, int *num); | ~~~~~^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c quit.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from quit.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c data.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from data.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c ctors.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from ctors.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ ctors.c: In function 'cmd_ctors': ctors.c:45:11: warning: the address of 'off' will always evaluate as 'true' [-Waddress] 45 | if (off) | ^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c dtors.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from dtors.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ dtors.c: In function 'cmd_dtors': dtors.c:45:11: warning: the address of 'off' will always evaluate as 'true' [-Waddress] 45 | if (off) | ^~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c fileops.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from fileops.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c comment.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from comment.c:10: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c save.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from save.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c load.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from load.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c unload.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from unload.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c list.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from list.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c doswitch.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from doswitch.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c tables.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from tables.c:9: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c help.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from help.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c info.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from info.c:10: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c readln.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from readln.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c print.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from print.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c lexer.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from lexer.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ lexer.c: In function 'lexer_findblanks': lexer.c:96:17: warning: variable 'index' set but not used [-Wunused-but-set-variable] 96 | int index; | ^~~~~ lexer.c: In function 'vm_getln': lexer.c:197:28: warning: pointer targets in passing argument 2 of 'lexer_doargv' differ in signedness [-Wpointer-sign] 197 | argv = lexer_doargv(nbr, argc, buf); | ^~~~ | | | int * lexer.c:138:50: note: expected 'u_int *' {aka 'unsigned int *'} but argument is of type 'int *' 138 | static char **lexer_doargv(u_int nbr, u_int *argc, char *buf) | ~~~~~~~^~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c misc.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from misc.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c atomic.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from atomic.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c opt.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from opt.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c implicit.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from implicit.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c exec.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from exec.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c modules.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from modules.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c findrel.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from findrel.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ findrel.c: In function 'cmd_findrel': findrel.c:163:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 163 | dword = (u_int) cur->data + cur->rel[index].off_src; | ^ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c objects.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from objects.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -rdynamic -fPIC -g3 -O2 -Wall -Iinclude -I../libhash/include/ -I../libelfsh/include/ -DELFSH_INTERN -DUSE_READLN -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c cmdapi.c In file included from ../libelfsh/include/libelfsh-compat.h:378, from ../libelfsh/include/libelfsh.h:19, from include/elfsh.h:23, from cmdapi.c:7: ../libelfsh/include/libelfsh-sunos.h:84:9: warning: 'DT_LOOS' redefined 84 | #define DT_LOOS 0x60000000 /* Start of OS-specific */ | ^~~~~~~ In file included from ../libelfsh/include/libelfsh-sunos.h:16: /usr/include/sys/link.h:133:9: note: this is the location of the previous definition 133 | #define DT_LOOS 0x6000000d /* OS specific range */ | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:85:9: warning: 'DT_HIOS' redefined 85 | #define DT_HIOS 0x6fffffff /* End of OS-specific */ | ^~~~~~~ /usr/include/sys/link.h:169:9: note: this is the location of the previous definition 169 | #define DT_HIOS 0x6ffff000 | ^~~~~~~ ../libelfsh/include/libelfsh-sunos.h:178:9: warning: 'ELF64_ST_VISIBILITY' redefined 178 | #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/elf.h:29, from ../libelfsh/include/libelfsh-compat.h:45: /usr/include/sys/elf.h:817:9: note: this is the location of the previous definition 817 | #define ELF64_ST_VISIBILITY(other) ((other)&0x7) | ^~~~~~~~~~~~~~~~~~~ cmdapi.c: In function 'vm_create_CMDENT': cmdapi.c:19:15: error: assignment to 'int (*)(void)' from incompatible pointer type 'int (*)(void *, void *)' [-Wincompatible-pointer-types] 19 | new->exec = exec; | ^ cmdapi.c: In function 'vm_setcmd': cmdapi.c:43:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 43 | if (needcur != (u_int) ELFSH_ORIG) | ^ *** Error code 1 Stop. bmake[1]: stopped making "all" in /home/pbulk/work/devel/elfsh/work/elfsh-0.51b3/vm *** Error code 1 Stop. bmake: stopped making "all" in /home/pbulk/work/devel/elfsh/work/elfsh-0.51b3 *** Error code 1 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/elfsh *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/elfsh