Log
[1m===> Building for libspf-1.0.0.p5_1[0m
/usr/bin/make all-recursive
Making all in src
Making all in libspf
/bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o
main.c:302:51: warning: format specifies type 'unsigned long' but the argument has type 'time_t' (aka 'int') [-Wformat]
snprintf(cur_utc_time, SPF_MAX_DATETIME, "%lu", time(&curtime));
~~~ ^~~~~~~~~~~~~~
%d
main.c:1697:12: warning: implicit conversion from enumeration type 'enum SPF_BOOL' to different enumeration type 'SPF_RESULT' (aka 'enum SPF_RESULT') [-Wenum-conversion]
p->RES = SPF_FALSE;
~ ^~~~~~~~~
main.c:1790:7: warning: array index 257 is past the end of the array (which contains 256 elements) [-Warray-bounds]
p->local_part[SPF_MAX_LOCAL_PART + 1] = '\0';
^ ~~~~~~~~~~~~~~~~~~~~~~
./spf.h:357:3: note: array 'local_part' declared here
char local_part[SPF_MAX_LOCAL_PART]; /* local part of address (user) */
^
3 warnings generated.
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -o main.o >/dev/null 2>&1
mv -f .deps/main.Tpo .deps/main.Plo
/bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT dns.lo -MD -MP -MF .deps/dns.Tpo -c -o dns.lo dns.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT dns.lo -MD -MP -MF .deps/dns.Tpo -c dns.c -fPIC -DPIC -o .libs/dns.o
dns.c:579:29: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((j == 1) && (strstr(rd_ptr, "v=spf1") == NULL))
^~~~~~
/usr/include/string.h:119:26: note: passing argument to parameter here
char *strstr(const char *, const char *) __pure;
^
dns.c:590:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if (strstr(rd_ptr, "v=spf1") == NULL)
^~~~~~
/usr/include/string.h:119:26: note: passing argument to parameter here
char *strstr(const char *, const char *) __pure;
^
2 warnings generated.
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT dns.lo -MD -MP -MF .deps/dns.Tpo -c dns.c -o dns.o >/dev/null 2>&1
mv -f .deps/dns.Tpo .deps/dns.Plo
/bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT macro.lo -MD -MP -MF .deps/macro.Tpo -c -o macro.lo macro.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT macro.lo -MD -MP -MF .deps/macro.Tpo -c macro.c -fPIC -DPIC -o .libs/macro.o
macro.c:323:11: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
return(SPF_FALSE);
^~~~~~~~~~~
1 warning generated.
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT macro.lo -MD -MP -MF .deps/macro.Tpo -c macro.c -o macro.o >/dev/null 2>&1
mv -f .deps/macro.Tpo .deps/macro.Plo
/bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT util.lo -MD -MP -MF .deps/util.Tpo -c -o util.lo util.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT util.lo -MD -MP -MF .deps/util.Tpo -c util.c -fPIC -DPIC -o .libs/util.o
util.c:222:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(stdout, tbuf);
^~~~
1 warning generated.
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -MT util.lo -MD -MP -MF .deps/util.Tpo -c util.c -o util.o >/dev/null 2>&1
mv -f .deps/util.Tpo .deps/util.Plo
/bin/sh ../../libtool --tag=CC --mode=link cc -D_WITH_PARANOID_MALLOC -O2 -pipe -fno-strict-aliasing -version-info "0:26:0" -release 1.0 -o libspf.la -rpath /usr/local/lib main.lo dns.lo macro.lo util.lo -lresolv -lc
libtool: link: cc -shared -fPIC -DPIC .libs/main.o .libs/dns.o .libs/macro.o .libs/util.o -lresolv -O2 -Wl,-soname -Wl,libspf-1.0.so.0 -o .libs/libspf-1.0.so.0.0.26
/usr/bin/ld: cannot find -lresolv
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make[4]: stopped in /magus/work/usr/mports/mail/libspf/work/libspf-1.0.0-p5/src/libspf
*** Error code 1
Stop.
make[3]: stopped in /magus/work/usr/mports/mail/libspf/work/libspf-1.0.0-p5/src
*** Error code 1
Stop.
make[2]: stopped in /magus/work/usr/mports/mail/libspf/work/libspf-1.0.0-p5
*** Error code 1
Stop.
make[1]: stopped in /magus/work/usr/mports/mail/libspf/work/libspf-1.0.0-p5
*** Error code 1
Stop.
make: stopped in /usr/mports/mail/libspf