Skip to contentSkip to conversation

FreeBSD/Clang reports a missing function during linking

DISCUSSION Willem Jan Withagen 1 participant 2 messages Mar 9, 2017

lore
Share & tools
lore
#0 lore raw

Hi,

FreBSD Jenkins complains:

../../../lib/librbd_internal.a(GetStatusRequest.cc.o): In function
`librbd::mirror::GetStatusRequest<librbd::ImageCtx>::send()':
/home/jenkins/workspace/ceph-master/src/librbd/mirror/GetStatusRequest.cc:(.text._ZN6librbd6mirror16GetStatusRequestINS_8ImageCtxEE4sendEv[_ZN6librbd6mirror16GetStatusRequestINS_8ImageCtxEE4sendEv]+0xcc):
undefined reference to `cls::rbd::MirrorImageStatus::~MirrorImageStatus()'

c++: error: linker command failed with exit code 1 (use -v to see invocation)

Not sure why Clang creates this reference and then on how to fix this.

--WjW

#1 lore raw
Quoted 9 lines · Willem Jan Withagen

Hi,

FreBSD Jenkins complains:

../../../lib/librbd_internal.a(GetStatusRequest.cc.o): In function
`librbd::mirror::GetStatusRequest<librbd::ImageCtx>::send()':
/home/jenkins/workspace/ceph-master/src/librbd/mirror/GetStatusRequest.cc:(.text._ZN6librbd6mirror16GetStatusRequestINS_8ImageCtxEE4sendEv[_ZN6librbd6mirror16GetStatusRequestINS_8ImageCtxEE4sendEv]+0xcc):
undefined reference to `cls::rbd::MirrorImageStatus::~MirrorImageStatus()'

Quoted 4 lines

c++: error: linker command failed with exit code 1 (use -v to see invocation)

Not sure why Clang creates this reference and then on how to fix this.

Attempt to fix:
cls/rbd/cls_rbd_types.h: add missing destructor #13910

--WjW