]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
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)
commit79908f45ede1fd25e99f33b41326686722a8a625
tree27516781f63791a2586bacaeb597969b6c5befaa
parent34cf65d12ef2b0e9206f63470a4e6b2899317dab
auth/CMakeLists.txt: add cephx/CephxKeyServer.cc to auth_srcs

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