View Issue Details

IDProjectCategoryView StatusLast Update
0001459bareos-coreinstaller / packagespublic2022-05-10 17:31
Reporterkhvalera Assigned To 
Status newResolutionopen 
PlatformLinuxOSanyOS Version3
Product Version21.1.3 
Summary0001459: Fails to build ceph plugin on Archlinux
DescriptionCeph plugin cannot be built on Archlinux with ceph 15.2.14

Build report:

[ 73%] Building CXX object core/src/stored/backends/CMakeFiles/bareossd-cephfs.dir/
In file included from /data/builds-pkg/bareos/src/bareos/core/src/stored/backends/
/data/builds-pkg/bareos/src/bareos/core/src/stored/backends/cephfs_device.h:31:10: fatal error: cephfs/libcephfs.h: No such file or directory
    31 | #include <cephfs/libcephfs.h>
       | ^~~~~~~~~~~~~~~~~~~~
compilation aborted.
make[2]: *** [core/src/stored/backends/CMakeFiles/bareossd-cephfs.dir/build.make:76: core/src/stored/backends/CMakeFiles/bareossd-cephfs.dir/ .o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3157: core/src/stored/backends/CMakeFiles/bareossd-cephfs.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action




2022-05-10 13:03

developer   ~0004605

Maybe you can describe a bit more your setup, from where come cephfs
maybe the result of find libcephfs.h can be useful


2022-05-10 15:12

reporter   ~0004606

You can fix this error by installing ceph-libs. But the assembly does not happen:

[ 97%] Building CXX object core/src/plugins/filed/CMakeFiles/cephfs-fd.dir/cephfs/
/data/builds-pkg/bareos/src/bareos/core/src/plugins/filed/cephfs/ In the "bRC filedaemon::get_next_file_to_backup(PluginContext*)" function:
/data/builds-pkg/bareos/src/bareos/core/src/plugins/filed/cephfs/ error: cannot convert "stat*" to "ceph_statx*"
  421 | &p_ctx->statp, &stmask);
      | ^~~~~~~~~~~~~
      | |
      | stat*
In file included from /data/builds-pkg/bareos/src/bareos/core/src/plugins/filed/cephfs/
/usr/include/cephfs/libcephfs.h:564:43: note: when initializing the 4th argument "int ceph_readdirplus_r(ceph_mount_info*, ceph_dir_result*, dirent*, ceph_statx*, unsigned int, unsigned int, Inode**)"
  564 | struct ceph_statx *stx, unsigned want, unsigned flags, struct Inode **out);
      | ~~~~~~~~~~~~~~~~~~^~~
make[2]: *** [core/src/plugins/filed/CMakeFiles/cephfs-fd.dir/build.make:76: core/src/plugins/filed/CMakeFiles/cephfs-fd.dir/cephfs/cephfs] Error 1
make[1]: *** [CMakeFiles/Makefile2:3908: core/src/plugins/filed/CMakeFiles/cephfs-fd.dir/all] Error 2
make: *** [Makefile:146: all] Error 2


2022-05-10 17:31

developer   ~0004610

When we ask for a bit more information about your setup you maybe make the effort to give useful information like compiler used, cmake output etc ...
otherside we can clause here telling it works so well with cephfs upper version like 15.2.15 or 16.2.7 ...

Issue History

Date Modified Username Field Change
2022-05-09 16:37 khvalera New Issue
2022-05-10 13:03 bruno-at-bareos Note Added: 0004605
2022-05-10 15:12 khvalera Note Added: 0004606
2022-05-10 17:31 bruno-at-bareos Note Added: 0004610