Trying to building Bareos in ArchlinuxARM

185 views
Skip to first unread message

Rafael Castellar das Neves

unread,
Jul 18, 2019, 11:08:22 AM7/18/19
to bareos-users
Hi all!

I'm trying to build the latest bareos version in my ArchlinuxARM but it won't finish because of errors I can't detected.

I've just:
1) clone it from git
2) cd bareos
3) mkdir build
4) cd build
5) cmake -Dmysql=yes -Dpostgresql=no -Dsqlite3=no -Dpython=yes -Dtraymonitor=yes ../

6) Then it started the building process and it stopped as described int the "printout.txt" file attached.


As there are several erro messages I would like a help from you guys to try to point out the main problem.

Also, I attached the and error and output logs.

Tks in advance!

Rafael

CMakeError.log
CMakeOutput.log
printout.txt

bareos-user

unread,
Jul 18, 2019, 2:20:51 PM7/18/19
to bareos...@googlegroups.com
> As there are several erro messages I would like a help from you guys to try to point out the main problem.

Let's try attached PKGBUILD
PKGBUILD

Erich Eckner

unread,
Jul 18, 2019, 3:50:51 PM7/18/19
to bareos-user, bareos...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

You will also need to build mtx (at least if you use my PKGBUILD):

https://git.eckner.net/Erich/archlinuxewe/tree/mtx-svn

https://git.eckner.net/Erich/archlinuxewe/tree/bareos

though, I have to admit, I did not actually *test* this on armv6h /
armv7h.

regards,
Erich
> --
> You received this message because you are subscribed to the Google Groups
> "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to bareos-users...@googlegroups.com.
> To post to this group, send email to bareos...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bareos-users/0483168c-9f71-ef3f-35e3-d6d6f9c981bc%40tiny-vps.com.
> For more options, visit https://groups.google.com/d/optout.
>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAl0wzY4ACgkQCu7JB1Xa
e1oRHQ/+OipfxaYWwTwpoerc8ymtAPv+cu7tBjOZ6BGnshT9/p761ZI5EDGldXwh
JmMVbuExbzRUPuUtVSHmPGjGyfNdjAnTukAvwzx1CO0M6yO9CcPKzXgc/Nz0yI7+
cAbgVH4gxeWuyVuCm5D9A61sD/wpPsq17J2hrgi8dtnu/iiLh0ShuXkIU979b1qS
/TtZ+n6jErpr1+0GYfCImiafA8n8UYmZDluDPSxPzOMtWNoItgdsIDnkt0tFN4ru
TrqqLOTgzKp9n3OZScoSrzt6owVoqHHL/544Qy4XxTAt+4dla4NBbVbtKFD2NwsV
RucetrDEooGMmt+M8ilq4fRsRjecoDrcgXW934IvKnYcjtcYHwqYplZR2mqFkKUv
4clzlQwY+GkhxJTn7RRPZLhm09w9dvtkJr7M7p4qFqdjrZnBixIZU7LgPATJBu4H
ncOLxa/bR0fpFRjzViFJKqenB+d5Z4xgmZMT8Qwjxvi4uvg84LAQEfgBZQ27mPUC
2DTSZV+HMBqH+jdWsGSLwcmXaOEtTSCpI3z6nP1E5PSFZGeckCp5oFXQpJvM2sXn
Xfz9L6e2NwUNA62yCMoYUAjWZXzxXw1hzhJKJe60eazlASd1deT5I4gNua4+yag9
mypwp9iiaOz7aY+6zolzpUWfqQH5ynTRfnmqbiNQrOIalfTvf2c=
=zbDw
-----END PGP SIGNATURE-----

Rafael Castellar das Neves

unread,
Jul 29, 2019, 3:34:44 PM7/29/19
to bareos-users
Hi!

Sorry, but I just saw your message. This PKGBUILD asked my for .install files, which I don't have. I will use the ones from the link of the next message, Erich one's!

Tks

Rafael Castellar das Neves

unread,
Jul 29, 2019, 4:24:38 PM7/29/19
to bareos-users
Hallo Erich!

