=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for swi-prolog-jpl-6.6.6nb2
gcc -O2 -Wall -fno-strict-aliasing -pthread -fPIC -I/usr/pkg/include -I/usr/include -I/data/scratch/lang/swi-prolog-jpl/work/pl-6.6.6/src/../include -I'/usr/pkg/java/openjdk8/include' -DHAVE_CONFIG_H -D__SWI_PROLOG__ -I/usr/pkg/include -I/usr/include  -c -o src/c/jpl.o src/c/jpl.c
src/c/jpl.c: In function 'jni_tag_to_iref2':
src/c/jpl.c:689:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[2])
        ^
src/c/jpl.c:690:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[3])
        ^
src/c/jpl.c:691:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[4])
        ^
src/c/jpl.c:692:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[5])
        ^
src/c/jpl.c:693:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[6])
        ^
src/c/jpl.c:694:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[7])
        ^
src/c/jpl.c:695:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[8])
        ^
src/c/jpl.c:696:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[9])
        ^
src/c/jpl.c:697:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[10])
        ^
src/c/jpl.c:698:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[11])
        ^
src/c/jpl.c:699:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[12])
        ^
src/c/jpl.c:700:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[13])
        ^
src/c/jpl.c:701:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[14])
        ^
src/c/jpl.c:702:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[15])
        ^
src/c/jpl.c:703:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[16])
        ^
src/c/jpl.c:704:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[17])
        ^
src/c/jpl.c:705:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[18])
        ^
src/c/jpl.c:706:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[19])
        ^
src/c/jpl.c:707:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[20])
        ^
src/c/jpl.c:708:8: warning: array subscript has type 'char' [-Wchar-subscripts]
        && isdigit(s[21]))    /* s is like 'J#01234567890123456789' */
        ^
gcc -shared -rdynamic -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -pthread -L/usr/pkg/lib/swi-prolog-6.6.6/lib/x86_64--netbsd -L'/usr/pkg/java/openjdk8/jre/lib/amd64/server' -L'/usr/pkg/java/openjdk8/jre/lib/amd64' -o libjpl.so src/c/jpl.o  -ljsig -ljava -lverify -ljvm -lswipl
ld: /data/scratch/lang/swi-prolog-jpl/work/.buildlink/lib/swi-prolog-6.6.6/lib/x86_64--netbsd/libswipl.a(pl-atom.o): relocation R_X86_64_32S against `PL_global_data' can not be used when making a shared object; recompile with -fPIC
/data/scratch/lang/swi-prolog-jpl/work/.buildlink/lib/swi-prolog-6.6.6/lib/x86_64--netbsd/libswipl.a: could not read symbols: Bad value
Makefile:42: recipe for target 'libjpl.so' failed
gmake: *** [libjpl.so] Error 1
*** Error code 2

Stop.
make[1]: stopped in /data/pkgsrc-current/lang/swi-prolog-jpl
*** Error code 1

Stop.
make: stopped in /data/pkgsrc-current/lang/swi-prolog-jpl