]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
auth/CMakeLists.txt: add cephx/CephxKeyServer.cc to auth_srcs
authorMax Kellermann <max.kellermann@ionos.com>
Thu, 5 Mar 2026 12:22:01 +0000 (13:22 +0100)
committerMax Kellermann <max.kellermann@ionos.com>
Mon, 9 Mar 2026 20:29:41 +0000 (21:29 +0100)
Everybody who includes CephxKeyServer.h must link with
CephxKeyServer.cc.

Currently, only ceph-mon and ceph-monstore-tool do that.  All the
others (e.g. ceph_dencoder.cc) get away with that mistake because many
of the KeyServer methods are inline, and if they just happen to use
only the inline symbols, there is no (visible) problem.

However, during my attempts to un-inline some of these methods (to
reduce header dependencies and reduce binary bloat due to having many
copies of the same code), there were runtime linker failures in
"ceph-dencoder".

The simplest solution is to just add cephx/CephxKeyServer.cc to
auth_srcs.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/auth/CMakeLists.txt
src/mon/CMakeLists.txt
src/tools/CMakeLists.txt

index 014057f49beae16b7fae326d6f0a14333587bdde..57c0d65a02aadd429d15de3ba141f15000c530a3 100644 (file)
@@ -8,6 +8,7 @@ set(auth_srcs
   RotatingKeyRing.cc
   cephx/CephxAuthorizeHandler.cc
   cephx/CephxClientHandler.cc
+  cephx/CephxKeyServer.cc
   cephx/CephxProtocol.cc
   cephx/CephxSessionHandler.cc
   none/AuthNoneAuthorizeHandler.cc)
index c5bf64f8c153a221b154e1b1e1d00c6c55e2ee23..34f48e55424fd2e9b488f5f98ab01a48e1e506cf 100644 (file)
@@ -1,5 +1,4 @@
 set(lib_mon_srcs
-  ${CMAKE_SOURCE_DIR}/src/auth/cephx/CephxKeyServer.cc
   ${CMAKE_SOURCE_DIR}/src/auth/cephx/CephxServiceHandler.cc
   ${CMAKE_SOURCE_DIR}/src/auth/AuthServiceHandler.cc
   Paxos.cc
index ee8ff3f24bc880cd867d28ac5c09cf9cad56e82c..6700fc244b027176ecbdb0dc59bf8f5489e01f40 100644 (file)
@@ -48,7 +48,6 @@ endif(WITH_TESTS)
 
 add_executable(ceph-monstore-tool
   ceph_monstore_tool.cc
-  ../auth/cephx/CephxKeyServer.cc
   ../mgr/mgr_commands.cc)
 target_link_libraries(ceph-monstore-tool os global Boost::program_options)
 install(TARGETS ceph-monstore-tool DESTINATION bin)