From 8372e80d5273e81913131ae9ef809d2457fc7998 Mon Sep 17 00:00:00 2001 From: Daniel Gryniewicz Date: Mon, 18 Sep 2023 08:50:53 -0400 Subject: [PATCH] RGW - Fix cls test build on new gcc The new encoder types broke building the cls test on newer gcc (13+) due to undefined encoder/decoder. Add the file that defines those to the test. Signed-off-by: Daniel Gryniewicz --- src/cls/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cls/CMakeLists.txt b/src/cls/CMakeLists.txt index 7981fd34748..57d0dace67c 100644 --- a/src/cls/CMakeLists.txt +++ b/src/cls/CMakeLists.txt @@ -323,7 +323,8 @@ if (WITH_RADOSGW) install(TARGETS cls_rgw_gc DESTINATION ${cls_dir}) set(cls_rgw_gc_client_srcs - rgw_gc/cls_rgw_gc_client.cc) + rgw_gc/cls_rgw_gc_client.cc + rgw/cls_rgw_types.cc) add_library(cls_rgw_gc_client STATIC ${cls_rgw_gc_client_srcs}) target_include_directories(cls_rgw_gc_client PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw/driver/rados" -- 2.39.5