Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Add common/PluginRegistry.cc to CMakeLists.txt #6805

Merged
merged 1 commit into from Dec 7, 2015

Conversation

zaitcev
Copy link
Contributor

@zaitcev zaitcev commented Dec 4, 2015

The issue is like this:

libcommon.a(ceph_context.cc.o): In function CephContext::CephContext(unsigned int, int)': ceph_context.cc:(.text+0x2620): undefined reference toceph::PluginRegistry::PluginRegistry(CephContext*)'

Else this happens:

  [ 15%] Linking CXX executable ceph-authtool
  libcommon.a(ceph_context.cc.o): In function `CephContext::CephContext(unsigned int, int)':
  ceph_context.cc:(.text+0x2620): undefined reference to `ceph::PluginRegistry::PluginRegistry(CephContext*)'
  libcommon.a(ceph_context.cc.o): In function `CephContext::~CephContext()':
  ceph_context.cc:(.text+0x3db0): undefined reference to `ceph::PluginRegistry::~PluginRegistry()'
  collect2: error: ld returned 1 exit status
  src/CMakeFiles/ceph-authtool.dir/build.make:120: recipe for target 'src/ceph-authtool' failed
  make[2]: *** [src/ceph-authtool] Error 1
  CMakeFiles/Makefile2:331: recipe for target 'src/CMakeFiles/ceph-authtool.dir/all' failed

The ceph_context.cc is the only user of PluginRegistry at
present, so adding it without conditionals should be correct.

Signed-Off-By: Pete Zaitcev <zaitcev@redhat.com>
@dang
Copy link
Contributor

dang commented Dec 7, 2015

lgtm

oritwas added a commit that referenced this pull request Dec 7, 2015
cmake: Add common/PluginRegistry.cc to CMakeLists.txt
@oritwas oritwas merged commit 12d5b65 into ceph:master Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants