From 0d40d5b55257dc7bfc63eb43db20ccbdaa6e7bbf Mon Sep 17 00:00:00 2001 From: Timur Aitov Date: Mon, 18 Sep 2023 22:03:32 +0300 Subject: [PATCH] add pthread dependency for resolve `std::system_error` error in protobuf. $ yanet-cli balancer real any terminate called after throwing an instance of 'std::system_error' what(): Unknown error -1 Aborted --- cli/meson.build | 1 + common/proto/meson.build | 1 + 2 files changed, 2 insertions(+) diff --git a/cli/meson.build b/cli/meson.build index 2f82ecfb..f0e3f2a6 100644 --- a/cli/meson.build +++ b/cli/meson.build @@ -1,5 +1,6 @@ dependencies = [] dependencies += libyanet_protobuf_dep +dependencies += dependency('threads') sources = files('src/config.cpp', 'src/main.cpp') diff --git a/common/proto/meson.build b/common/proto/meson.build index 03861a1a..c329c65f 100644 --- a/common/proto/meson.build +++ b/common/proto/meson.build @@ -1,5 +1,6 @@ dependencies = [] dependencies += dependency('protobuf', static: true) +dependencies += dependency('threads') proto_sources = ['meta.proto', 'controlplane.proto']