=> 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 mysql-client-5.5.59
Scanning dependencies of target INFO_SRC
Scanning dependencies of target INFO_BIN
Scanning dependencies of target comp_sql
Scanning dependencies of target regex
Scanning dependencies of target innochecksum
[  0%] Building C object scripts/CMakeFiles/comp_sql.dir/comp_sql.c.o
[  0%] Building C object regex/CMakeFiles/regex.dir/regfree.c.o
[  0%] Building C object regex/CMakeFiles/regex.dir/regerror.c.o
Scanning dependencies of target vio
[  0%] Building C object regex/CMakeFiles/regex.dir/regcomp.c.o
[  1%] Building C object regex/CMakeFiles/regex.dir/regexec.c.o
[  2%] Building C object extra/CMakeFiles/innochecksum.dir/innochecksum.c.o
[  3%] Building C object regex/CMakeFiles/regex.dir/reginit.c.o
[  3%] Built target INFO_SRC
[  3%] Built target INFO_BIN
[  4%] Building C object vio/CMakeFiles/vio.dir/viossl.c.o
[  5%] Building C object vio/CMakeFiles/vio.dir/vio.c.o
[  5%] Building C object vio/CMakeFiles/vio.dir/viosslfactories.c.o
[  5%] Building C object vio/CMakeFiles/vio.dir/viosocket.c.o
Scanning dependencies of target strings
[  6%] Building C object strings/CMakeFiles/strings.dir/bmove_upp.c.o
[  6%] Building C object strings/CMakeFiles/strings.dir/ctype-big5.c.o
[  6%] Building C object strings/CMakeFiles/strings.dir/bchange.c.o
[  6%] Building C object strings/CMakeFiles/strings.dir/ctype-cp932.c.o
[  7%] Building C object strings/CMakeFiles/strings.dir/ctype-bin.c.o
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/viossl.c:23:
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/vio_priv.h:26:
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/include/violite.h:24:
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/include/my_net.h:82:9: warning: 'in_addr_t' macro redefined [-Wmacro-redefined]
#define in_addr_t uint32
        ^
/usr/include/sys/endian.h:59:9: note: previous definition is here
#define in_addr_t       __in_addr_t
        ^
[  8%] Linking C executable comp_sql
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/vio.c:23:
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/vio_priv.h:26:
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/include/violite.h:24:
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/include/my_net.h:82:9: warning: 'in_addr_t' macro redefined [-Wmacro-redefined]
#define in_addr_t uint32
        ^
/usr/include/sys/endian.h:59:9: note: previous definition is here
#define in_addr_t       __in_addr_t
        ^
[  8%] Building C object strings/CMakeFiles/strings.dir/ctype-czech.c.o
1 warning generated.
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/viosslfactories.c:16:
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/vio_priv.h:26:
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/include/violite.h:24:
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/include/my_net.h:82:9: warning: 'in_addr_t' macro redefined [-Wmacro-redefined]
#define in_addr_t uint32
        ^
/usr/include/sys/endian.h:59:9: note: previous definition is here
#define in_addr_t       __in_addr_t
        ^
[  9%] Building C object strings/CMakeFiles/strings.dir/ctype-euc_kr.c.o
In file included from [  9%] Building C object strings/CMakeFiles/strings.dir/ctype-eucjpms.c.o
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/viosocket.c:31:
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/vio_priv.h:26:
In file included from /data/scratch/databases/mysql55-client/work/mysql-5.5.59/include/violite.h:24:
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/include/my_net.h:82:9: warning: 'in_addr_t' macro redefined [-Wmacro-redefined]
#define in_addr_t uint32
        ^
/usr/include/sys/endian.h:59:9: note: previous definition is here
#define in_addr_t       __in_addr_t
        ^
[  9%] Linking C executable innochecksum
[ 10%] Building C object strings/CMakeFiles/strings.dir/ctype-extra.c.o
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/viosslfactories.c:71:7: error: incomplete definition of type 'struct dh_st'
    dh->p=BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL);
    ~~^
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st'
typedef struct dh_st DH;
               ^
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/viosslfactories.c:72:7: error: incomplete definition of type 'struct dh_st'
    dh->g=BN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL);
    ~~^
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st'
typedef struct dh_st DH;
               ^
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/viosslfactories.c:73:13: error: incomplete definition of type 'struct dh_st'
    if (! dh->p || ! dh->g)
          ~~^
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st'
typedef struct dh_st DH;
               ^
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/viosslfactories.c:73:24: error: incomplete definition of type 'struct dh_st'
    if (! dh->p || ! dh->g)
                     ~~^
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st'
typedef struct dh_st DH;
               ^
[ 10%] Built target comp_sql
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/viosslfactories.c:224:42: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations]
                                         TLSv1_client_method() :
                                         ^
/usr/include/openssl/ssl.h:1626:1: note: 'TLSv1_client_method' has been explicitly marked deprecated here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */
^
/usr/include/openssl/opensslconf.h:127:34: note: expanded from macro 'DEPRECATEDIN_1_1_0'
# define DEPRECATEDIN_1_1_0(f)   DECLARE_DEPRECATED(f)
                                 ^
/usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
                                                    ^
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/vio/viosslfactories.c:225:42: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations]
                                         TLSv1_server_method())))
                                         ^
/usr/include/openssl/ssl.h:1625:1: note: 'TLSv1_server_method' has been explicitly marked deprecated here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /* TLSv1.0 */
^
/usr/include/openssl/opensslconf.h:127:34: note: expanded from macro 'DEPRECATEDIN_1_1_0'
# define DEPRECATEDIN_1_1_0(f)   DECLARE_DEPRECATED(f)
                                 ^
/usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
                                                    ^
3 warnings and 4 errors generated.
1 warning generated.
[ 10%] Building C object strings/CMakeFiles/strings.dir/ctype-gb2312.c.o
Scanning dependencies of target GenFixPrivs
vio/CMakeFiles/vio.dir/build.make:134: recipe for target 'vio/CMakeFiles/vio.dir/viosslfactories.c.o' failed
gmake[2]: *** [vio/CMakeFiles/vio.dir/viosslfactories.c.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-gbk.c.o
[ 11%] Generating mysql_fix_privilege_tables_sql.c
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-latin1.c.o
[ 12%] Building C object strings/CMakeFiles/strings.dir/ctype-mb.c.o
[ 12%] Built target GenFixPrivs
[ 12%] Building C object strings/CMakeFiles/strings.dir/ctype-simple.c.o
[ 12%] Building C object strings/CMakeFiles/strings.dir/ctype-sjis.c.o
[ 13%] Building C object strings/CMakeFiles/strings.dir/ctype-tis620.c.o
1 warning generated.
CMakeFiles/Makefile2:351: recipe for target 'vio/CMakeFiles/vio.dir/all' failed
gmake[1]: *** [vio/CMakeFiles/vio.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 13%] Building C object strings/CMakeFiles/strings.dir/ctype-uca.c.o
[ 13%] Built target innochecksum
[ 14%] Building C object strings/CMakeFiles/strings.dir/ctype-ucs2.c.o
[ 14%] Building C object strings/CMakeFiles/strings.dir/ctype-ujis.c.o
[ 14%] Linking C static library libregex.a
[ 14%] Built target regex
[ 15%] Building C object strings/CMakeFiles/strings.dir/ctype-utf8.c.o
[ 15%] Building C object strings/CMakeFiles/strings.dir/ctype-win1250ch.c.o
[ 16%] Building C object strings/CMakeFiles/strings.dir/ctype.c.o
[ 16%] Building C object strings/CMakeFiles/strings.dir/decimal.c.o
[ 16%] Building C object strings/CMakeFiles/strings.dir/dtoa.c.o
[ 17%] Building C object strings/CMakeFiles/strings.dir/int2str.c.o
[ 17%] Building C object strings/CMakeFiles/strings.dir/is_prefix.c.o
[ 18%] Building C object strings/CMakeFiles/strings.dir/llstr.c.o
[ 18%] Building C object strings/CMakeFiles/strings.dir/longlong2str.c.o
[ 19%] Building C object strings/CMakeFiles/strings.dir/my_strtoll10.c.o
[ 19%] Building C object strings/CMakeFiles/strings.dir/my_vsnprintf.c.o
[ 19%] Building C object strings/CMakeFiles/strings.dir/str2int.c.o
/data/scratch/databases/mysql55-client/work/mysql-5.5.59/strings/decimal.c:675:17: warning: use of unary operator that may be intended as compound assignment (-=)
      mini_shift=- l_mini_shift;
                ^~
[ 20%] Building C object strings/CMakeFiles/strings.dir/str_alloc.c.o
[ 20%] Building C object strings/CMakeFiles/strings.dir/strcend.c.o
[ 21%] Building C object strings/CMakeFiles/strings.dir/strend.c.o
[ 21%] Building C object strings/CMakeFiles/strings.dir/strfill.c.o
[ 22%] Building C object strings/CMakeFiles/strings.dir/strmake.c.o
[ 22%] Building C object strings/CMakeFiles/strings.dir/strmov.c.o
[ 23%] Building C object strings/CMakeFiles/strings.dir/strnmov.c.o
[ 23%] Building C object strings/CMakeFiles/strings.dir/strxmov.c.o
[ 23%] Building C object strings/CMakeFiles/strings.dir/strxnmov.c.o
[ 24%] Building C object strings/CMakeFiles/strings.dir/xml.c.o
[ 24%] Building C object strings/CMakeFiles/strings.dir/my_strchr.c.o
[ 25%] Building C object strings/CMakeFiles/strings.dir/strcont.c.o
1 warning generated.
[ 25%] Building C object strings/CMakeFiles/strings.dir/strappend.c.o
[ 26%] Linking C static library libstrings.a
[ 26%] Built target strings
Makefile:151: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /data/pkgsrc/databases/mysql55-client
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/databases/mysql55-client