* [Buildroot] [PATCH 1/1] package/cryptopp: needs wchar
@ 2022-01-10 17:35 Fabrice Fontaine
2022-01-11 21:00 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-01-10 17:35 UTC (permalink / raw)
To: buildroot; +Cc: Julian Scheel, Fabrice Fontaine
Fix the following build failure raised since commit
bf4cf9de833e2d571d98d1ca935ea08a3468e463:
In file included from seckey.h:11,
from 3way.h:10,
from 3way.cpp:5:
misc.h:1528:6: error: 'wstring' in namespace 'std' does not name a type
1528 | std::wstring StringWiden(const char *str, bool throwOnError = true);
| ^~~~~~~
In file included from seckey.h:11,
from 3way.h:10,
from 3way.cpp:5:
misc.h:14:1: note: 'std::wstring' is defined in header '<string>'; did you forget to '#include <string>'?
13 | #include "smartptr.h"
+++ |+#include <string>
14 | #include "stdcpp.h"
Fixes:
- http://autobuild.buildroot.org/results/174fe03da7a40dd152703de93af6a213d9cac698
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/cryptopp/Config.in | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/cryptopp/Config.in b/package/cryptopp/Config.in
index 4ead5339ab..feb945db2f 100644
--- a/package/cryptopp/Config.in
+++ b/package/cryptopp/Config.in
@@ -1,8 +1,9 @@
config BR2_PACKAGE_CRYPTOPP
bool "cryptopp"
depends on !BR2_STATIC_LIBS
+ depends on BR2_USE_WCHAR
help
A free C++ class library of cryptographic schemes
-comment "cryptopp needs a toolchain w/ dynamic library"
- depends on BR2_STATIC_LIBS
+comment "cryptopp needs a toolchain w/ dynamic library, wchar"
+ depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/cryptopp: needs wchar
2022-01-10 17:35 [Buildroot] [PATCH 1/1] package/cryptopp: needs wchar Fabrice Fontaine
@ 2022-01-11 21:00 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2022-01-11 21:00 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Julian Scheel, buildroot
On Mon, 10 Jan 2022 18:35:42 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following build failure raised since commit
> bf4cf9de833e2d571d98d1ca935ea08a3468e463:
>
> In file included from seckey.h:11,
> from 3way.h:10,
> from 3way.cpp:5:
> misc.h:1528:6: error: 'wstring' in namespace 'std' does not name a type
> 1528 | std::wstring StringWiden(const char *str, bool throwOnError = true);
> | ^~~~~~~
> In file included from seckey.h:11,
> from 3way.h:10,
> from 3way.cpp:5:
> misc.h:14:1: note: 'std::wstring' is defined in header '<string>'; did you forget to '#include <string>'?
> 13 | #include "smartptr.h"
> +++ |+#include <string>
> 14 | #include "stdcpp.h"
>
> Fixes:
> - http://autobuild.buildroot.org/results/174fe03da7a40dd152703de93af6a213d9cac698
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/cryptopp/Config.in | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-11 21:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-10 17:35 [Buildroot] [PATCH 1/1] package/cryptopp: needs wchar Fabrice Fontaine
2022-01-11 21:00 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox