Uploaded image for project: 'XMLTooling - C++'
  1. XMLTooling - C++
  2. CPPXT-141

Fails to build with g++ 8.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.0.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • C/C++ Compiler:
      Other

      Description

      G++ 8.2 does not receive well the reuse of OpenSSL 1.1 function names:

      libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I.. -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -pthread -pthread -Wall -g -O2 -fdebug-prefix-map=/build/xmltooling-n1tZ2S/xmltooling-3.0.2=. -fstack-protector-strong -Wformat -Werror=format-security -O2 -DNDEBUG -c security/impl/OpenSSLSecurityHelper.cpp  -fPIC -DPIC -o security/impl/.libs/libxmltooling_la-OpenSSLSecurityHelper.o
      security/impl/OpenSSLSecurityHelper.cpp: In static member function 'static bool xmltooling::OpenSSLSecurityHelper::matchesPublic(const RSA*, const XSECCryptoKey&)':
      security/impl/OpenSSLSecurityHelper.cpp:53:50: error: call of overloaded 'RSA_get0_n(const RSA*&)' is ambiguous
           return (rsa1 && rsa && BN_cmp(RSA_get0_n(rsa1), RSA_get0_n(rsa)) == 0 && BN_cmp(RSA_get0_e(rsa1), RSA_get0_e(rsa)) == 0);
                                                        ^
      In file included from security/impl/OpenSSLSecurityHelper.cpp:28:
      ./security/impl/OpenSSLSupport.h:78:19: note: candidate: 'const BIGNUM* xmltooling::RSA_get0_n(const RSA*)'
           const BIGNUM *RSA_get0_n(const RSA *rsa);
                         ^~~~~~~~~~
      In file included from /usr/include/openssl/x509.h:25,
                       from /usr/include/openssl/x509_vfy.h:17,
                       from ./security/impl/OpenSSLSupport.h:27,
                       from security/impl/OpenSSLSecurityHelper.cpp:28:
      /usr/include/openssl/rsa.h:219:15: note: candidate: 'const BIGNUM* RSA_get0_n(const RSA*)'
       const BIGNUM *RSA_get0_n(const RSA *d);
      [...]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cantor.2@osu.edu Scott Cantor
              Reporter:
              wferi@niif.hu Wágner Ferenc
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: