Since a few builds my FreeBSD jenkins run do not complete because libmds
is not there.
I'm not sure why libmds isn't getting build and why the makefile tries
to link with -Lmds.
(I guess that later is because there is no libmds in ../../../lib)
Now given that the regular jenkins builds complete, it has to do with
FreeBSD building.
And I do build with CEPHFS, trigiring:
if (WITH_CEPHFS)
add_subdirectory(mds)
set(ceph_mds_srcs
ceph_mds.cc)
add_executable(ceph-mds ${ceph_mds_srcs})
target_link_libraries(ceph-mds mds ${CMAKE_DL_LIBS} global-static
ceph-common
Boost::thread)
install(TARGETS ceph-mds DESTINATION bin)
endif()
Now the key questions is: Does ceph-dencode really require libmds?
I'm currently building with the
add_subdirectory(mds)
lifted out the conditional
--WjW
ccache /usr/bin/c++ -Wall -Wtype-limits -Wignored-qualifiers
-Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing
-fsigned-char -Wno-unknown-pragmas -Wno-unused-function
-Wno-unused-local-typedef -Wno-varargs -Wno-gnu-designator
-Wno-missing-braces -Wno-parentheses -Wno-deprecated-register
-ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-unknown-pragmas
-Wno-ignored-qualifiers -Wno-inconsistent-missing-override
-Wno-mismatched-tags -Wno-unused-private-field
-Wno-address-of-packed-member -DCEPH_DEBUG_MUTEX
-fdiagnostics-color=auto -fno-builtin-malloc -fno-builtin-calloc
-fno-builtin-realloc -fno-builtin-free -O0 -g
-Wno-unused-command-line-argument -DBEAST_NO_BOOST_STRING_VIEW
-Wl,--export-dynamic CMakeFiles/ceph-dencoder.dir/ceph_dencoder.cc.o
CMakeFiles/ceph-dencoder.dir/__/__/rgw/rgw_dencoder.cc.o
../../common/CMakeFiles/common_texttable_obj.dir/TextTable.cc.o -o
../../../bin/ceph-dencoder -L/usr/local/lib
-Wl,-rpath,/usr/local/lib:/home/jenkins/workspace/ceph-master/build/lib:/usr/local/lib/nss:
../../../lib/libglobal.a ../../../lib/libos.a ../../../lib/libosd.a
-lmds ../../../lib/libmon.a ../../../lib/libjournal.a
../../../lib/librgw_a.a ../../../lib/libcls_rgw_client.a
../../../lib/libcls_rbd_client.a ../../../lib/librbd_mirror_types.a
../../../lib/librbd_types.a ../../../lib/librbd_replay_types.a
../../../lib/libcls_lock_client.a ../../../lib/libcls_refcount_client.a
../../../lib/libcls_log_client.a ../../../lib/libcls_version_client.a
../../../lib/libcls_user_client.a ../../../lib/libcls_journal_client.a
../../../lib/libcls_timeindex_client.a -lrt /usr/local/lib/libfuse.so
../../../lib/libkv.a ../../rocksdb/librocksdb.a
/usr/local/lib/libsnappy.so /usr/local/lib/liblz4.so /usr/lib/libz.so
../../../lib/libdmclock.a /usr/local/lib/libleveldb.so
../../../lib/libcpu_profiler.a ../../../lib/libheap_profiler.a
/usr/local/lib/libtcmalloc.so ../../../lib/libglobal.a -lrt
../../../lib/libradospp.so.1.0.0 ../../../lib/libceph-common.so.1
../../../lib/libjson_spirit.a ../../../lib/liberasure_code.a
../../../lib/libcrc32.a ../../../lib/libarch.a
/usr/local/lib/libboost_thread.so /usr/local/lib/libboost_chrono.so
/usr/local/lib/libboost_atomic.so /usr/local/lib/libboost_random.so
/usr/local/lib/libboost_system.so
/usr/local/lib/libboost_program_options.so
/usr/local/lib/libboost_date_time.so
/usr/local/lib/libboost_iostreams.so /usr/local/lib/libboost_regex.so
/usr/lib/libexecinfo.so -lpthread ../../../lib/librados.so.3.0.0
../../../lib/libcls_otp_client.a ../../../lib/libcommon_utf8.a
/usr/local/lib/libcurl.so /usr/local/lib/libexpat.so
/usr/local/lib/libldap.so /usr/local/lib/liblber.so
/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 /usr/local/lib/libcrypto.so
/usr/local/lib/liboath.so
/usr/bin/ld: error: unable to find library -lmds