Project

General

Profile

Bug #19260

FreesBSD/Clang generates a linking issue about a missing dtor cls::rbd::MirrorImageStatus::~MirrorImageStatus()

Added by Willem Jan Withagen 7 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
03/10/2017
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

Description

[/usr/srcs/Ceph/work/ceph/build] > ( cd /usr/srcs/Ceph/work/ceph/build/src/test/librbd && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/unittest_librbd.dir/link.txt --verbose=1 )
/usr/bin/CC -v -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -Wno-unused-function -Wno-unused-local-typedef -Wno-varargs -Wno-gnu-designator -Wno-missing-braces -Wno-parentheses -Wno-deprecated-register -ftemplate-depth-1024 -Wno-invalid-offsetof -Wnon-virtual-dtor -Wno-inconsistent-missing-override -Wno-mismatched-tags -Wno-unused-private-field -fdiagnostics-color=auto -I/usr/local/include/nss/nss -I/usr/local/include/nspr -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DCEPH_DEV -O0 -g -Wl,-export-dynamic CMakeFiles/unittest_librbd.dir/test_BlockGuard.cc.o CMakeFiles/unittest_librbd.dir/test_Groups.cc.o CMakeFiles/unittest_librbd.dir/test_main.cc.o CMakeFiles/unittest_librbd.dir/test_mock_fixture.cc.o CMakeFiles/unittest_librbd.dir/test_mock_ExclusiveLock.cc.o CMakeFiles/unittest_librbd.dir/test_mock_Journal.cc.o CMakeFiles/unittest_librbd.dir/test_mock_ManagedLock.cc.o CMakeFiles/unittest_librbd.dir/test_mock_ObjectMap.cc.o CMakeFiles/unittest_librbd.dir/exclusive_lock/test_mock_PreAcquireRequest.cc.o CMakeFiles/unittest_librbd.dir/exclusive_lock/test_mock_PostAcquireRequest.cc.o CMakeFiles/unittest_librbd.dir/exclusive_lock/test_mock_PreReleaseRequest.cc.o CMakeFiles/unittest_librbd.dir/image/test_mock_RefreshRequest.cc.o CMakeFiles/unittest_librbd.dir/image/test_mock_RemoveRequest.cc.o CMakeFiles/unittest_librbd.dir/io/test_mock_ImageRequest.cc.o CMakeFiles/unittest_librbd.dir/journal/test_mock_OpenRequest.cc.o CMakeFiles/unittest_librbd.dir/journal/test_mock_PromoteRequest.cc.o CMakeFiles/unittest_librbd.dir/journal/test_mock_Replay.cc.o CMakeFiles/unittest_librbd.dir/managed_lock/test_mock_AcquireRequest.cc.o CMakeFiles/unittest_librbd.dir/managed_lock/test_mock_BreakRequest.cc.o CMakeFiles/unittest_librbd.dir/managed_lock/test_mock_GetLockerRequest.cc.o CMakeFiles/unittest_librbd.dir/managed_lock/test_mock_ReacquireRequest.cc.o CMakeFiles/unittest_librbd.dir/managed_lock/test_mock_ReleaseRequest.cc.o CMakeFiles/unittest_librbd.dir/mirror/test_mock_DisableRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_InvalidateRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_LockRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_RefreshRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_ResizeRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_SnapshotCreateRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_SnapshotRemoveRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_SnapshotRollbackRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_UnlockRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_UpdateRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_DisableFeaturesRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_EnableFeaturesRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_Request.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_ResizeRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_SnapshotCreateRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_SnapshotProtectRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_SnapshotRemoveRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_SnapshotRollbackRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_SnapshotUnprotectRequest.cc.o CMakeFiles/unittest_librbd.dir/watcher/test_mock_RewatchRequest.cc.o ../../CMakeFiles/common_texttable_obj.dir/common/TextTable.cc.o -o ../../../bin/unittest_librbd -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/usr/srcs/Ceph/work/ceph/build/lib:/usr/local/lib/nss ../../../lib/libcls_rbd.so.1.0.0 ../../../lib/libcls_rbd_client.a ../../../lib/libcls_lock.so.1.0.0 ../../../lib/libcls_lock_client.a ../../../lib/libjournal.a ../../../lib/libjournal_test_mock.a ../../../lib/libcls_journal.so.1.0.0 ../../../lib/libcls_journal_client.a ../../../lib/librados_test_stub.a ../../../lib/librados.so.2.0.0 ../../../lib/librbd_test.a ../../../lib/librbd_test_mock.a ../../../lib/librbd_api.a ../../../lib/librbd_internal.a ../../../lib/librbd_types.a ../../../lib/libosdc.a ../../../lib/libglobal.a ../../../lib/libgmock_main.a ../../../lib/libgmock.a ../../../lib/libgtest.a -lpthread ../../../lib/libradostest.a ../../../lib/libceph-common.so.0 ../../../lib/liberasure_code.a /usr/local/lib/libboost_thread.so /usr/local/lib/libboost_system.so /usr/local/lib/libboost_regex.so /usr/local/lib/libboost_random.so /usr/local/lib/libboost_program_options.so /usr/local/lib/libboost_date_time.so /usr/local/lib/libboost_iostreams.so -lexecinfo /usr/local/lib/nss/libssl3.so /usr/local/lib/nss/libsmime3.so /usr/local/lib/nss/libnss3.so /usr/local/lib/nss/libnssutil3.so /usr/local/lib/libplds4.so /usr/local/lib/libplc4.so /usr/local/lib/libnspr4.so -lpthread -lrt /usr/local/lib/libatomic_ops.a ../../../lib/libjson_spirit.a ../../../lib/libcommon_utf8.a
FreeBSD clang version 3.9.1 (tags/RELEASE_391/final 289601) (based on LLVM 3.9.1)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin
"/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o ../../../bin/unittest_librbd /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/local/lib -L/usr/lib -export-dynamic CMakeFiles/unittest_librbd.dir/test_BlockGuard.cc.o CMakeFiles/unittest_librbd.dir/test_Groups.cc.o CMakeFiles/unittest_librbd.dir/test_main.cc.o CMakeFiles/unittest_librbd.dir/test_mock_fixture.cc.o CMakeFiles/unittest_librbd.dir/test_mock_ExclusiveLock.cc.o CMakeFiles/unittest_librbd.dir/test_mock_Journal.cc.o CMakeFiles/unittest_librbd.dir/test_mock_ManagedLock.cc.o CMakeFiles/unittest_librbd.dir/test_mock_ObjectMap.cc.o CMakeFiles/unittest_librbd.dir/exclusive_lock/test_mock_PreAcquireRequest.cc.o CMakeFiles/unittest_librbd.dir/exclusive_lock/test_mock_PostAcquireRequest.cc.o CMakeFiles/unittest_librbd.dir/exclusive_lock/test_mock_PreReleaseRequest.cc.o CMakeFiles/unittest_librbd.dir/image/test_mock_RefreshRequest.cc.o CMakeFiles/unittest_librbd.dir/image/test_mock_RemoveRequest.cc.o CMakeFiles/unittest_librbd.dir/io/test_mock_ImageRequest.cc.o CMakeFiles/unittest_librbd.dir/journal/test_mock_OpenRequest.cc.o CMakeFiles/unittest_librbd.dir/journal/test_mock_PromoteRequest.cc.o CMakeFiles/unittest_librbd.dir/journal/test_mock_Replay.cc.o CMakeFiles/unittest_librbd.dir/managed_lock/test_mock_AcquireRequest.cc.o CMakeFiles/unittest_librbd.dir/managed_lock/test_mock_BreakRequest.cc.o CMakeFiles/unittest_librbd.dir/managed_lock/test_mock_GetLockerRequest.cc.o CMakeFiles/unittest_librbd.dir/managed_lock/test_mock_ReacquireRequest.cc.o CMakeFiles/unittest_librbd.dir/managed_lock/test_mock_ReleaseRequest.cc.o CMakeFiles/unittest_librbd.dir/mirror/test_mock_DisableRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_InvalidateRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_LockRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_RefreshRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_ResizeRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_SnapshotCreateRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_SnapshotRemoveRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_SnapshotRollbackRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_UnlockRequest.cc.o CMakeFiles/unittest_librbd.dir/object_map/test_mock_UpdateRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_DisableFeaturesRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_EnableFeaturesRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_Request.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_ResizeRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_SnapshotCreateRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_SnapshotProtectRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_SnapshotRemoveRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_SnapshotRollbackRequest.cc.o CMakeFiles/unittest_librbd.dir/operation/test_mock_SnapshotUnprotectRequest.cc.o CMakeFiles/unittest_librbd.dir/watcher/test_mock_RewatchRequest.cc.o ../../CMakeFiles/common_texttable_obj.dir/common/TextTable.cc.o -rpath /usr/local/lib:/usr/srcs/Ceph/work/ceph/build/lib:/usr/local/lib/nss ../../../lib/libcls_rbd.so.1.0.0 ../../../lib/libcls_rbd_client.a ../../../lib/libcls_lock.so.1.0.0 ../../../lib/libcls_lock_client.a ../../../lib/libjournal.a ../../../lib/libjournal_test_mock.a ../../../lib/libcls_journal.so.1.0.0 ../../../lib/libcls_journal_client.a ../../../lib/librados_test_stub.a ../../../lib/librados.so.2.0.0 ../../../lib/librbd_test.a ../../../lib/librbd_test_mock.a ../../../lib/librbd_api.a ../../../lib/librbd_internal.a ../../../lib/librbd_types.a ../../../lib/libosdc.a ../../../lib/libglobal.a ../../../lib/libgmock_main.a ../../../lib/libgmock.a ../../../lib/libgtest.a -lpthread ../../../lib/libradostest.a ../../../lib/libceph-common.so.0 ../../../lib/liberasure_code.a /usr/local/lib/libboost_thread.so /usr/local/lib/libboost_system.so /usr/local/lib/libboost_regex.so /usr/local/lib/libboost_random.so /usr/local/lib/libboost_program_options.so /usr/local/lib/libboost_date_time.so /usr/local/lib/libboost_iostreams.so -lexecinfo /usr/local/lib/nss/libssl3.so /usr/local/lib/nss/libsmime3.so /usr/local/lib/nss/libnss3.so /usr/local/lib/nss/libnssutil3.so /usr/local/lib/libplds4.so /usr/local/lib/libplc4.so /usr/local/lib/libnspr4.so -lpthread -lrt /usr/local/lib/libatomic_ops.a ../../../lib/libjson_spirit.a ../../../lib/libcommon_utf8.a -lc++ -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o
../../../lib/librbd_internal.a(GetStatusRequest.cc.o): In function `librbd::mirror::GetStatusRequest<librbd::ImageCtx>::send()':
/usr/srcs/Ceph/work/ceph/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)
14.626u 6.427s 0:21.11 99.6% 2036+283k 0+84697io 3pf+0w
Exit 1

History

#1 Updated by Brad Hubbard 7 months ago

Removed

#2 Updated by Mykola Golub 7 months ago

  • Project changed from Ceph to rbd
  • Category deleted (librbd)
  • Assignee set to Mykola Golub

#3 Updated by Mykola Golub 7 months ago

  • Status changed from New to Need Review

#4 Updated by Willem Jan Withagen 7 months ago

Mykola Golub wrote:

PR: https://github.com/ceph/ceph/pull/13926

Looks like this fixes the compilation process

#5 Updated by Mykola Golub 7 months ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF