Building librbd on Alpine compilation errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

I am running into compilation errors when trying to build just librdb on Alpine.  Here are the steps I used:

git clone https://github.com/ceph/ceph.git
cd ceph
git checkout tags/v13.2.2
./do_cmake.sh \
    -DWITH_SYSTEM_BOOST=ON \
    -DWITH_LTTNG=OFF \
    -DWITH_REENTRANT_STRSIGNAL=ON \
    -DWITH_THREAD_SAFE_RES_QUERY=ON \
    -DWITH_OPENLDAP=OFF \
    -DWITH_LEVELDB=OFF \
    -DWITH_BABELTRACE=OFF \
    -DWITH_DPDK=OFF \
    -DWITH_SPDK=OFF
cd build
make librbd

Which gives the following compilation errors:

/ceph/src/common/blkdev.cc: In function 'int64_t get_vdo_stat(int, const char*)':
/ceph/src/common/blkdev.cc:337:3: error: 'TEMP_FAILURE_RETRY' was not declared in this scope
   TEMP_FAILURE_RETRY(::close(fd));

And

/ceph/src/common/common_init.cc: In function 'void common_init_finish(CephContext*)':
/ceph/src/common/common_init.cc:124:21: error: 'ACCESSPERMS' was not declared in this scope
       if (!(ret & (~ACCESSPERMS))) {
                     ^~~~~~~~~~~
make[3]: *** [src/CMakeFiles/common-objs.dir/build.make:1091: src/CMakeFiles/common-objs.dir/common/common_init.cc.o] Error 1

TEMP_FAILURE_RETRY is included in src/include/compat.h, but that isn’t included in blkdev.cc, so I am not sure how this is supposed to compile?  What am I missing?

Regards,
Mark
 
Mark Beierl
SW System Sr Principal Developer
Dell EMC | Cloud & Communication Service Provider Solution
Mark.Beierl@xxxxxxxx





[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux