=> 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 megatools-1.9.95nb8
  GEN    mega/mega-marshal.list
  GEN    mega/mega-enum-types.c
  GEN    mega/mega-enum-types.h
  GEN    mega/mega-marshal.c
  GEN    mega/mega-marshal.h
INFO: Reading mega/mega-marshal.list...
INFO: Reading mega/mega-marshal.list...
  CC       mega/libmega_la-mega-rsa-key.lo
  CC       mega/libmega_la-mega-http-output-stream.lo
  CC       mega/libmega_la-mega-http-io-stream.lo
  CC       mega/libmega_la-mega-http-client.lo
  CC       mega/libmega_la-mega-chunked-cbc-mac.lo
  CC       mega/libmega_la-utils.lo
  CC       mega/libmega_la-mega-enum-types.lo
  CC       mega/libmega_la-mega-aes-ctr-encryptor.lo
  CC       mega/libmega_la-mega-http-input-stream.lo
  CC       tests/test-aes.o
  CC       mega/libmega_la-mega-marshal.lo
  CC       mega/libmega_la-mega-aes-key.lo
  CC       tests/test-rsa.o
  CC       tools/df.o
  CC       tools/dl.o
  CC       tools/get.o
  CC       tools/ls.o
  CC       tools/mkdir.o
  CC       tools/put.o
  CC       tools/reg.o
  CC       tools/rm.o
mega/mega-rsa-key.c:517:9: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations]
  key = RSA_generate_key(2048, RSA_3, NULL, NULL);
        ^
/usr/include/openssl/rsa.h:193:1: note: 'RSA_generate_key' has been explicitly marked deprecated here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^
/usr/include/openssl/opensslconf.h:139:34: note: expanded from macro 'DEPRECATEDIN_0_9_8'
# define DEPRECATEDIN_0_9_8(f)   DECLARE_DEPRECATED(f)
                                 ^
/usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
                                                    ^
mega/mega-rsa-key.c:531:32: error: incomplete definition of type 'struct rsa_st'
  rsa_key->priv->p = BN_dup(key->q);
                            ~~~^
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;
               ^
mega/mega-rsa-key.c:532:32: error: incomplete definition of type 'struct rsa_st'
  rsa_key->priv->q = BN_dup(key->p);
                            ~~~^
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;
               ^
mega/mega-rsa-key.c:533:32: error: incomplete definition of type 'struct rsa_st'
  rsa_key->priv->d = BN_dup(key->d);
                            ~~~^
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;
               ^
mega/mega-rsa-key.c:534:32: error: incomplete definition of type 'struct rsa_st'
  rsa_key->priv->u = BN_dup(key->iqmp);
                            ~~~^
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;
               ^
mega/mega-rsa-key.c:537:32: error: incomplete definition of type 'struct rsa_st'
  rsa_key->priv->m = BN_dup(key->n);
                            ~~~^
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;
               ^
mega/mega-rsa-key.c:538:32: error: incomplete definition of type 'struct rsa_st'
  rsa_key->priv->e = BN_dup(key->e);
                            ~~~^
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;
               ^
1 warning and 6 errors generated.
gmake[1]: *** [Makefile:985: mega/libmega_la-mega-rsa-key.lo] Error 1
gmake[1]: *** Waiting for unfinished jobs....
mega/mega-aes-key.c:713:3: warning: implicit declaration of function 'AES_ctr128_encrypt' is invalid in C99 [-Wimplicit-function-declaration]
  AES_ctr128_encrypt(from, to, len, &aes_key->priv->enc_key, aes_key->priv->ctr_iv, aes_key->priv->ctr_ecount, &aes_key->priv->ctr_num);
  ^
1 warning generated.
gmake: *** [Makefile:625: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /data/pkgsrc/net/megatools
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/net/megatools