From e120439a83bbea679ba523f2e832a8101f4f0d60 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 15 Jan 2026 11:23:35 +0000 Subject: [PATCH 1/3] qgs: add compat for boost 1.87 which drops asio::io_service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The asio::io_service type was deprecated since 1.66 in 2017, with asio::io_context being its drop-in replacement. Release 1.87 finally dropped the back-compat support for asio::io_service entirely. To retain compat with old boost this change conditionally re-adds the compat definition for asio::io_service. Signed-off-by: Daniel P. Berrangé --- QuoteGeneration/quote_wrapper/qgs/qgs_server.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/QuoteGeneration/quote_wrapper/qgs/qgs_server.h b/QuoteGeneration/quote_wrapper/qgs/qgs_server.h index f3f5b9f9..91eb41a4 100644 --- a/QuoteGeneration/quote_wrapper/qgs/qgs_server.h +++ b/QuoteGeneration/quote_wrapper/qgs/qgs_server.h @@ -36,6 +36,11 @@ #include #include +#if BOOST_VERSION >= 108700 +// Asio no longer defines the deprecated io_service alias. +namespace boost { namespace asio { using io_service = io_context; } } +#endif + namespace intel { namespace sgx { namespace dcap { namespace qgs { namespace asio = boost::asio; From 149e5dfa42b8e3bdf5f669a16047da69f564d661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Thu, 15 Jan 2026 12:48:19 +0000 Subject: [PATCH 2/3] qgs: add compat for boost 1.89 which deprecated deadline_timer.hpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The asio::deadline_timer was deprecated in 1.89 and as a result the deadline_timer.hpp file is no longer implicitly included by asio.hpp. To retain compat with old and new boost the code must explicitly include the deadline_timer.hpp Signed-off-by: Daniel P. Berrangé --- QuoteGeneration/quote_wrapper/qgs/Makefile | 4 ++-- QuoteGeneration/quote_wrapper/qgs/qgs_server.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/QuoteGeneration/quote_wrapper/qgs/Makefile b/QuoteGeneration/quote_wrapper/qgs/Makefile index 16dfeacc..a6581da0 100644 --- a/QuoteGeneration/quote_wrapper/qgs/Makefile +++ b/QuoteGeneration/quote_wrapper/qgs/Makefile @@ -16,8 +16,8 @@ QGS_INC = -I$(SGX_SDK)/include \ -I$(TOP_DIR)/qpl/inc \ -I$(TOP_DIR)/quote_wrapper/tdx_quote/inc \ -I$(TOP_DIR)/quote_wrapper/qgs_msg_lib/inc -QGS_CFLAGS = -g -MMD -Werror $(CFLAGS) $(QGS_INC) -QGS_CXXFLAGS = -g -MMD -Werror $(CXXFLAGS) $(QGS_INC) +QGS_CFLAGS = -g -MMD -Werror -Wno-deprecated-declarations $(CFLAGS) $(QGS_INC) +QGS_CXXFLAGS = -g -MMD -Werror -Wno-deprecated-declarations $(CXXFLAGS) $(QGS_INC) ifeq ($(CC_NO_LESS_THAN_8), 1) QGS_CFLAGS += -fcf-protection=none QGS_CXXFLAGS += -fcf-protection=none diff --git a/QuoteGeneration/quote_wrapper/qgs/qgs_server.h b/QuoteGeneration/quote_wrapper/qgs/qgs_server.h index 91eb41a4..b56b2633 100644 --- a/QuoteGeneration/quote_wrapper/qgs/qgs_server.h +++ b/QuoteGeneration/quote_wrapper/qgs/qgs_server.h @@ -34,6 +34,7 @@ #include #include +#include #include #if BOOST_VERSION >= 108700 From 30bc7855afd6956d3587573c3247280cef891ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 25 Mar 2026 16:46:52 +0000 Subject: [PATCH 3/3] qgs: squash global placeholders warning from boost 1.90 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Latest boost 1.90 warns: /usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’ 36 | BOOST_PRAGMA_MESSAGE( | ^~~~~~~~~~~~~~~~~~~~ Squash this warning using the suggested define so the build does not break under -Werror. Signed-off-by: Daniel P. Berrangé --- QuoteGeneration/quote_wrapper/qgs/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QuoteGeneration/quote_wrapper/qgs/Makefile b/QuoteGeneration/quote_wrapper/qgs/Makefile index a6581da0..00fbf996 100644 --- a/QuoteGeneration/quote_wrapper/qgs/Makefile +++ b/QuoteGeneration/quote_wrapper/qgs/Makefile @@ -16,8 +16,8 @@ QGS_INC = -I$(SGX_SDK)/include \ -I$(TOP_DIR)/qpl/inc \ -I$(TOP_DIR)/quote_wrapper/tdx_quote/inc \ -I$(TOP_DIR)/quote_wrapper/qgs_msg_lib/inc -QGS_CFLAGS = -g -MMD -Werror -Wno-deprecated-declarations $(CFLAGS) $(QGS_INC) -QGS_CXXFLAGS = -g -MMD -Werror -Wno-deprecated-declarations $(CXXFLAGS) $(QGS_INC) +QGS_CFLAGS = -g -MMD -Werror -Wno-deprecated-declarations -DBOOST_BIND_GLOBAL_PLACEHOLDERS $(CFLAGS) $(QGS_INC) +QGS_CXXFLAGS = -g -MMD -Werror -Wno-deprecated-declarations -DBOOST_BIND_GLOBAL_PLACEHOLDERS $(CXXFLAGS) $(QGS_INC) ifeq ($(CC_NO_LESS_THAN_8), 1) QGS_CFLAGS += -fcf-protection=none QGS_CXXFLAGS += -fcf-protection=none