=> 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 ptex-2.1.28
Scanning dependencies of target Ptex_dynamic
Scanning dependencies of target Ptex_static
[  3%] Building CXX object src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexTriangleFilter.cpp.o
[  6%] Building CXX object src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexCache.cpp.o
[  9%] Building CXX object src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexUtils.cpp.o
[ 12%] Building CXX object src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexReader.cpp.o
[ 15%] Building CXX object src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexSeparableFilter.cpp.o
[ 18%] Building CXX object src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexSeparableKernel.cpp.o
[ 21%] Building CXX object src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexFilters.cpp.o
[ 25%] Building CXX object src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexTriangleKernel.cpp.o
[ 28%] Building CXX object src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexWriter.cpp.o
[ 31%] Building CXX object src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexHalf.cpp.o
[ 34%] Building CXX object src/ptex/CMakeFiles/Ptex_static.dir/PtexCache.cpp.o
[ 37%] Building CXX object src/ptex/CMakeFiles/Ptex_static.dir/PtexReader.cpp.o
[ 40%] Building CXX object src/ptex/CMakeFiles/Ptex_static.dir/PtexFilters.cpp.o
[ 43%] Building CXX object src/ptex/CMakeFiles/Ptex_static.dir/PtexSeparableFilter.cpp.o
[ 46%] Building CXX object src/ptex/CMakeFiles/Ptex_static.dir/PtexHalf.cpp.o
[ 50%] Building CXX object src/ptex/CMakeFiles/Ptex_static.dir/PtexSeparableKernel.cpp.o
[ 53%] Building CXX object src/ptex/CMakeFiles/Ptex_static.dir/PtexTriangleFilter.cpp.o
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexUtils.cpp:51:22: warning: comparison of constant 2 with expression of type 'Ptex::v2_2::MeshType' is always false [-Wtautological-constant-out-of-range-compare]
    if (mt < 0 || mt >= int(sizeof(names)/sizeof(const char*)))
                  ~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexUtils.cpp:60:22: warning: comparison of constant 4 with expression of type 'Ptex::v2_2::DataType' is always false [-Wtautological-constant-out-of-range-compare]
    if (dt < 0 || dt >= int(sizeof(names)/sizeof(const char*)))
                  ~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexUtils.cpp:77:20: warning: comparison of constant 2 with expression of type 'Ptex::v2_2::EdgeFilterMode' is always false [-Wtautological-constant-out-of-range-compare]
    if (m < 0 || m >= int(sizeof(names)/sizeof(const char*)))
                 ~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexUtils.cpp:86:24: warning: comparison of constant 4 with expression of type 'Ptex::v2_2::EdgeId' is always false [-Wtautological-constant-out-of-range-compare]
    if (eid < 0 || eid >= int(sizeof(names)/sizeof(const char*)))
                   ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 56%] Building CXX object src/ptex/CMakeFiles/Ptex_static.dir/PtexTriangleKernel.cpp.o
[ 59%] Building CXX object src/ptex/CMakeFiles/Ptex_static.dir/PtexUtils.cpp.o
4 warnings generated.
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexWriter.cpp:322:9: error: use of undeclared identifier 'unlink'
        unlink(_tilepath.c_str());
        ^
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexWriter.cpp:791:9: error: use of undeclared identifier 'unlink'
        unlink(_tmppath.c_str());
        ^
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexWriter.cpp:796:9: error: use of undeclared identifier 'unlink'
        unlink(_path.c_str());
        ^
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexWriter.cpp:799:13: error: use of undeclared identifier 'unlink'
            unlink(_newpath.c_str());
            ^
[ 62%] Building CXX object src/ptex/CMakeFiles/Ptex_static.dir/PtexWriter.cpp.o
In file included from /data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexWriter.cpp:60:
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexPlatform.h:210:16: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
        return *(T*)NULL;
               ^~~~~~~~~
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexReader.h:71:55: note: in instantiation of function template specialization 'Ptex::v2_2::AtomicAdd<unsigned long>' requested here
    void increaseMemUsed(size_t amount) { if (amount) AtomicAdd(&_memUsed, amount); }
                                                      ^
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexPlatform.h:210:16: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
        return *(T*)NULL;
               ^
1 warning and 4 errors generated.
--- src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexWriter.cpp.o ---
*** [src/ptex/CMakeFiles/Ptex_dynamic.dir/PtexWriter.cpp.o] Error code 1

make[2]: stopped in /data/scratch/graphics/ptex/work/ptex-2.1.28
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexUtils.cpp:51:22: warning: comparison of constant 2 with expression of type 'Ptex::v2_2::MeshType' is always false [-Wtautological-constant-out-of-range-compare]
    if (mt < 0 || mt >= int(sizeof(names)/sizeof(const char*)))
                  ~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexUtils.cpp:60:22: warning: comparison of constant 4 with expression of type 'Ptex::v2_2::DataType' is always false [-Wtautological-constant-out-of-range-compare]
    if (dt < 0 || dt >= int(sizeof(names)/sizeof(const char*)))
                  ~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexUtils.cpp:77:20: warning: comparison of constant 2 with expression of type 'Ptex::v2_2::EdgeFilterMode' is always false [-Wtautological-constant-out-of-range-compare]
    if (m < 0 || m >= int(sizeof(names)/sizeof(const char*)))
                 ~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexUtils.cpp:86:24: warning: comparison of constant 4 with expression of type 'Ptex::v2_2::EdgeId' is always false [-Wtautological-constant-out-of-range-compare]
    if (eid < 0 || eid >= int(sizeof(names)/sizeof(const char*)))
                   ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error

make[2]: stopped in /data/scratch/graphics/ptex/work/ptex-2.1.28
--- src/ptex/CMakeFiles/Ptex_dynamic.dir/all ---
*** [src/ptex/CMakeFiles/Ptex_dynamic.dir/all] Error code 2

make[1]: stopped in /data/scratch/graphics/ptex/work/ptex-2.1.28
4 warnings generated.
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexWriter.cpp:322:9: error: use of undeclared identifier 'unlink'
        unlink(_tilepath.c_str());
        ^
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexWriter.cpp:791:9: error: use of undeclared identifier 'unlink'
        unlink(_tmppath.c_str());
        ^
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexWriter.cpp:796:9: error: use of undeclared identifier 'unlink'
        unlink(_path.c_str());
        ^
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexWriter.cpp:799:13: error: use of undeclared identifier 'unlink'
            unlink(_newpath.c_str());
            ^
In file included from /data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexWriter.cpp:60:
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexPlatform.h:210:16: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
        return *(T*)NULL;
               ^~~~~~~~~
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexReader.h:71:55: note: in instantiation of function template specialization 'Ptex::v2_2::AtomicAdd<unsigned long>' requested here
    void increaseMemUsed(size_t amount) { if (amount) AtomicAdd(&_memUsed, amount); }
                                                      ^
/data/scratch/graphics/ptex/work/ptex-2.1.28/src/ptex/PtexPlatform.h:210:16: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
        return *(T*)NULL;
               ^
1 warning and 4 errors generated.
--- src/ptex/CMakeFiles/Ptex_static.dir/PtexWriter.cpp.o ---
*** [src/ptex/CMakeFiles/Ptex_static.dir/PtexWriter.cpp.o] Error code 1

make[2]: stopped in /data/scratch/graphics/ptex/work/ptex-2.1.28
1 error

make[2]: stopped in /data/scratch/graphics/ptex/work/ptex-2.1.28
--- src/ptex/CMakeFiles/Ptex_static.dir/all ---
*** [src/ptex/CMakeFiles/Ptex_static.dir/all] Error code 2

make[1]: stopped in /data/scratch/graphics/ptex/work/ptex-2.1.28
2 errors

make[1]: stopped in /data/scratch/graphics/ptex/work/ptex-2.1.28
*** [all] Error code 2

make: stopped in /data/scratch/graphics/ptex/work/ptex-2.1.28
1 error

make: stopped in /data/scratch/graphics/ptex/work/ptex-2.1.28
*** Error code 2

Stop.
make[1]: stopped in /data/pkgsrc/graphics/ptex
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/graphics/ptex
