Re: [Bacula-users] Bacula for QNAP?

2022-01-01 Thread Andrea Venturoli


On 1/2/22 01:10, Phil Stracchino wrote:

On 1/1/22 17:50, Phil Stracchino wrote:

Without the static directives the entire build completes successfully.


...But didn't work because of the wrong glibc version.  QNAP says look, 
golly gosh gee whiz wow, kernel 5.10!  But is still using glibc 2.21, 13 
releases behind.


Back when I compiled for ARM I used QNAP's "Cross Toolchain SDK".
Is that (or something similar) availabile for your architecture?
Did you use it?

 bye
av.


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for QNAP?

2022-01-01 Thread Phil Stracchino

On 1/1/22 17:50, Phil Stracchino wrote:

Without the static directives the entire build completes successfully.


...But didn't work because of the wrong glibc version.  QNAP says look, 
golly gosh gee whiz wow, kernel 5.10!  But is still using glibc 2.21, 13 
releases behind.




--
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for QNAP?

2022-01-01 Thread Phil Stracchino

On 1/1/22 13:15, Phil Stracchino wrote:


This QNAP unit has Intel CPUs and a proprietary-Linux-distribution
internal OS.  I suppose compiling a statically linked binary package for
it on one of my other machines would be one way to solve the problem.
Thanks for the thought.


The following configure invocation on a Gentoo system also with Intel 
processors:


./configure --prefix=/opt/bacula --with-dump-email=r...@caerllewys.net 
--with-job-email=r...@caerllewys.net 
--with-smtp-host=smtp.caerllewys.net --with-subsys-dir=/opt/bacula/var 
--with-working-dir=/opt/bacula/var --enable-build-stored 
--disable-build-dird --enable-smartalloc --disable-batch-insert 
--with-mysql --enable-static-fd --enable-static-sd --enable-static-tools 
--disable-libtool



successfully built lib and findlib, then failed in filed:


/usr/bin/g++   -static -L../lib -L../findlib -o static-bacula-fd filed.o 
authenticate.o backup.o crypto.o win_efs.o estimate.o fdcollect.o 
fd_plugins.o accurate.o bacgpfs.o filed_conf.o runres_conf.o heartbeat.o 
hello.o job.o fd_snapshot.o restore.o status.o verify.o verify_vol.o 
fdcallsdir.o suspend.o org_filed_dedup.o bacl.o bacl_linux.o bxattr.o 
bxattr_linux.o \
-lacl -lz -lbacfind -lbaccfg -lbac -lm -lpthread -ldl 
-ldl  \

  -lssl -lcrypto -lcap  -llzo2
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lacl
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
../lib/libbac.a(plugins.o): in function `load_plugins(void*, void*, char 
const*, char const*, bool (*)(Plugin*))':
/netstore/src/bacula-11.0.5/src/lib/plugins.c:150: warning: Using 
'dlopen' in statically linked applications requires at runtime the 
shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lssl
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lcrypto
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lcap
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -llzo2

collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:240: static-bacula-fd] Error 1


Do we actually still support static builds?

Without the static directives the entire build completes successfully.


--
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for QNAP?

2022-01-01 Thread Phil Stracchino

On 1/1/22 13:09, Andrea Venturoli wrote:

On 1/1/22 18:13, Phil Stracchino wrote:


(a) trying to figure out how to get a Bacula sd and fd installed on it


I cross-compiled them myself.
Actually, only the SD (9.6.3 for arm): I think I shared it in the past,
but if you need it just ask.



This QNAP unit has Intel CPUs and a proprietary-Linux-distribution 
internal OS.  I suppose compiling a statically linked binary package for 
it on one of my other machines would be one way to solve the problem. 
Thanks for the thought.




--
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for QNAP?

2022-01-01 Thread Andrea Venturoli

On 1/1/22 18:13, Phil Stracchino wrote:


(a) trying to figure out how to get a Bacula sd and fd installed on it


I cross-compiled them myself.
Actually, only the SD (9.6.3 for arm): I think I shared it in the past, 
but if you need it just ask.





(b) dear gods, the POINTLESS OBFUSCATION of shared volumes ... it seems 
like they fucked around with it because they could.  Yes, it's ZFS 
internal filesystems, but they clearly have no idea what they're doing 
with ZFS.  I absolutely cannot imagine what they were thinking.


Sorry, I don't understand here. Probably because I didn't see what you 
are talking about.




(a) is somewhat complicated by the fact that I need the sd compiled with 
attribute batching disabled, because batching is broken as currently 
implemented and as a result is not compatible with Galera clusters.


Don't remember what I choose here.



 bye
av.


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for QNAP?

2022-01-01 Thread Phil Stracchino

On 1/1/22 11:32, Andrea Venturoli wrote:


On 12/31/21 22:22, Phil Stracchino wrote:


Does anyone have any experience with, or useful tips for, using Bacula
to back up a QNAP NAS with the QuTS "Hero" OS?


I'm backing up *to* a couple of QNAPs (running bacula SD daemon, and not
with ZFS). I didn't choose them, but I'm quite happy about them.
IIC you are trying to backup up *from* a QNAP, right?
Perhaps you could be more specific: what problems are you encountering?


(a) trying to figure out how to get a Bacula sd and fd installed on it
(b) dear gods, the POINTLESS OBFUSCATION of shared volumes ... it seems 
like they fucked around with it because they could.  Yes, it's ZFS 
internal filesystems, but they clearly have no idea what they're doing 
with ZFS.  I absolutely cannot imagine what they were thinking.




(a) is somewhat complicated by the fact that I need the sd compiled with 
attribute batching disabled, because batching is broken as currently 
implemented and as a result is not compatible with Galera clusters.



--
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for QNAP?

2022-01-01 Thread Andrea Venturoli



On 12/31/21 22:22, Phil Stracchino wrote:

Does anyone have any experience with, or useful tips for, using Bacula 
to back up a QNAP NAS with the QuTS "Hero" OS?


I'm backing up *to* a couple of QNAPs (running bacula SD daemon, and not 
with ZFS). I didn't choose them, but I'm quite happy about them.

IIC you are trying to backup up *from* a QNAP, right?
Perhaps you could be more specific: what problems are you encountering?

 bye
av.


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users