Sorry, only today I saw your message just today and tried. We were going very well, but in the I got this error, which I think is a simple thing, but I don't know how to solve:
(as I'm running in portuguese, I put between parentesis the translation to english of some messages)

makepkg -si
==> Criando o pacote: bareos 18.2.6-8 (seg 29 jul 2019 16:50:03 -03)
==> Verificando as dependências de tempo de execução...
==> Verificando as dependências de tempo de compilação...
==> Obtendo fontes...
  -> Encontrado bareos-18.2.6.tar.gz
  -> Encontrado nullify-os-specifics.patch
  -> Encontrado check-if-bareos-backup-is-running
==> Validando source arquivos com sha512sums...
    bareos-18.2.6.tar.gz ... Passou
    nullify-os-specifics.patch ... FALHOU (FAILED)
    check-if-bareos-backup-is-running ... FALHOU (FAILED)
==> ERRO: Um ou mais arquivos não passaram na verificação de validade! (One or more files did not passed in validity check)

Do you know what I can do?

Thank you very much!

Rafael

Em quinta-feira, 18 de julho de 2019 16:50:51 UTC-3, Erich Eckner escreveu:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

You will also need to build mtx (at least if you use my PKGBUILD):

https://git.eckner.net/Erich/archlinuxewe/tree/mtx-svn

https://git.eckner.net/Erich/archlinuxewe/tree/bareos

though, I have to admit, I did not actually *test* this on armv6h /
armv7h.

regards,
Erich

On Thu, 18 Jul 2019, bareos-user wrote:

>> As there are several erro messages I would like a help from you guys to try
>> to point out the main problem.
>
> Let's try attached PKGBUILD
>
> --
> You received this message because you are subscribed to the Google Groups
> "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Erich Eckner

unread,
Jul 29, 2019, 5:04:24 PM7/29/19
to bareos-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Rafael,

somehow, your source files are corrupted. How did you obtain them? I
recommend either cloning my git repository (which contains a lot of other
packages, too, that you may not want) or downloading the
files via the link in the cgit labeled "plain".

https://git.eckner.net/Erich/archlinuxewe/plain/bareos/check-if-bareos-backup-is-running

https://git.eckner.net/Erich/archlinuxewe/plain/bareos/nullify-os-specifics.patch

Btw: The `check-if-bareos-is-running` script is an experimental script
which I use - you can simply remove all traces of it in the PKGBUILD if
you like - but your build will still fail, because the
(AFAIR necessary) patch is somehow corrupted, too.

Regards,
Erich
> To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/df4f6b40-f3b8-4276-9a97-c26647e322a3%40googlegroups.com.
>
>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAl0/X00ACgkQCu7JB1Xa
e1pv6xAAg3eSt28QRdmAaN7AWjZOiEq5KYmrnSmzf1F+s02jPVDRnPtz23ACNlOZ
FEh6Ub/2x9eMRhdtINddDSfVNtysjhWYzosXoqRFfTJJ2pZOq2Cjy2fDngtHs3zg
ObmvoNVDy4yte7XMQp4j4auhLuJavujMUEtl0db9mxRXykS63ANqYLWSQme7ETgS
z1y31v3YBZry1q77n1KWdQUnuL5Zp/ELqz61rer0xsMCQKluGsnCAYKaJGxCHOoy
c9c1lKKha+wQYqJFhEvMiXhrS+lG3RfkwuFco6aN+1gMRfthJ5jkOwsPZdYd0iij
95W997fdaNJMLxENhCcg9KBDxd3PsR0lo5Ckqgfphzn1QDM+Y3TDKN+50AkZY4fC
BiAUV1XAeo6/Z/HgiRaavNPuQ20EY8shpu885jXMfd/c5OU/950EXpn0eswAGcim
3VJXPYiT7Jxch55S7io+FwbbIGTc/JX06ieDmT+U42xs8wzgGBL6wjeGMRyPUdlJ
W8AWc5WOlQtqRAicA+09nG+0pqKGq3RlhqazPgZ4aNNDmwRbTfuso1zAaHoOPkhI
6hyDRHk3RsUcS8eDKzykeLEoBuoSrd90L+FO35vzxfp4m6XVcn/8bSy/cqnM84mR
Hw+O99kHZG62V6wr2GzVzXipjkLkLj61hd9TX6TzM1Id/CkmcYE=
=zjYC
-----END PGP SIGNATURE-----

Rafael Castellar das Neves

unread,
Jul 29, 2019, 7:08:43 PM7/29/19
to bareos-users
Erich, it worked right!!

I did get the files from your repository, but maybe something went wrong. I did it again and worked fine.
Now I have to configure my MariaDB repository. I'm running the preparation scripts ( https://docs.bareos.org/IntroductionAndTutorial/InstallingBareos.html#other-platforms) and it is not getting the parameters and is trying to install in postgresql, which I'm not using:
/usr/lib/bareos/scripts/create_bareos_database 
Info: unable to get "dbname" from config, using default value "bareos". Check /tmp/bareos-config.26396.log
Info: unable to get "dbuser" from config, using default value "bareos". Check /tmp/bareos-config.26396.log
Info: unable to get "dbdriver" from config, this is usually not an error. Check /tmp/bareos-config.26396.log
Creating postgresql database
Unable to determine PostgreSQL version.

I know I've already passed through this, but still don't remember how I solved. I will try more..

Thank you very much!!!

Rafael
> To unsubscribe from this group and stop receiving emails from it, send an email to bareos...@googlegroups.com.

Rafael Castellar das Neves

unread,
Jul 29, 2019, 9:02:46 PM7/29/19
to bareos-users
Enrich, nevermind, I've forgot to put the "mysql" parameter 

It's running now!

tks

Andreas Rogge

unread,
Jul 30, 2019, 2:20:46 AM7/30/19
to bareos...@googlegroups.com
Am 30.07.19 um 03:02 schrieb Rafael Castellar das Neves:
> Enrich, nevermind, I've forgot to put the "mysql" parameter 
>
Why exactly would you use MySQL with Bareos? The recommended RDBMS is
PostgreSQL

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

signature.asc

Rafael Castellar das Neves

unread,
Aug 10, 2019, 7:17:21 PM8/10/19
to bareos-users
Erich, if I'd only want to build and install filedaemon, what should I do? Is there any change I could make in your PKGBUILD that would allow that?

Tks!!
> To unsubscribe from this group and stop receiving emails from it, send an email to bareos...@googlegroups.com.

Erich Eckner

unread,
Aug 11, 2019, 2:13:21 AM8/11/19
to Rafael Castellar das Neves, bareos-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dear Rafael,

bareos is built as split-packages, so you're free to install only
bareos-filedaemon (and its dependencies). Regarding building, I'm not sure
if/how it is possible.

Regards,
Erich
> email to bareos-users...@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/bareos-users/2a7a53b8-7b37-4c7e-8944-8360
> d5daaa32%40googlegroups.com.
>
>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAl1PsfkACgkQCu7JB1Xa
e1pjnw/+IQi5CwsfULUm70i8vMmlZUjcWWdWzu9GGeoAYPiFpEeyNw+TVmUjwPNY
osec14PW5jCM++3idrRWi3zWDAHr3cPokhc9lO0D8ZS3T+SnAcQ+QiqI2xgDuowo
LhHrxEcl/KaCa8O7bttzFRjj7SPXMcDL7Yh0aw4Hq9Smhx+w4QE6rF9N4kKPMn9A
kT3piWIO0t5YgGV/nQ1H1ky6TjFcvZCG2m2LIWdsy4rZpzTEfBx20i9en+ioCsn1
N9U8D7NTYdMA9CAzTpJNQFbe6QJ2E0VCm0FvWnIWVu3JDmN0r1G91qHhZeiujVji
L0PrrNjBd4Dan5jrfOfNmWcwdyiDOzf3krFkPNuKRdhJI/coXzfc/0+c7qlSZm2k
fUBtmRQECkxkRi5FU9woj2Lkr12akzGgOQX6WXaLqzngWUTdH+hDtySIbgBTvly6
WkS+ClFARvqQXUUTKfLq65kT1ZL5o7pmTppQXdn4CMPcS+f+lPU+KJYre2KM0OsB
TEeboVyZdtqDC0FFOJOUbBv9B7KnUaZNEzfu2SoG0pXpc5kPZVRgSc/ndsPXsHJB
19wApKwfahu+Y68m4szvjjj8tHUHGwK70gFnz4yaUKGhatUWsWgdy19Owv1ae9cZ
ySMqCumJ/PgzMqNz0AyJguk9DLPE7AoVesXtXaPyqpXUgRR4pCE=
=Csn/
-----END PGP SIGNATURE-----

Rafael Castellar das Neves

unread,
Sep 21, 2019, 8:39:09 AM9/21/19
to bareos-users
Hallo Erich!

Sorry bothering you with another question, maybe off this topic, but did you build the bareos-storage=droplet in the same way these ones?
I'm trying to build but I'm getting error in make process. I have an open topic about this: https://groups.google.com/forum/#!msg/bareos-users/FgJOqPOS-QA/LR0J6GBaBwAJ

Tks!!!

Rafael Castellar das Neves

unread,
Oct 9, 2019, 8:18:54 PM10/9/19
to bareos-users
Ho Erich!

I had to reinstall Archlinux in my laptop and tried to compile Bareos with your above tips, but I got this error, do you know what can be? It is working fine in ArchlinuxAMR (armv7l):

/home/rafael/tmp/archlinuxewe/bareos/src/bareos-Release-18.2.6/core/src/stored/backends/gfapi_device.cc: In member function ‘virtual bool storagedaemon::gfapi_device::d_truncate(storagedaemon::DeviceControlRecord*)’:
/home/rafael/tmp/archlinuxewe/bareos/src/bareos-Release-18.2.6/core/src/stored/backends/gfapi_device.cc:553:33: error: too few arguments to function ‘int glfs_ftruncate(glfs_fd_t*, off_t, glfs_stat*, glfs_stat*)’
  553 |       if (glfs_ftruncate(gfd_, 0) != 0) {
      |                                 ^
In file included from /home/rafael/tmp/archlinuxewe/bareos/src/bareos-Release-18.2.6/core/src/stored/backends/gfapi_device.h:31,
                 from /home/rafael/tmp/archlinuxewe/bareos/src/bareos-Release-18.2.6/core/src/stored/backends/gfapi_device.cc:34:
/usr/include/glusterfs/api/glfs.h:768:1: note: declared here
  768 | glfs_ftruncate(glfs_fd_t *fd, off_t length, struct glfs_stat *prestat,
      | ^~~~~~~~~~~~~~
make[2]: *** [core/src/stored/backends/CMakeFiles/bareossd-gfapi.dir/build.make:63: core/src/stored/backends/CMakeFiles/bareossd-gfapi.dir/gfapi_device.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1291: core/src/stored/backends/CMakeFiles/bareossd-gfapi.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
==> ERRO: Uma falha ocorreu em build().
    Abortando...

Tks!!!

Andreas Rogge

unread,
Oct 10, 2019, 3:24:22 AM10/10/19
to bareos...@googlegroups.com
Am 10.10.19 um 02:18 schrieb Rafael Castellar das Neves:
> Ho Erich!
>
> I had to reinstall Archlinux in my laptop and tried to compile Bareos
> with your above tips, but I got this error, do you know what can be? It
> is working fine in ArchlinuxAMR (armv7l):

You need 2ce2c587 (see attached file) for this. It is not yet in a
release, so you can
- patch the Bareos you're building with that commit
- build the latest version from git branch bareos-18.2
- wait for 18.2.7 to be tagged/released
0001-gfapi_device-detect-glfs_ftruncate-API-change-Fedora.patch
signature.asc
Reply all
Reply to author
Forward
0 new messages