librcf: fix a clang compiling issue
PATCH 1/1 librcf: fix a clang compiling issue
From: Ming Liu <[email protected]>
A error was observed with clang compiler, as follows:
| src/RCF/RCF.cpp:49: | src/RCF/ClientStub.cpp:28: | include/RCF/Future.hpp:49:26: error: 'enrol' is a private member of 'RCF::ClientStub'
it can be fixed by declaring Future as a friend class of ClientStub.
--- ...lientStub.hpp-fix-a-clang-compiling-issue.patch | 35 ++++++++++++++++++++++ meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta-oe/recipes-devtools/librcf/librcf/0001-ClientStub.hpp-fix-a-clang-compiling-issue.patch
meta-oe/recipes-devtools/librcf/librcf/0001-ClientStub.hpp-fix-a-clang-compiling-issue.patch new file +35 -0
@@ -0,0 +1,35 @@ +From d78851b6f87f2472f041102d7b3726ffc009bfad Mon Sep 17 00:00:00 2001 +From: Ming Liu <[email protected]> +Date: Tue, 6 Jun 2017 05:54:20 +0200 +Subject: [PATCH] ClientStub.hpp: fix a clang compiling issue + +A error was observed with clang compiler, as follows: +| src/RCF/RCF.cpp:49: +| src/RCF/ClientStub.cpp:28: +| include/RCF/Future.hpp:49:26: error: 'enrol' is a private member of 'RCF::ClientStub' + +it can be fixed by declaring Future as a friend class of ClientStub. + +Upstream-Status: Pending + +Signed-off-by: Ming Liu <[email protected]> +--- + include/RCF/ClientStub.hpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/RCF/ClientStub.hpp b/include/RCF/ClientStub.hpp +index 9882cf4..8465625 100755 +--- a/include/RCF/ClientStub.hpp ++++ b/include/RCF/ClientStub.hpp +@@ -372,6 +372,8 @@ namespace RCF { + + private: + ++ template<typename U> ++ friend class Future; + friend class FutureImplBase; + + template< +-- +2.7.4 +
meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb +1 -0
@@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = "file://license.txt;md5=137c2935b51c95068a8b1bbd434ffe2d" SRC_URI = "http://www.deltavsoft.com/downloads/RCF-${PV}.tar.gz \ file://0001-Add-CMake-build-files.patch \ file://aarch64-support.patch \ + file://0001-ClientStub.hpp-fix-a-clang-compiling-issue.patch \ " SRC_URI[md5sum] = "7ecb3c73f7eb66dba8790b659374f690"
Signature · 1 line
2.7.4
http://errors.yoctoproject.org/Errors/Details/144182/
Quoted 87 lines · On Tue, Jun 6, 2017 at 6:07 AM, <[email protected]> wrote:
From: Ming Liu <[email protected]>
A error was observed with clang compiler, as follows:
| src/RCF/RCF.cpp:49: | src/RCF/ClientStub.cpp:28: | include/RCF/Future.hpp:49:26: error: 'enrol' is a private member of'
RCF::ClientStub'it can be fixed by declaring Future as a friend class of ClientStub.
Signed-off-by Ming Liu <[email protected]>--- ...lientStub.hpp-fix-a-clang-compiling-issue.patch | 35 ++++++++++++++++++++++ meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta-oe/recipes-devtools/
librcf/librcf/0001-ClientStub.hpp-fix-a-clang-compiling-issue.patch(quoted diff) +0
-0hpp-fix-a-clang-compiling-issue.patch b/meta-oe/recipes-devtools/
librcf/librcf/0001-ClientStub.hpp-fix-a-clang-compiling-issue.patchnew file mode 100644
index 0000000..3b39fa1meta-oe/recipes-devtools/librcf/librcf/0001-ClientStub. new file +0
-0hpp-fix-a-clang-compiling-issue.patch
meta-oe/recipes-devtools/librcf/librcf/0001-ClientStub. new file +9
-0@@ -0,0 +1,35 @@ +From d78851b6f87f2472f041102d7b3726ffc009bfad Mon Sep 17 00:00:00 2001 +From: Ming Liu <[email protected]> +Date: Tue, 6 Jun 2017 05:54:20 +0200 +Subject: [PATCH] ClientStub.hpp: fix a clang compiling issue + +A error was observed with clang compiler, as follows: +| src/RCF/RCF.cpp:49: +| src/RCF/ClientStub.cpp:28: +| include/RCF/Future.hpp:49:26: error: 'enrol' is a private member of'
RCF::ClientStub'meta-oe/recipes-devtools/librcf/librcf/0001-ClientStub. new file +26
-0+ +it can be fixed by declaring Future as a friend class of ClientStub. + +Upstream-Status: Pending + +Signed-off-by: Ming Liu <[email protected]> +--- + include/RCF/ClientStub.hpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/RCF/ClientStub.hpp b/include/RCF/ClientStub.hpp +index 9882cf4..8465625 100755 +--- a/include/RCF/ClientStub.hpp ++++ b/include/RCF/ClientStub.hpp +@@ -372,6 +372,8 @@ namespace RCF { + + private: + ++ template<typename U> ++ friend class Future; + friend class FutureImplBase; + + template< +-- +2.7.4 +meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb +0
-0@@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = "file://license.txt;md5=
137c2935b51c95068a8b1bbd434ffe2d"SRC_URI = "http://www.deltavsoft.com/downloads/RCF-${PV}.tar.gz \ file://0001-Add-CMake-build-files.patch \ file://aarch64-support.patch \ + file://0001-ClientStub.hpp-fix-a-clang-compiling-issue.patch \ "SRC_URI[md5sum] = "
7ecb3c73f7eb66dba8790b659374f690"
--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel