Problems building bareos 20.0.1 package from source

閲覧: 65 回
最初の未読メッセージにスキップ

khvalera

未読、
2021/04/16 9:07:352021/04/16
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

未読、
2021/04/16 10:49:262021/04/16
To: bareos-devel
I attach the finished patch

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

Andreas Rogge

未読、
2021/04/19 10:21:472021/04/19
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

未読、
2021/04/19 15:00:322021/04/19
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:
全員に返信
投稿者に返信
転送
新着メール 0 件