Compilation error when using the --with-openssl option
Summary
Reproducibility | Platform | OS | OS Version | Product Version |
---|---|---|---|---|
always | AMD64 | Debian | 11.8 | 15.0.0 ef8b58df |
Description
I get this error when trying to link bjoblist
:
/u/martin/bacula-test/bacula/libtool --silent --tag=CXX --mode=link /bin/g++ -L../lib -L../findlib -o bjoblist bjoblist.o -lbac -lbacfind -rpath /u/ldisk/martin/bacula-test/run/bin -lpthread -ldl -ldl
/bin/ld: warning: libssl.so.3, needed by /u/martin/bacula-test/bacula/src/lib/.libs/libbac.so, not found (try using -rpath or -rpath-link)
/bin/ld: warning: libcrypto.so.3, needed by /u/martin/bacula-test/bacula/src/lib/.libs/libbac.so, not found (try using -rpath or -rpath-link)
/bin/ld: /u/martin/bacula-test/bacula/src/lib/.libs/libbac.so: undefined reference to `SSL_CTX_use_PrivateKey_file@OPENSSL_3.0.0'
...
Steps to Reproduce
- Install a private copy of OpenSSL.
- Configure bacula with --with-openssl=... pointing to the private copy of OpenSSL.
- Run make
Additional Information
I've attached a patch to add $(OPENSSL_LIBS)
in tools/Makefile.in
.
bjoblist-openssl.patch