Hello
I was trying to compile Bacula 9.0.3 with OpenSSL-1.0.2l
I following some tips from a friend in Brazil (Molinux) to install
OpenSSL-1.0.2l in another directory.
-----------------------------------------------------------------------------------
# Compile OpenSSL 1.0.2L version
cd /usr/src/
wget -c https://www.openssl.org/source/openssl-1.0.2l.tar.gz
tar xzvf openssl-1.0.2l.tar.gz
cd openssl-1.0.2l/
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl
make
make install
-----------------------------------------------------------------------------------
Then I've tried to compile Bacula 9.0.3 with OpenSSL
It looks Bacula recognizes the OpenSSL 1.0.2L and OpenSSL support.
#!/bin/bash
./configure \
--enable-smartalloc \
--with-postgresql \
--with-db-user=bacula \
--with-db-password=bacula \
--with-db-port=5432 \
--with-openssl=/usr/local/openssl \
--with-readline=/usr/include/readline \
--with-dump-email=em...@domain.com.br \
--with-job-email=em...@domain.com.br \
--sysconfdir=/etc/bacula \
--sbindir=/usr/bin \
--sbindir=/usr/sbin \
--with-scriptdir=/etc/bacula/scripts \
--with-plugindir=/etc/bacula/plugins \
--with-pid-dir=/etc/bacula/working \
--with-subsys-dir=/etc/bacula/working \
--with-working-dir=/etc/bacula/working \
--with-bsrdir=/etc/bacula/bootstrap \
--with-systemd \
--disable-conio \
--disable-nls \
--with-logdir=/var/log/bacula
Host: x86_64-pc-linux-gnu -- debian 9.1
Bacula version: Bacula 9.0.3 (08 August 2017)
Source code location: .
Install binaries: /usr/sbin
Install libraries: /usr/lib
Install config files: /etc/bacula
Scripts directory: /etc/bacula/scripts
Archive directory: /tmp
Working directory: /etc/bacula/working
PID directory: /etc/bacula/working
Subsys directory: /etc/bacula/working
Man directory: ${datarootdir}/man
Data directory: /usr/share
Plugin directory: /etc/bacula/plugins
C Compiler: gcc 6.3.0-18)
C++ Compiler: /usr/bin/g++ 4.9.2-10)
Compiler flags: -g -O2 -Wall -x c++ -fno-strict-aliasing
-fno-exceptions -fno-rtti
Linker flags:
Libraries: -lpthread -ldl -ldl
Statically Linked Tools: no
Statically Linked FD: no
Statically Linked SD: no
Statically Linked DIR: no
Statically Linked CONS: no
Database backends: PostgreSQL
Database port: 5432
Database name: bacula
Database user: bacula
Database SSL options:
Job Output Email: em...@domain.com.br
Traceback Email: em...@domain.com.br
SMTP Host Address: localhost
Director Port: 9101
File daemon Port: 9102
Storage daemon Port: 9103
Director User:
Director Group:
Storage Daemon User:
Storage DaemonGroup:
File Daemon User:
File Daemon Group:
Large file support: yes
Bacula conio support: no -lreadline -lhistory
readline support: yes
TCP Wrappers support: no
TLS support: yes
Encryption support: yes
ZLIB support: yes
LZO support: yes
enable-smartalloc: yes
enable-lockmgr: no
bat support: no
client-only: no
build-dird: yes
build-stored: yes
Plugin support: yes
AFS support: no
ACL support: yes
XATTR support: yes
systemd support: yes /etc/systemd/system
Batch insert enabled: PostgreSQL
-----------------------------------------------------------------------------------
But when I will to compile I got an error.
Making libbac.la ...
/usr/src/bacula-a/bacula/libtool --silent --tag=CXX --mode=link
/usr/bin/g++ -o libbac.la attr.lo base64.lo berrno.lo bsys.lo
binflate.lo bget_msg.lo bnet.lo bnet_server.lo bsock.lo bpipe.lo
bsnprintf.lo btime.lo cram-md5.lo crc32.lo crypto.lo daemon.lo edit.lo
fnmatch.lo guid_to_name.lo hmac.lo jcr.lo lex.lo lz4.lo alist.lo dlist.lo
md5.lo message.lo mem_pool.lo openssl.lo plugins.lo priv.lo queue.lo
bregex.lo runscript.lo rwlock.lo scan.lo sellist.lo serial.lo sha1.lo
sha2.lo signal.lo smartall.lo rblist.lo tls.lo tree.lo util.lo var.lo
watchdog.lo workq.lo btimers.lo worker.lo flist.lo address_conf.lo breg.lo
htable.lo lockmgr.lo devlock.lo output.lo bwlimit.lo -export-dynamic
-rpath /usr/lib -release 9.0.3 -lz -L/usr/local/openssl/lib -lssl
-lcrypto -lpthread -ldl -ldl -ldl
/usr/bin/ld: /usr/local/openssl/lib/libssl.a(s23_srvr.o): relocation
R_X86_64_PC32 against symbol `ssl23_get_client_hello' can not be used when
making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:206: recipe for target 'libbac.la' failed
make[1]: *** [libbac.la] Error 1
make[1]: ** Esperando que outros processos terminem.
make[1]: Leaving directory '/usr/src/bacula-a/bacula/src/lib'
====== Error in /usr/src/bacula-a/bacula/src/lib ======
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 1
root@debian:/usr/src/bacula-a/bacula# ls /usr/src/op
So, is it possible install Bacula 9.0.3 in Debian 9.1 or similar SO with
newers OpenSSL versions using this way, or this is not possible?
Best Regards
*Wanderlei Hüttel*
http://www.huttel.com.br
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users