Re: [Ekiga-list] PTLib compile failure on Raspberry Pi 4 and Banana Pi M64



Hi Robert,

I'm maintaining a fork of PTLib for GnuGk and H323Plus at
https://github.com/willamowius/ptlib

That version was forked off PTLib 2.10.9 and probably doesn't match
exactly what Ekiga needs, but you might be able to use some of the
fixes I made for current compiler and OS versions from the revision
history.

Regards,
Jan

-- 
Jan Willamowius, Founder of the GNU Gatekeeper Project
EMail  : jan willamowius de
Website: https://www.gnugk.org
Support: https://www.willamowius.com/gnugk-support.html

Relaxed Communications GmbH
Frahmredder 91, 22393 Hamburg, Germany
Geschäftsführer: Jan Willamowius
HRB 125261 (Amtsgericht Hamburg)
USt-IdNr: DE286003584

Robert Heller via ekiga-list wrote:
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
                    


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]