For both of my ARM build machines, PTLib fails to build with C++ errors. Both
machines are up-to-date.
The Raspberry Pi 4 is running Raspberry Pi OS (based on Debian 10), with this
G++:
fruitloops% g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 8.3.0-6+rpi1'
--with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only
--program-suffix=-8 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls
--enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath
--disable-libquadmath-support --enable-plugin --with-system-zlib --with-target-system-zlib
--enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp
--with-float=hard --disable-werror --enable-checking=release --build=arm-linux-gnueabihf
--host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)
here is the make log:
make DEBUG= P_SHAREDLIB=1 default_target
make[1]: Entering directory '/home/heller/ptlib-2.10.11'
make[1]: Leaving directory '/home/heller/ptlib-2.10.11'
make[1]: Entering directory '/home/heller/ptlib-2.10.11/src'
make DEBUG= P_SHAREDLIB=1 default_target
make[2]: Entering directory '/home/heller/ptlib-2.10.11/src'
[CC] ptclib/pssl.cxx
In file included from /home/heller/ptlib-2.10.11/include/ptlib.h:145,
from ptclib/pssl.cxx:86:
/home/heller/ptlib-2.10.11/include/ptlib/psharedptr.h:63:21: warning: âtemplate<class> class
std::auto_ptrâ is deprecated [-Wdeprecated-declarations]
PSharedPtr(std::auto_ptr<element_type> & v)
^~~~~~~~
In file included from /usr/include/c++/8/bits/locale_conv.h:41,
from /usr/include/c++/8/locale:43,
from /usr/include/c++/8/iomanip:43,
from /home/heller/ptlib-2.10.11/include/ptlib/object.h:58,
from /home/heller/ptlib-2.10.11/include/ptlib/psync.h:43,
from /home/heller/ptlib-2.10.11/include/ptlib/critsec.h:34,
from /home/heller/ptlib-2.10.11/include/ptlib/contain.h:42,
from /home/heller/ptlib-2.10.11/include/ptlib.h:56,
from ptclib/pssl.cxx:86:
/usr/include/c++/8/bits/unique_ptr.h:53:28: note: declared here
template<typename> 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,
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,
from /usr/include/openssl/ssl.h:15,
from ptclib/pssl.cxx:99:
/usr/include/openssl/rsa.h:235:1: note: declared here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/x509.h:18,
from /usr/include/openssl/ssl.h:20,
from ptclib/pssl.cxx:99:
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,
from /usr/include/openssl/ssl.h:15,
from ptclib/pssl.cxx:99:
/usr/include/openssl/rsa.h:235:1: note: declared here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^~~~~~~~~~~~~~~~~~
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:
/home/heller/ptlib-2.10.11/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:
/home/heller/ptlib-2.10.11/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:
/home/heller/ptlib-2.10.11/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:
/home/heller/ptlib-2.10.11/include/ptclib/pssl.h:45:8: note: forward declaration of âstruct dh_stâ
struct dh_st;
^~~~~
ptclib/pssl.cxx: In member function âvoid PSSLContext::Construct(PSSLContext::Method, const void*,
PINDEX)â:
ptclib/pssl.cxx:809:14: error: âSSLv3_methodâ was not declared in this scope
meth = SSLv3_method();
^~~~~~~~~~~~
ptclib/pssl.cxx:809:14: note: suggested alternative: âSSLv23_methodâ
meth = SSLv3_method();
^~~~~~~~~~~~
SSLv23_method
ptclib/pssl.cxx:812: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,
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:812: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,
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:1133: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,
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:1134: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,
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:1135: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,
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:1136: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,
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:1147: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,
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:1148: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,
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:1120:51: error: invalid use of incomplete type âBIOâ {aka âstruct bio_stâ}
#define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr))
^~
ptclib/pssl.cxx:1149:7: note: in expansion of macro âPSSLCHANNELâ
PSSLCHANNEL(bio)->Shutdown(PSocket::ShutdownReadAndWrite);
^~~~~~~~~~~
In file included from /usr/include/openssl/crypto.h:25,
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:1120:51: error: invalid use of incomplete type âBIOâ {aka âstruct bio_stâ}
#define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr))
^~
ptclib/pssl.cxx:1150:7: note: in expansion of macro âPSSLCHANNELâ
PSSLCHANNEL(bio)->Close();
^~~~~~~~~~~
In file included from /usr/include/openssl/crypto.h:25,
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:1152: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,
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: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,
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:1163: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,
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:1167: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,
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:1120:51: error: invalid use of incomplete type âBIOâ {aka âstruct bio_stâ}
#define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr))
^~
ptclib/pssl.cxx:1187:7: note: in expansion of macro âPSSLCHANNELâ
if (PSSLCHANNEL(bio)->RawSSLRead(out, len))
^~~~~~~~~~~
In file included from /usr/include/openssl/crypto.h:25,
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:1120:51: error: invalid use of incomplete type âBIOâ {aka âstruct bio_stâ}
#define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr))
^~
ptclib/pssl.cxx:1190:11: note: in expansion of macro âPSSLCHANNELâ
switch (PSSLCHANNEL(bio)->GetErrorCode(PChannel::LastReadError)) {
^~~~~~~~~~~
In file included from /usr/include/openssl/crypto.h:25,
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:1120:51: error: invalid use of incomplete type âBIOâ {aka âstruct bio_stâ}
#define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr))
^~
ptclib/pssl.cxx:1212:7: note: in expansion of macro âPSSLCHANNELâ
if (PSSLCHANNEL(bio)->PIndirectChannel::Write(in, inl))
^~~~~~~~~~~
In file included from /usr/include/openssl/crypto.h:25,
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:1120:51: error: invalid use of incomplete type âBIOâ {aka âstruct bio_stâ}
#define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr))
^~
ptclib/pssl.cxx:1213:12: note: in expansion of macro âPSSLCHANNELâ
return PSSLCHANNEL(bio)->GetLastWriteCount();
^~~~~~~~~~~
In file included from /usr/include/openssl/crypto.h:25,
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:1120:51: error: invalid use of incomplete type âBIOâ {aka âstruct bio_stâ}
#define PSSLCHANNEL(bio) ((PSSLChannel *)(bio->ptr))
^~
ptclib/pssl.cxx:1215:11: note: in expansion of macro âPSSLCHANNELâ
switch (PSSLCHANNEL(bio)->GetErrorCode(PChannel::LastWriteError)) {
^~~~~~~~~~~
In file included from /usr/include/openssl/crypto.h:25,
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:1242: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:1275: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,
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:1276: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,
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*/)
^~~~~~~~~~~~~~~
make[2]: *** [../make/common.mak:97: /home/heller/ptlib-2.10.11/lib_linux_armv7l/obj/pssl.o] Error 1
make[2]: Leaving directory '/home/heller/ptlib-2.10.11/src'
make[1]: *** [../make/common.mak:292: optshared] Error 2
make[1]: Leaving directory '/home/heller/ptlib-2.10.11/src'
make: *** [Makefile:91: optshared] Error 2
and the Banana Pi M64 is running Focal 22.02.01, with this G++:
missinglink% g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.1'
--with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only
--program-suffix=-9 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
--enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin
--enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto
--enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release
--build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
here is the make log:
make DEBUG= P_SHAREDLIB=1 default_target
make[1]: Entering directory '/home/heller/ptlib'
make[1]: Leaving directory '/home/heller/ptlib'
make[1]: Entering directory '/home/heller/ptlib/src'
make DEBUG= P_SHAREDLIB=1 default_target
make[2]: Entering directory '/home/heller/ptlib/src'
[CC] ptclib/psasl.cxx
In file included from /home/heller/ptlib/include/ptlib/mutex.h:115,
from /home/heller/ptlib/include/ptlib/thread.h:45,
from /home/heller/ptlib/include/ptlib.h:103,
from ptclib/psasl.cxx:35:
/home/heller/ptlib/include/ptlib/unix/ptlib/mutex.h:47:18: error: âvirtual void PTimedMutex::Wait()â
cannot be overloaded with âvirtual void PTimedMutex::Wait()â
47 | virtual void Wait();
| ^~~~
In file included from /home/heller/ptlib/include/ptlib/thread.h:45,
from /home/heller/ptlib/include/ptlib.h:103,
from ptclib/psasl.cxx:35:
/home/heller/ptlib/include/ptlib/mutex.h:86:18: note: previous declaration âvirtual void
PTimedMutex::Wait()â
86 | virtual void Wait();
| ^~~~
In file included from /home/heller/ptlib/include/ptlib/mutex.h:115,
from /home/heller/ptlib/include/ptlib/thread.h:45,
from /home/heller/ptlib/include/ptlib.h:103,
from ptclib/psasl.cxx:35:
/home/heller/ptlib/include/ptlib/unix/ptlib/mutex.h:48:22: error: âvirtual PBoolean
PTimedMutex::Wait(const PTimeInterval&)â cannot be overloaded with âvirtual PBoolean
PTimedMutex::Wait(const PTimeInterval&)â
48 | virtual PBoolean Wait(const PTimeInterval & timeout);
| ^~~~
In file included from /home/heller/ptlib/include/ptlib/thread.h:45,
from /home/heller/ptlib/include/ptlib.h:103,
from ptclib/psasl.cxx:35:
/home/heller/ptlib/include/ptlib/mutex.h:93:22: note: previous declaration âvirtual PBoolean
PTimedMutex::Wait(const PTimeInterval&)â
93 | virtual PBoolean Wait(
| ^~~~
In file included from /home/heller/ptlib/include/ptlib/mutex.h:115,
from /home/heller/ptlib/include/ptlib/thread.h:45,
from /home/heller/ptlib/include/ptlib.h:103,
from ptclib/psasl.cxx:35:
/home/heller/ptlib/include/ptlib/unix/ptlib/mutex.h:49:18: error: âvirtual void PTimedMutex::Signal()â
cannot be overloaded with âvirtual void PTimedMutex::Signal()â
49 | virtual void Signal();
| ^~~~~~
In file included from /home/heller/ptlib/include/ptlib/thread.h:45,
from /home/heller/ptlib/include/ptlib.h:103,
from ptclib/psasl.cxx:35:
/home/heller/ptlib/include/ptlib/mutex.h:99:18: note: previous declaration âvirtual void
PTimedMutex::Signal()â
99 | virtual void Signal();
| ^~~~~~
In file included from /home/heller/ptlib/include/ptlib.h:145,
from ptclib/psasl.cxx:35:
/home/heller/ptlib/include/ptlib/psharedptr.h:63:21: warning: âtemplate<class> class std::auto_ptrâ is
deprecated [-Wdeprecated-declarations]
63 | PSharedPtr(std::auto_ptr<element_type> & v)
| ^~~~~~~~
In file included from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from /home/heller/ptlib/include/ptlib/object.h:58,
from /home/heller/ptlib/include/ptlib/psync.h:43,
from /home/heller/ptlib/include/ptlib/critsec.h:34,
from /home/heller/ptlib/include/ptlib/contain.h:42,
from /home/heller/ptlib/include/ptlib.h:56,
from ptclib/psasl.cxx:35:
/usr/include/c++/9/bits/unique_ptr.h:53:28: note: declared here
53 | template<typename> class auto_ptr;
| ^~~~~~~~
make[2]: *** [../make/common.mak:97: /home/heller/ptlib/lib_linux_aarch64/obj/psasl.o] Error 1
make[2]: Leaving directory '/home/heller/ptlib/src'
make[1]: *** [../make/common.mak:292: optshared] Error 2
make[1]: Leaving directory '/home/heller/ptlib/src'
make: *** [Makefile:91: optshared] Error 2
--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller deepsoft com -- Webhosting Services