=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Building for ptlib-2.10.7nb10 /usr/pkg/bin/gmake DEBUG= P_SHAREDLIB=1 default_target gmake[1]: Entering directory '/tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7' gmake[1]: Leaving directory '/tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7' gmake[1]: Entering directory '/tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/src' /usr/pkg/bin/gmake DEBUG= P_SHAREDLIB=1 default_target gmake[2]: Entering directory '/tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/src' [CC] ptclib/pssl.cxx [CC] ptclib/pldap.cxx [CC] ptclib/pils.cxx [CC] ptclib/vsdl.cxx In file included from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:145:0, from ptclib/pils.cxx:35: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] In file included from /usr/include/g++/bits/locale_conv.h:41:0, from /usr/include/g++/locale:43, from /usr/include/g++/iomanip:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/object.h:58, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psync.h:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/critsec.h:34, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/contain.h:42, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:56, from ptclib/pils.cxx:35: /usr/include/g++/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ [CC] ptlib/common/vfakeio.cxx distcc[18310] ERROR: compile ptclib/pssl.cxx on 10.0.20.122:3648 failed distcc[18310] (dcc_build_somewhere) Warning: remote compilation of 'ptclib/pssl.cxx' failed, retrying locally distcc[18310] Warning: failed to distribute ptclib/pssl.cxx to 10.0.20.122:3648, running locally instead In file included from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:145:0, from ptclib/vsdl.cxx:35: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] In file included from /usr/include/g++/bits/locale_conv.h:41:0, from /usr/include/g++/locale:43, from /usr/include/g++/iomanip:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/object.h:58, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psync.h:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/critsec.h:34, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/contain.h:42, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:56, from ptclib/vsdl.cxx:35: /usr/include/g++/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ [CC] ptlib/common/videoio.cxx In file included from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:145:0, from ptclib/pldap.cxx:35: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] In file included from /usr/include/g++/bits/locale_conv.h:41:0, from /usr/include/g++/locale:43, from /usr/include/g++/iomanip:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/object.h:58, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psync.h:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/critsec.h:34, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/contain.h:42, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:56, from ptclib/pldap.cxx:35: /usr/include/g++/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ [CC] ptlib/common/vconvert.cxx In file included from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:145:0, from ptlib/common/vfakeio.cxx:31: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] In file included from /usr/include/g++/bits/locale_conv.h:41:0, from /usr/include/g++/locale:43, from /usr/include/g++/iomanip:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/object.h:58, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psync.h:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/critsec.h:34, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/contain.h:42, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:56, from ptlib/common/vfakeio.cxx:31: /usr/include/g++/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ [CC] ptlib/common/pvidchan.cxx In file included from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:145:0, from ptclib/pssl.cxx:86: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] PSharedPtr(std::auto_ptr & v) ^~~~~~~~ In file included from /usr/include/g++/bits/locale_conv.h:41:0, from /usr/include/g++/locale:43, from /usr/include/g++/iomanip:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/object.h:58, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psync.h:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/critsec.h:34, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/contain.h:42, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:56, from ptclib/pssl.cxx:86: /usr/include/g++/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ ptclib/pssl.cxx:143:35: error: 'BIO_s_file_internal' was not declared in this scope PSSL_BIO(BIO_METHOD *method = BIO_s_file_internal()) ^~~~~~~~~~~~~~~~~~~ ptclib/pssl.cxx:143:35: note: suggested alternative: 'BIO_s_file' PSSL_BIO(BIO_METHOD *method = BIO_s_file_internal()) ^~~~~~~~~~~~~~~~~~~ BIO_s_file In file included from /usr/include/openssl/x509.h:18:0, from /usr/include/openssl/ssl.h:20, from ptclib/pssl.cxx:99: ptclib/pssl.cxx: In member function 'PBoolean PSSLPrivateKey::Create(unsigned int, void (*)(int, int, void*), void*)': ptclib/pssl.cxx:255:83: warning: 'RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)' is deprecated [-Wdeprecated-declarations] if (EVP_PKEY_assign_RSA(key, RSA_generate_key(modulus, 0x10001, callback, cb_arg))) ^ In file included from /usr/include/openssl/e_os2.h:13:0, from /usr/include/openssl/ssl.h:15, from ptclib/pssl.cxx:99: /usr/include/openssl/rsa.h:234:1: note: declared here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ ptclib/pssl.cxx: In member function 'PBoolean PSSLPrivateKey::Load(const PFilePath&, PSSLFileTypes)': ptclib/pssl.cxx:290:12: error: call to 'PSSL_BIO::PSSL_BIO(BIO_METHOD*)' uses the default argument for parameter 1, which is not yet defined PSSL_BIO in; ^~ ptclib/pssl.cxx: In member function 'PBoolean PSSLPrivateKey::Save(const PFilePath&, PBoolean, PSSLFileTypes)': ptclib/pssl.cxx:329:12: error: call to 'PSSL_BIO::PSSL_BIO(BIO_METHOD*)' uses the default argument for parameter 1, which is not yet defined PSSL_BIO out; ^~~ ptclib/pssl.cxx: In member function 'PBoolean PSSLCertificate::Load(const PFilePath&, PSSLFileTypes)': ptclib/pssl.cxx:536:12: error: call to 'PSSL_BIO::PSSL_BIO(BIO_METHOD*)' uses the default argument for parameter 1, which is not yet defined PSSL_BIO in; ^~ ptclib/pssl.cxx: In member function 'PBoolean PSSLCertificate::Save(const PFilePath&, PBoolean, PSSLFileTypes)': ptclib/pssl.cxx:575:12: error: call to 'PSSL_BIO::PSSL_BIO(BIO_METHOD*)' uses the default argument for parameter 1, which is not yet defined PSSL_BIO out; ^~~ ptclib/pssl.cxx: In constructor 'PSSLDiffieHellman::PSSLDiffieHellman(const BYTE*, PINDEX, const BYTE*, PINDEX)': ptclib/pssl.cxx:630:5: error: invalid use of incomplete type 'struct dh_st' dh->p = BN_bin2bn(pData, pSize, NULL); ^~ In file included from ptclib/pssl.cxx:88:0: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptclib/pssl.h:45:8: note: forward declaration of 'struct dh_st' struct dh_st; ^~~~~ ptclib/pssl.cxx:631:5: error: invalid use of incomplete type 'struct dh_st' dh->g = BN_bin2bn(gData, gSize, NULL); ^~ In file included from ptclib/pssl.cxx:88:0: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptclib/pssl.h:45:8: note: forward declaration of 'struct dh_st' struct dh_st; ^~~~~ ptclib/pssl.cxx:632:9: error: invalid use of incomplete type 'struct dh_st' if (dh->p != NULL && dh->g != NULL) ^~ In file included from ptclib/pssl.cxx:88:0: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptclib/pssl.h:45:8: note: forward declaration of 'struct dh_st' struct dh_st; ^~~~~ ptclib/pssl.cxx:632:26: error: invalid use of incomplete type 'struct dh_st' if (dh->p != NULL && dh->g != NULL) ^~ In file included from ptclib/pssl.cxx:88:0: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptclib/pssl.h:45:8: note: forward declaration of 'struct dh_st' struct dh_st; ^~~~~ ptclib/pssl.cxx: In member function 'PBoolean PSSLDiffieHellman::Load(const PFilePath&, PSSLFileTypes)': ptclib/pssl.cxx:684:12: error: call to 'PSSL_BIO::PSSL_BIO(BIO_METHOD*)' uses the default argument for parameter 1, which is not yet defined PSSL_BIO in; ^~ ptclib/pssl.cxx: In member function 'void PSSLContext::Construct(PSSLContext::Method, const void*, PINDEX)': ptclib/pssl.cxx:814:27: warning: 'const SSL_METHOD* TLSv1_method()' is deprecated [-Wdeprecated-declarations] meth = TLSv1_method(); ^ In file included from /usr/include/openssl/e_os2.h:13:0, from /usr/include/openssl/ssl.h:15, from ptclib/pssl.cxx:99: /usr/include/openssl/ssl.h:1877:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ ptclib/pssl.cxx: In function 'int Psock_new(BIO*)': ptclib/pssl.cxx:1138:6: error: invalid use of incomplete type 'BIO {aka struct bio_st}' bio->init = 0; ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1139:6: error: invalid use of incomplete type 'BIO {aka struct bio_st}' bio->num = 0; ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1140:6: error: invalid use of incomplete type 'BIO {aka struct bio_st}' bio->ptr = NULL; // this is really (PSSLChannel *) ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1141:6: error: invalid use of incomplete type 'BIO {aka struct bio_st}' bio->flags = 0; ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx: In function 'int Psock_free(BIO*)': ptclib/pssl.cxx:1152:10: error: invalid use of incomplete type 'BIO {aka struct bio_st}' if (bio->shutdown) { ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1153:12: error: invalid use of incomplete type 'BIO {aka struct bio_st}' if (bio->init) { ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1125:51: error: invalid use of incomplete type 'BIO {aka struct bio_st}' #define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr)) ^ ptclib/pssl.cxx:1154:7: note: in expansion of macro 'PSSLCHANNEL' PSSLCHANNEL(bio)->Shutdown(PSocket::ShutdownReadAndWrite); ^~~~~~~~~~~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1125:51: error: invalid use of incomplete type 'BIO {aka struct bio_st}' #define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr)) ^ ptclib/pssl.cxx:1155:7: note: in expansion of macro 'PSSLCHANNEL' PSSLCHANNEL(bio)->Close(); ^~~~~~~~~~~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1157:8: error: invalid use of incomplete type 'BIO {aka struct bio_st}' bio->init = 0; ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1158:8: error: invalid use of incomplete type 'BIO {aka struct bio_st}' bio->flags = 0; ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx: In function 'long int Psock_ctrl(BIO*, int, long int, void*)': ptclib/pssl.cxx:1168:10: error: invalid use of incomplete type 'BIO {aka struct bio_st}' bio->shutdown = (int)num; ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1172:17: error: invalid use of incomplete type 'BIO {aka struct bio_st}' return bio->shutdown; ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx: In function 'int Psock_read(BIO*, char*, int)': ptclib/pssl.cxx:1125:51: error: invalid use of incomplete type 'BIO {aka struct bio_st}' #define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr)) ^ ptclib/pssl.cxx:1192:7: note: in expansion of macro 'PSSLCHANNEL' if (PSSLCHANNEL(bio)->RawSSLRead(out, len)) ^~~~~~~~~~~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1125:51: error: invalid use of incomplete type 'BIO {aka struct bio_st}' #define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr)) ^ ptclib/pssl.cxx:1195:11: note: in expansion of macro 'PSSLCHANNEL' switch (PSSLCHANNEL(bio)->GetErrorCode(PChannel::LastReadError)) { ^~~~~~~~~~~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx: In function 'int Psock_write(BIO*, const char*, int)': ptclib/pssl.cxx:1125:51: error: invalid use of incomplete type 'BIO {aka struct bio_st}' #define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr)) ^ ptclib/pssl.cxx:1217:7: note: in expansion of macro 'PSSLCHANNEL' if (PSSLCHANNEL(bio)->PIndirectChannel::Write(in, inl)) ^~~~~~~~~~~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1125:51: error: invalid use of incomplete type 'BIO {aka struct bio_st}' #define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr)) ^ ptclib/pssl.cxx:1218:12: note: in expansion of macro 'PSSLCHANNEL' return PSSLCHANNEL(bio)->GetLastWriteCount(); ^~~~~~~~~~~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1125:51: error: invalid use of incomplete type 'BIO {aka struct bio_st}' #define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr)) ^ ptclib/pssl.cxx:1220:11: note: in expansion of macro 'PSSLCHANNEL' switch (PSSLCHANNEL(bio)->GetErrorCode(PChannel::LastWriteError)) { ^~~~~~~~~~~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx: At global scope: ptclib/pssl.cxx:1247:19: error: variable 'BIO_METHOD methods_Psock' has initializer but incomplete type static BIO_METHOD methods_Psock = ^~~~~~~~~~~~~ ptclib/pssl.cxx: In member function 'virtual PBoolean PSSLChannel::OnOpen()': ptclib/pssl.cxx:1280:6: error: invalid use of incomplete type 'BIO {aka struct bio_st}' bio->ptr = this; ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx:1281:6: error: invalid use of incomplete type 'BIO {aka struct bio_st}' bio->init = 1; ^~ In file included from /usr/include/openssl/crypto.h:25:0, from /usr/include/openssl/comp.h:16, from /usr/include/openssl/ssl.h:17, from ptclib/pssl.cxx:99: /usr/include/openssl/ossl_typ.h:79:16: note: forward declaration of 'BIO {aka struct bio_st}' typedef struct bio_st BIO; ^~~~~~ ptclib/pssl.cxx: At global scope: ptclib/pssl.cxx:720:13: warning: 'void LockingCallback(int, int, const char*, int)' defined but not used [-Wunused-function] static void LockingCallback(int mode, int n, const char * /*file*/, int /*line*/) ^~~~~~~~~~~~~~~ distcc[18310] ERROR: compile ptclib/pssl.cxx on localhost failed gmake[2]: *** [../make/common.mak:97: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/lib_NetBSD_x86/obj/pssl.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... In file included from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:145:0, from ptlib/common/pvidchan.cxx:38: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] In file included from /usr/include/g++/bits/locale_conv.h:41:0, from /usr/include/g++/locale:43, from /usr/include/g++/iomanip:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/object.h:58, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psync.h:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/critsec.h:34, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/contain.h:42, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:56, from ptlib/common/pvidchan.cxx:38: /usr/include/g++/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:145:0, from ptlib/common/vconvert.cxx:33: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] In file included from /usr/include/g++/bits/locale_conv.h:41:0, from /usr/include/g++/locale:43, from /usr/include/g++/iomanip:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/object.h:58, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psync.h:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/critsec.h:34, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/contain.h:42, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:56, from ptlib/common/vconvert.cxx:33: /usr/include/g++/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:145:0, from ptlib/common/videoio.cxx:35: /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] In file included from /usr/include/g++/bits/locale_conv.h:41:0, from /usr/include/g++/locale:43, from /usr/include/g++/iomanip:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/object.h:58, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/psync.h:43, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/critsec.h:34, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib/contain.h:42, from /tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/include/ptlib.h:56, from ptlib/common/videoio.cxx:35: /usr/include/g++/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ gmake[2]: Leaving directory '/tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/src' gmake[1]: *** [../make/common.mak:292: optshared] Error 2 gmake[1]: Leaving directory '/tmp/pkgbuild/devel/ptlib/work.i386/ptlib-2.10.7/src' gmake: *** [Makefile:91: optshared] Error 2 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/devel/ptlib *** Error code 1 Stop. make: stopped in /usr/pkgsrc/devel/ptlib