=> Bootstrap dependency digest>=20010302: found digest-20190127
===> Building for lua51-sec-0.6
-------------------
** Build for BSD **
-------------------
gmake[1]: Entering directory '/tmp/pkgbuild/security/lua-sec/work.i386/luasec-luasec-0.6/src'
gmake[2]: Entering directory '/tmp/pkgbuild/security/lua-sec/work.i386/luasec-luasec-0.6/src'
cc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include/lua-5.1 -I/usr/include  -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -I/usr/pkg/include/lua-5.1 -I/usr/include  -c -o x509.o x509.c
cc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include/lua-5.1 -I/usr/include  -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -I/usr/pkg/include/lua-5.1 -I/usr/include  -c -o context.o context.c
cc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include/lua-5.1 -I/usr/include  -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -I/usr/pkg/include/lua-5.1 -I/usr/include  -c -o ssl.o ssl.c
gmake[3]: Entering directory '/tmp/pkgbuild/security/lua-sec/work.i386/luasec-luasec-0.6/src/luasocket'
cc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include/lua-5.1 -I/usr/include  -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -DLUASOCKET_DEBUG -I/usr/pkg/include/lua-5.1 -I/usr/include  -c -o io.o io.c
context.c:39:0: warning: "SSLv23_method" redefined
 #define SSLv23_method() TLS_method()
 
In file included from context.c:16:0:
/usr/include/openssl/ssl.h:1867:0: note: this is the location of the previous definition
 #define SSLv23_method           TLS_method
 
cc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include/lua-5.1 -I/usr/include  -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -DLUASOCKET_DEBUG -I/usr/pkg/include/lua-5.1 -I/usr/include  -c -o buffer.o buffer.c
context.c: In function 'str2method':
context.c:104:3: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations]
In file included from context.c:16:0:
/usr/include/openssl/ssl.h:1877:19: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */
                   ^~~~~~~~~~~~
context.c:106:3: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations]
In file included from context.c:16:0:
/usr/include/openssl/ssl.h:1883:19: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */
                   ^~~~~~~~~~~~~~
context.c:107:3: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations]
In file included from context.c:16:0:
/usr/include/openssl/ssl.h:1889:19: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */
                   ^~~~~~~~~~~~~~
cc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include/lua-5.1 -I/usr/include  -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -DLUASOCKET_DEBUG -I/usr/pkg/include/lua-5.1 -I/usr/include  -c -o timeout.o timeout.c
distcc[17766] ERROR: compile ssl.c on 10.0.20.122:3648 failed
distcc[17766] (dcc_build_somewhere) Warning: remote compilation of 'ssl.c' failed, retrying locally
distcc[17766] Warning: failed to distribute ssl.c to 10.0.20.122:3648, running locally instead
distcc[17030] ERROR: compile x509.c on 10.0.20.122:3648 failed
distcc[17030] (dcc_build_somewhere) Warning: remote compilation of 'x509.c' failed, retrying locally
distcc[17030] Warning: failed to distribute x509.c to 10.0.20.122:3648, running locally instead
cc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include/lua-5.1 -I/usr/include  -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -O2 -fPIC -Wall -pedantic -I. -I/usr/pkg/include -DWITH_LUASOCKET -DLUA_COMPAT_MODULE -DLUASOCKET_DEBUG -I/usr/pkg/include/lua-5.1 -I/usr/include  -c -o usocket.o usocket.c
x509.c: In function 'push_asn1_string':
x509.c:149:5: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations]
     lua_pushlstring(L, (char*)ASN1_STRING_data(string),
     ^~~~~~~~~~~~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/ssl.h:15,
                 from x509.c:22:
/usr/include/openssl/asn1.h:554:1: note: declared here
 DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
 ^
x509.c: In function 'push_asn1_ip':
x509.c:185:3: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations]
   unsigned char *ip = ASN1_STRING_data(string);
   ^~~~~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/ssl.h:15,
                 from x509.c:22:
/usr/include/openssl/asn1.h:554:1: note: declared here
 DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
 ^
x509.c: In function 'meth_extensions':
x509.c:296:35: error: dereferencing pointer to incomplete type 'X509_EXTENSION {aka struct X509_extension_st}'
     push_asn1_objname(L, extension->object, 1);
                                   ^~
x509.c: In function 'meth_pubkey':
x509.c:407:32: error: dereferencing pointer to incomplete type 'EVP_PKEY {aka struct evp_pkey_st}'
       switch(EVP_PKEY_type(pkey->type)) {
                                ^~
distcc[17030] ERROR: compile x509.c on localhost failed
gmake[2]: *** [<builtin>: x509.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
ar rcu libluasocket.a io.o buffer.o timeout.o usocket.o
ranlib libluasocket.a
gmake[3]: Leaving directory '/tmp/pkgbuild/security/lua-sec/work.i386/luasec-luasec-0.6/src/luasocket'
ssl.c: In function 'meth_getpeercertificate':
ssl.c:464:15: error: dereferencing pointer to incomplete type 'SSL {aka struct ssl_st}'
   if (ssl->ssl->server)
               ^~
ssl.c:474:3: warning: implicit declaration of function 'CRYPTO_add'; did you mean 'CRYPTO_free'? [-Wimplicit-function-declaration]
   CRYPTO_add(&cert->references, 1, CRYPTO_LOCK_X509);
   ^~~~~~~~~~
   CRYPTO_free
ssl.c:474:19: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}'
   CRYPTO_add(&cert->references, 1, CRYPTO_LOCK_X509);
                   ^~
ssl.c:474:36: error: 'CRYPTO_LOCK_X509' undeclared (first use in this function); did you mean 'CRYPTO_LOCK'?
   CRYPTO_add(&cert->references, 1, CRYPTO_LOCK_X509);
                                    ^~~~~~~~~~~~~~~~
                                    CRYPTO_LOCK
ssl.c:474:36: note: each undeclared identifier is reported only once for each function it appears in
ssl.c: In function 'meth_getpeerchain':
ssl.c:506:38: error: 'CRYPTO_LOCK_X509' undeclared (first use in this function); did you mean 'CRYPTO_LOCK'?
     CRYPTO_add(&cert->references, 1, CRYPTO_LOCK_X509);
                                      ^~~~~~~~~~~~~~~~
                                      CRYPTO_LOCK
distcc[17766] ERROR: compile ssl.c on localhost failed
gmake[2]: *** [<builtin>: ssl.o] Error 1
gmake[2]: Leaving directory '/tmp/pkgbuild/security/lua-sec/work.i386/luasec-luasec-0.6/src'
gmake[1]: *** [Makefile:47: bsd] Error 2
gmake[1]: Leaving directory '/tmp/pkgbuild/security/lua-sec/work.i386/luasec-luasec-0.6/src'
gmake: *** [Makefile:48: bsd] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/security/lua-sec
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/security/lua-sec