=> 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 mariadb-client-5.5.57
Scanning dependencies of target INFO_SRC
Scanning dependencies of target mysqlservices
Scanning dependencies of target dbug-unit-tests
Scanning dependencies of target INFO_BIN
Scanning dependencies of target comp_sql
Scanning dependencies of target regex
Scanning dependencies of target innochecksum
Scanning dependencies of target vio
[  0%] Building C object libservices/CMakeFiles/mysqlservices.dir/my_thread_scheduler_service.c.o
[  0%] Building C object libservices/CMakeFiles/mysqlservices.dir/thd_wait_service.c.o
[  0%] Building C object libservices/CMakeFiles/mysqlservices.dir/my_snprintf_service.c.o
[  1%] Building C object libservices/CMakeFiles/mysqlservices.dir/progress_report_service.c.o
[  2%] Building C object libservices/CMakeFiles/mysqlservices.dir/thd_alloc_service.c.o
[  2%] Building C object libservices/CMakeFiles/mysqlservices.dir/kill_statement_service.c.o
[  3%] Building C object scripts/CMakeFiles/comp_sql.dir/comp_sql.c.o
[  3%] Built target INFO_SRC
[  4%] Building C object libservices/CMakeFiles/mysqlservices.dir/logger_service.c.o
[  4%] Generating dbug-t
[  5%] Building C object regex/CMakeFiles/regex.dir/regcomp.c.o
[  5%] Building C object vio/CMakeFiles/vio.dir/vio.c.o
[  5%] Building C object libservices/CMakeFiles/mysqlservices.dir/debug_sync_service.c.o
[  6%] Building C object extra/CMakeFiles/innochecksum.dir/innochecksum.c.o
[  6%] Building C object regex/CMakeFiles/regex.dir/regerror.c.o
[  6%] Built target dbug-unit-tests
[  6%] Built target INFO_BIN
[  7%] Building C object regex/CMakeFiles/regex.dir/regexec.c.o
[  7%] Building C object regex/CMakeFiles/regex.dir/regfree.c.o
Scanning dependencies of target strings
[  7%] Building C object strings/CMakeFiles/strings.dir/bchange.c.o
[  7%] Building C object strings/CMakeFiles/strings.dir/bmove_upp.c.o
[  7%] Building C object regex/CMakeFiles/regex.dir/reginit.c.o
[  7%] Building C object vio/CMakeFiles/vio.dir/viosocket.c.o
[  7%] Linking C executable comp_sql
[  8%] Building C object strings/CMakeFiles/strings.dir/ctype-big5.c.o
[  8%] Building C object strings/CMakeFiles/strings.dir/ctype-bin.c.o
/data/scratch/databases/mariadb55-client/work/mariadb-5.5.57/vio/vio.c:316:3: warning: 'ERR_remove_thread_state' is deprecated [-Wdeprecated-declarations]
  ERR_remove_state(0);
  ^
/data/scratch/databases/mariadb55-client/work/mariadb-5.5.57/include/violite.h:127:29: note: expanded from macro 'ERR_remove_state'
#define ERR_remove_state(X) ERR_remove_thread_state(NULL)
                            ^
/usr/include/openssl/err.h:247:1: note: 'ERR_remove_thread_state' has been explicitly marked deprecated here
DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))
^
/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));
                                                    ^
[  9%] Building C object strings/CMakeFiles/strings.dir/ctype-cp932.c.o
[  9%] Building C object strings/CMakeFiles/strings.dir/ctype-czech.c.o
[ 10%] Building C object vio/CMakeFiles/vio.dir/viossl.c.o
[ 10%] Linking C executable innochecksum
[ 10%] Linking C static library libmysqlservices.a
[ 10%] Building C object strings/CMakeFiles/strings.dir/ctype-euc_kr.c.o
1 warning generated.
[ 10%] Built target mysqlservices
[ 10%] Building C object vio/CMakeFiles/vio.dir/viosslfactories.c.o
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-eucjpms.c.o
[ 11%] Built target comp_sql
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-extra.c.o
Scanning dependencies of target GenFixPrivs
[ 11%] Generating mysql_fix_privilege_tables_sql.c
[ 11%] Built target GenFixPrivs
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-gb2312.c.o
[ 12%] Building C object strings/CMakeFiles/strings.dir/ctype-gbk.c.o
[ 12%] Built target innochecksum
[ 12%] Building C object strings/CMakeFiles/strings.dir/ctype-latin1.c.o
[ 12%] Building C object strings/CMakeFiles/strings.dir/ctype-mb.c.o
[ 13%] Building C object strings/CMakeFiles/strings.dir/ctype-tis620.c.o
/data/scratch/databases/mariadb55-client/work/mariadb-5.5.57/vio/viosslfactories.c:62:5: 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/mariadb55-client/work/mariadb-5.5.57/vio/viosslfactories.c:63:5: 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/mariadb55-client/work/mariadb-5.5.57/vio/viosslfactories.c:64:10: error: incomplete definition of type 'struct dh_st'
  if ((dh->p == NULL) || (dh->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/mariadb55-client/work/mariadb-5.5.57/vio/viosslfactories.c:64:29: error: incomplete definition of type 'struct dh_st'
  if ((dh->p == NULL) || (dh->g == NULL))
                          ~~^
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st'
typedef struct dh_st DH;
               ^
4 errors generated.
[ 13%] Building C object strings/CMakeFiles/strings.dir/ctype-sjis.c.o
[ 14%] Building C object strings/CMakeFiles/strings.dir/ctype-simple.c.o
vio/CMakeFiles/vio.dir/build.make:101: 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....
[ 14%] Building C object strings/CMakeFiles/strings.dir/ctype-uca.c.o
[ 14%] Building C object strings/CMakeFiles/strings.dir/ctype-ucs2.c.o
CMakeFiles/Makefile2:530: recipe for target 'vio/CMakeFiles/vio.dir/all' failed
gmake[1]: *** [vio/CMakeFiles/vio.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 15%] Building C object strings/CMakeFiles/strings.dir/ctype-ujis.c.o
[ 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/llstr.c.o
[ 18%] Linking C static library libregex.a
[ 18%] Building C object strings/CMakeFiles/strings.dir/is_prefix.c.o
[ 18%] Built target regex
[ 18%] Building C object strings/CMakeFiles/strings.dir/my_strtoll10.c.o
[ 19%] Building C object strings/CMakeFiles/strings.dir/my_vsnprintf.c.o
[ 20%] Building C object strings/CMakeFiles/strings.dir/longlong2str.c.o
[ 20%] Building C object strings/CMakeFiles/strings.dir/str_alloc.c.o
[ 20%] Building C object strings/CMakeFiles/strings.dir/str2int.c.o
[ 20%] Building C object strings/CMakeFiles/strings.dir/strend.c.o
[ 20%] Building C object strings/CMakeFiles/strings.dir/strfill.c.o
[ 21%] Building C object strings/CMakeFiles/strings.dir/strcend.c.o
[ 22%] Building C object strings/CMakeFiles/strings.dir/strmake.c.o
[ 22%] Building C object strings/CMakeFiles/strings.dir/strmov.c.o
[ 22%] 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/strmov_overlapp.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
[ 25%] Building C object strings/CMakeFiles/strings.dir/strappend.c.o
[ 25%] Linking C static library libstrings.a
[ 25%] 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/mariadb55-client
*** Error code 1

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