Problems building bareos 20.0.1 package from source

65 views
Skip to first unread message

khvalera

unread,
Apr 16, 2021, 9:07:35 AM4/16/21
to bareos-devel
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?
fix-xattr.patch

khvalera

unread,
Apr 16, 2021, 10:49:26 AM4/16/21
to bareos-devel
I attach the finished patch

пятница, 16 апреля 2021 г. в 16:07:35 UTC+3, khvalera:
fix-build-bareos.patch

Andreas Rogge

unread,
Apr 19, 2021, 10:21:47 AM4/19/21
to bareos...@googlegroups.com
Hi,
thanks for using Bareos!

Am 16.04.21 um 15:07 schrieb khvalera:
> 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 catalog36 | #include <attr
> / xattr.h>
You're missing the libattr library. sys/xattr.h is part of glibc, but we
actually want attr/xattr.h which is part of libattr.

> /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;
I'm not really sure what is wrong here.
Which C compiler in what version are you using, what CFLAGS did you set
and what architecture/platform are you building for?

If you don't use droplet, maybe it is easier to just disable that backend.

Best Regards,
Andreas
--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: S. Dühr, M. Außendorf, J. Steffens, Philipp Storz

khvalera

unread,
Apr 19, 2021, 3:00:32 PM4/19/21
to bareos-devel
building for archlinux x64. attr is installed but does not solve the problem.
I posted a patch above that solves the problem.
Thank you!
понедельник, 19 апреля 2021 г. в 17:21:47 UTC+3, andreas.rogge:
Reply all
Reply to author
Forward
0 new messages