On 2022-01-02 12:46, Radosław Korzeniewski wrote:
Hello,

sob., 1 sty 2022 o 23:52 Phil Stracchino <ph...@caerllewys.net> napisał(a):

(...)
/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


As I understand this issue is that glibc does not support dlopen with
static linking as the code which implements dlopen is dynamically linked
only.
I could be very wrong about my understanding.


/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?


I think it is not very well maintained as very few users require and use it. The solution to it would be to disable a plugin support. I'm not sure if
such an option is currently available.

The problem is with the openssl support.
File daemon would probably statically compile without openssl support.
Last time I did that was with the 7.x version of bacula.

I would certainly like to be able to statically compile file daemon.
It would make preparations for bare metal restore using Bacula much
simpler.

Right now, if encryption is used for transport between bacula
components, one would need to copy all the libraries file daemon
depends on and all their dependencies including openssl libraries
which are loaded using dlopen(3) and of course, all their dependencies
and so on...


Regards!

--
Josip Deanovic


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

Reply via email to