View Issue Details

IDProjectCategoryView StatusLast Update
0001286bareos-core[All Projects] installer / packagespublic2021-04-26 15:46
Reporter4c4712a4141d261ec0ca8f9037950685Assigned Toarogge 
PriorityurgentSeveritycrashReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformLinuxOSUbuntuOS Version20.04
Product Version19.2.8 
Fixed in Version 
Summary0001286: Fails to build ceph plugin on Ubuntu 20.04
DescriptionCeph plugin is fails to build on Ubuntu 20.04 with ceph 15.2. The same problem exists on Ubuntu 18.04 with updated ceph.
Bareos version from version 18.2 to lastest git tree are affected.

Build report:

```
[ 96%] Building CXX object src/plugins/filed/CMakeFiles/cephfs-fd.dir/cephfs-fd.cc.o
cd /root/bareos/bareos19/bareos-19.2.7/obj-x86_64-linux-gnu/src/plugins/filed && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -Dcephfs_fd_EXPORTS -I/usr/include/tirpc -I/root/bareos/bareos19/bareos-19.2.7/src -isystem /usr/include/python2.7 -g -O2 -fdebug-prefix-map=/root/bareos/bareos19/bareos-19.2.7=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wsuggest-override -Wformat -Werror=format-security -fmacro-prefix-map=/root/bareos/bareos19/bareos-19.2.7=. -Wno-unknown-pragmas -Wall -fPIC -std=gnu++11 -o CMakeFiles/cephfs-fd.dir/cephfs-fd.cc.o -c /root/bareos/bareos19/bareos-19.2.7/src/plugins/filed/cephfs-fd.cc
/root/bareos/bareos19/bareos-19.2.7/src/plugins/filed/cephfs-fd.cc: In function ‘bRC filedaemon::get_next_file_to_backup(bpContext*)’:
/root/bareos/bareos19/bareos-19.2.7/src/plugins/filed/cephfs-fd.cc:457:33: error: cannot convert ‘stat*’ to ‘ceph_statx*’
  457 | &p_ctx->statp, &stmask);
      | ^~~~~~~~~~~~~
      | |
      | stat*
In file included from /root/bareos/bareos19/bareos-19.2.7/src/plugins/filed/cephfs-fd.cc:35:
/usr/include/cephfs/libcephfs.h:564:29: note: initializing argument 4 of ‘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[3]: *** [src/plugins/filed/CMakeFiles/cephfs-fd.dir/build.make:66: src/plugins/filed/CMakeFiles/cephfs-fd.dir/cephfs-fd.cc.o] Error 1
make[3]: Leaving directory '/root/bareos/bareos19/bareos-19.2.7/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:2803: src/plugins/filed/CMakeFiles/cephfs-fd.dir/all] Error 2
make[2]: Leaving directory '/root/bareos/bareos19/bareos-19.2.7/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:144: all] Error 2
make[1]: Leaving directory '/root/bareos/bareos19/bareos-19.2.7/obj-x86_64-linux-gnu'
```
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

Activities

arogge_adm

arogge_adm

2020-12-11 17:38

administrator   ~0004064

You claim that building the latest master from git fails, please provide steps how to reproduce that.
Out continous build infrastructure just built master, bareos-19.2 and bareos-18.2 a few minutes ago. On Ubuntu 20.04 using ceph packages versioned "15.2.5-0ubuntu0.20.04.1". I think you're not building the latest sources. This was a problem in 18.2, 19.2 and master. But it has been fixed for quite a while now.
arogge

arogge

2021-04-26 15:46

developer   ~0004125

closing due to no feedback from reporter.

Issue History

Date Modified Username Field Change
2020-12-11 13:03 4c4712a4141d261ec0ca8f9037950685 New Issue
2020-12-11 17:38 arogge_adm Assigned To => arogge
2020-12-11 17:38 arogge_adm Status new => feedback
2020-12-11 17:38 arogge_adm Note Added: 0004064
2021-04-26 15:46 arogge Status feedback => resolved
2021-04-26 15:46 arogge Resolution open => unable to reproduce
2021-04-26 15:46 arogge Note Added: 0004125