Bug #19271
closedCannot build Ceph
0%
Description
Hi guys,
I tried to build ceph source code on CentOS 7.2.1511. After executing ./install-deps.sh that install required libraries and tools, when executing cmake, I got an error:
-- MergeStaticLibraries: cephd: remaining m;/usr/lib64/libdl.so;cls_journal_client;librados;cls_lock_client;cls_rgw_client;cls_refcount_client;cls_log_client;cls_statelog_client;cls_timeindex_client;cls_version_client;cls_replica_log_client;cls_user_client;ceph-common;/usr/lib64/libcurl.so;/usr/lib64/libexpat.so;/usr/lib64/libldap.so;/usr/lib64/liblber.so;/usr/lib64/libssl3.so;/usr/lib64/libsmime3.so;/usr/lib64/libnss3.so;/usr/lib64/libnssutil3.so;/usr/lib64/libplds4.so;/usr/lib64/libplc4.so;/usr/lib64/libnspr4.so;/usr/lib64/libfcgi.so;rt;resolv;/root/ceph/build/boost/lib/libboost_thread.a;/root/ceph/build/boost/lib/libboost_system.a;/root/ceph/build/boost/lib/libboost_regex.a;/root/ceph/build/boost/lib/libboost_random.a;/root/ceph/build/boost/lib/libboost_program_options.a;/root/ceph/build/boost/lib/libboost_date_time.a;/root/ceph/build/boost/lib/libboost_iostreams.a;/usr/lib64/libblkid.so;-lpthread;dl;/usr/lib64/libz.so;/usr/lib64/libatomic_ops.a;/lib64/libleveldb.so;/usr/lib64/libtcmalloc.so;/lib64/libsnappy.so;liblua;/lib64/libaio.so;/usr/lib64/libfuse.so
-- Configuring incomplete, errors occurred!
See also "/root/ceph/build/CMakeFiles/CMakeOutput.log".
See also "/root/ceph/build/CMakeFiles/CMakeError.log".
Here is the error message form CMakeError.log:
Run Build Command:/usr/bin/gmake "cmTryCompileExec2997869652/fast"
/usr/bin/gmake f CMakeFiles/cmTryCompileExec2997869652.dir/build.make CMakeFiles/cmTryCompileExec2997869652.dir/build>st_mtimespec.tv_nsec;
gmake1: Entering directory `/root/ceph/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /root/ceph/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2997869652.dir/src.c.o
/usr/bin/cc -DHAVE_STAT_ST_MTIMESPEC_TV_NSEC -o CMakeFiles/cmTryCompileExec2997869652.dir/src.c.o -c /root/ceph/build/CMakeFiles/CMakeTmp/src.c
/root/ceph/build/CMakeFiles/CMakeTmp/src.c: In function ‘main’:
/root/ceph/build/CMakeFiles/CMakeTmp/src.c:7:7: error: ‘struct stat’ has no member named ‘st_mtimespec’
tmp
^
gmake1: Leaving directory `/root/ceph/build/CMakeFiles/CMakeTmp'
gmake1: * [CMakeFiles/cmTryCompileExec2997869652.dir/src.c.o] Error 1
gmake: * [cmTryCompileExec2997869652/fast] Error 2
Source file was:
#include <sys/stat.h>
int main()
{
struct stat* tmp;
tmp->st_mtimespec.tv_nsec;
return 0;
}
I guess the problem maybe some library is too old. Can anyone help me solve this problem? Thanks!
Files