I am trying to build Bacula to replace Bareos. I am having problems compiling bat with the make command.
cd bacula/bacula
./configure --enable-bat --with-mysql --with-systemd
make #Errors looking for d_msg debug_level_tags init_msg
.
..
...
/atlas/devHome/dave/bacula/bacula/src/qt-console/main.cpp:93: undefined reference to `init_msg(JCR*, MSGS*, char* (*)(JCR*, char const*))'
obj/bat_conf.o: In function `save_resource(int, RES_ITEM*, int)':
/atlas/devHome/dave/bacula/bacula/src/qt-console/bat_conf.cpp:335: undefined reference to `debug_level_tags'
/atlas/devHome/dave/bacula/bacula/src/qt-console/bat_conf.cpp:336: undefined reference to `d_msg(char const*, int, long, char const*, ...)'
obj/mainwin.o: In function `MainWin::treeItemClicked(QTreeWidgetItem*, int)':
/atlas/devHome/dave/bacula/bacula/src/qt-console/mainwin.cpp:447: undefined reference to `d_msg(char const*, int, long, char const*, ...)'
...
..
.
#CONFIG += qt debug @QWT@
CONFIG += qt @QWT@
./configure --enable-bat --with-mysql --with-systemd
make #Errors looking for d_msg init_msg
.
..
...
main.cpp:(.text.startup+0x36c): undefined reference to `init_msg(JCR*, MSGS*, char* (*)(JCR*, char const*))'
obj/bat_conf.o: In function `save_resource(int, RES_ITEM*, int)':
bat_conf.cpp:(.text+0x643): undefined reference to `d_msg(char const*, int, long, char const*, ...)'
obj/mainwin.o: In function `MainWin::treeItemClicked(QTreeWidgetItem*, int)':
mainwin.cpp:(.text+0xe1f): undefined reference to `d_msg(char const*, int, long, char const*, ...)
...
..
.
./configure --with-mysql --with-systemd
make #No Errors
cd src/qt-console
qtcreator
bat.pro #Configure Project, Build with no errors
**** Configuration ****
Configuration on Tue May 9 09:21:01 EDT 2017:
Host: x86_64-unknown-linux-gnu -- suse 42.2
Bacula version: Bacula 7.4.7 (16 March 2017)
Source code location: .
Install binaries: /sbin
Install libraries: /lib64
Install config files: /etc/bacula
Scripts directory: /etc/bacula
Archive directory: /tmp
Working directory: /opt/bacula/working
PID directory: /var/run
Subsys directory: /var/lock/subsys
Man directory: ${datarootdir}/man
Data directory: /usr/share
Plugin directory: /lib64
C Compiler: gcc Linux)
C++ Compiler: /usr/bin/g++ Linux)
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: MySQL
Database port:
Database name: bacula
Database user: bacula
Database SSL options:
Job Output Email: root@localhost
Traceback Email: root@localhost
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: yes -ltinfo
readline support: no
TCP Wrappers support: no
TLS support: yes
Encryption support: yes
ZLIB support: yes
LZO support: no
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 /run/systemd/system
Batch insert enabled: MySQL
--
David Westfall
Red-Inc Email - David.Westfall AT Red-Inc DOT us
(301) 342-9273