I am trying to build Bacula to replace Bareos. I am having problems
compiling bat with the make command.
**** Steps Taken ****
git clone git.bacula.org/bacula.git
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*, ...)'
...
..
.
vi src/qt-console/bat.pro.in
#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.westf...@red-inc.us
Navy Email - david.westfall....@navy.mil <david.westf...@navy.mil>
(301) 342-9273
--
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to which they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any
action in reliance on the contents of this information is strictly
prohibited.
------------------------------------------------------------------------------
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