=> Bootstrap dependency digest>=20010302: found digest-20080510
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for elfsh-0.51b3nb3
Builting libelfsh...
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c dynamic.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c dynsym.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c elf.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c fixup.c
fixup.c:35:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
      if (index < 0)
          ~~~~~ ^ ~
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c got.c
got.c:109:29: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
  got = elfsh_get_got(file, &nbr);
                            ^~~~
got.c:14:47: note: passing argument to parameter 'num' here
u_long          *elfsh_get_got(elfshobj_t *file, int *num)
                                                      ^
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c hash.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c interp.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c pht.c
pht.c:252:27: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
  if (elfsh_get_pht(file, &nbr) == NULL)
                          ^~~~
include/libelfsh.h:487:45: note: passing argument to parameter 'num' here
void            *elfsh_get_pht(elfshobj_t *file, int *num);
                                                      ^
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c plt.c
plt.c:35:13: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
  if (entsz < 0)
      ~~~~~ ^ ~
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c section.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c sht.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c error.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c stab.c
stab.c:50:12: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                                       &index, &strindex, &nbr);
                                       ^~~~~~
include/libelfsh.h:552:71: note: passing argument to parameter here
elfshsect_t     *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *);
                                                                          ^
stab.c:50:20: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                                       &index, &strindex, &nbr);
                                               ^~~~~~~~~
include/libelfsh.h:552:78: note: passing argument to parameter here
elfshsect_t     *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *);
                                                                                 ^
stab.c:50:31: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                                       &index, &strindex, &nbr);
                                                          ^~~~
include/libelfsh.h:552:85: note: passing argument to parameter here
elfshsect_t     *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *);
                                                                                        ^
3 warnings generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c symbol.c
symbol.c:363:71: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
  actual = elfsh_get_section_by_type(file, SHT_SYMTAB, 0, NULL, NULL, &nbr);
                                                                      ^~~~
include/libelfsh.h:550:96: note: passing argument to parameter here
elfshsect_t     *elfsh_get_section_by_type(elfshobj_t *, u_int type, int range, int *, int *, int *);
                                                                                                   ^
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c notes.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c reloc.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c blocks.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c ctors.c
ctors.c:106:33: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
  ctors = elfsh_get_ctors(file, &nbr);
                                ^~~~
ctors.c:12:49: note: passing argument to parameter 'num' here
u_long          *elfsh_get_ctors(elfshobj_t *file, int *num)
                                                        ^
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c dtors.c
dtors.c:98:33: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
  dtors = elfsh_get_dtors(file, &nbr);
                                ^~~~
dtors.c:12:49: note: passing argument to parameter 'num' here
u_long          *elfsh_get_dtors(elfshobj_t *file, int *num)
                                                        ^
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c raw.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c map.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c strtab.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c sht_rebuild.c
sht_rebuild.c:360:28: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
  if (!elfsh_get_pht(file, &num) || init_sht(file, num) < 0)
                           ^~~~
include/libelfsh.h:487:45: note: passing argument to parameter 'num' here
void            *elfsh_get_pht(elfshobj_t *file, int *num);
                                                      ^
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c comment.c
comment.c:22:19: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                                  NULL, NULL, &size);
                                              ^~~~~
include/libelfsh.h:552:85: note: passing argument to parameter here
elfshsect_t     *elfsh_get_section_by_name(elfshobj_t *, char *name, int *, int *, int *);
                                                                                        ^
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c sym_common.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c hijack.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c obj.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c pax.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c save.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c copy.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c strip.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c remap.c
remap.c:314:26: warning: if statement has empty body [-Wempty-body]
  if (diff == (u_int) -1);
                         ^
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c relinject.c
relinject.c:79:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition.
        ^
relinject.c:84:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:89:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:94:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:99:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:104:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:109:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:114:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:122:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:127:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:144:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:155:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:163:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:168:2: warning: if statement has empty body [-Wempty-body]
        ; // XXX error condition
        ^
relinject.c:316:42: warning: passing 'long *' to parameter of type 'u_long *' (aka 'unsigned long *') converts between pointers to integer types with different sign [-Wpointer-sign]
      if (elfsh_relocate_entry(new, cur, dword, addr) < 0)
                                         ^~~~~
relinject.c:192:58: note: passing argument to parameter 'dword' here
                                     u_long             *dword,
                                                         ^
relinject.c:433:31: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
  sym = elfsh_get_symtab(rel, &symnbr);
                              ^~~~~~~
include/libelfsh.h:332:48: note: passing argument to parameter 'num' here
void            *elfsh_get_symtab(elfshobj_t *file, int *num);
                                                         ^
16 warnings generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c sanitize.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c debug.c
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c bss.c
bss.c:210:34: warning: passing 'u_int *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
  symtab = elfsh_get_symtab(rel, &size);
                                 ^~~~~
include/libelfsh.h:332:48: note: passing argument to parameter 'num' here
void            *elfsh_get_symtab(elfshobj_t *file, int *num);
                                                         ^
1 warning generated.
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN -I/usr/pkg/include -I/usr/include -c sort.c
Libelfsh has been built successfully.
Builting libhashelfsh...
Libhash has been built successfully.
Builting ELFsh...
gcc -O2 -I/usr/pkg/include -I/usr/include -rdynamic -fPIC -g3 -O2 -Wall -Iinclude  -I../libhash/include/ -I../libelfsh/include/  -DELFSH_INTERN   -DUSE_READLN -I/usr/pkg/include -I/usr/include -c grammar.c
In file included from grammar.c:9:
include/elfsh.h:474:6: error: conflicting types for 'dprintf'
int             dprintf(int fd, char *format, ...);
                ^
/usr/include/stdio.h:498:6: note: previous declaration is here
int      dprintf(int, const char * __restrict, ...)
         ^
1 error generated.
*** Error code 1

Stop.
make: stopped in /scratch/devel/elfsh/work/elfsh-0.51b3/vm
*** Error code 1

Stop.
make: stopped in /scratch/devel/elfsh/work/elfsh-0.51b3
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/devel/elfsh
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/devel/elfsh
