[Tizen 6.0] Support build with GCC 9.2 sandbox/mkashkarov/tizen_6.0_build
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Thu, 12 Dec 2019 05:03:29 +0000 (08:03 +0300)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Thu, 12 Dec 2019 05:49:07 +0000 (08:49 +0300)
1. mgr is dependent type, not expected to be a template - so it parses as a non
template and T<..> () is invalid for anything except a template: [temp.dep.type]

  message-service.h:101:18: error: expected primary-expression before '>' token
    101 |  mgr.Register<Msg>([this](const Msg & msg) {
        |

2. Add missing include:

  obj.h:33:44: error: 'function' is not a member of 'std'
     33 | typedef std::unique_ptr<EVP_PKEY_CTX, std::function<void(EVP_PKEY_CTX *)>>
        |                                            ^~~~~~~~
  obj.h:28:1: note: 'std::function' is defined in header '<functional>';
  did you forget to '#include <functional>'?
     27 | #include <data-type.h>
    +++ |+#include <functional>

Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
src/manager/common/pkcs12-impl.cpp
src/manager/crypto/sw-backend/obj.h
src/manager/dpl/core/src/binary_queue.cpp
src/manager/main/message-service.h
src/manager/service/ocsp.cpp

index 100e9b5..1d0f827 100644 (file)
@@ -18,6 +18,8 @@
  * @version     1.0
  * @brief       Certificate Implmentation.
  */
+#include <functional>
+
 #include <openssl/bio.h>
 #include <openssl/evp.h>
 #include <openssl/pkcs12.h>
index 0a00734..284ce2c 100644 (file)
@@ -19,6 +19,7 @@
  * @version    1.0
  */
 #pragma once
+#include <functional>
 #include <memory>
 
 #include <openssl/evp.h>
index 36b174e..c1a44c9 100644 (file)
@@ -26,6 +26,7 @@
 #include <malloc.h>
 #include <cstring>
 #include <new>
+#include <functional>
 
 namespace CKM {
 BinaryQueue::BinaryQueue() :
index fc36cc6..7506582 100644 (file)
@@ -98,7 +98,7 @@ template <typename Msg>
 template <typename Mgr>
 void MessageService<Msg>::Register(Mgr &mgr)
 {
-       mgr.Register<Msg>([this](const Msg & msg) {
+       mgr.template Register<Msg>([this](const Msg & msg) {
                this->AddMessage(msg);
        });
 }
index 60cdb5b..24176ec 100644 (file)
@@ -20,6 +20,7 @@
  * @brief       OCSP implementation.
  */
 
+#include <functional>
 #include <string>
 #include <ocsp.h>
 #include <openssl/pem.h>