Today I tried to build the bareos 20.0.1 package from source and got the 
following errors:
3%] Building C object core / src / droplet / libdroplet / CMakeFiles / 
droplet.dir / src / utils.c.o 
/data/install_linux/snuglinux/builds-pkg/bareos-sl/src/bareos/core/src/droplet/libdroplet/src/utils.c:36:10:
 
fatal error: attr / xattr.h: No such file or catalog 36 | #include <attr / 
xattr.h>

I don't know if it's right or not, I tried to make a patch: fix-xattr.patch

Then I get an error: 

/builds-pkg/bareos-sl/src/bareos/core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h:81:25:
 
error: both "unsigned" and "_Bool »In declaration specifiers 

81 | typedef unsigned bool; 

| ^ ~~~ In file included from 
/builds-pkg/bareos-sl/src/bareos/core/src/droplet/libdroplet/src/backend/cdmi/object_id.c:36:
 
/builds-pkg/bareos-sl/src/bareos/core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h:81:1:
 
warning: useless type name in empty declaration 

81 | typedef unsigned bool; 

| ^ ~~~~~~ 
How to beat him? 

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bareos-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-devel/f7a6b58e-0171-4230-9815-6eafe126b14an%40googlegroups.com.
--- a/core/src/droplet/libdroplet/src/utils.c	2021-04-16 00:09:37.856912334 +0300
+++ b/core/src/droplet/libdroplet/src/utils.c	2021-04-16 00:32:28.058300432 +0300
@@ -33,7 +33,7 @@
  */
 #include <dropletp.h>
 #include <linux/xattr.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
 #include <errno.h>
 
 /** @file */

Reply via email to