Quantcast

BAT compiles with qtcreator but not with make

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

BAT compiles with qtcreator but not with make

David Westfall
I am trying to build Bacula to replace Bareos.  I am having problems compiling bat with the make command.

**** Steps Taken ****

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 - [hidden email]
Navy Email - [hidden email]
(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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: BAT compiles with qtcreator but not with make

Kern Sibbald

Hello,

In order to build any component of Bacula (console, bacula-dir, bacula-fd, bacula-sd, bat, ...) you must first correctly build the libraries, and from the error messages, it looks like something when wrong when building <bacula>/src/lib.

It could be helpful if you included the full output from your ./configure and the make.  Also, what version of Qt are you using?

By the way, would you mind telling me why you are replacing Bareos?

Best regards,
Kern


On 05/09/2017 03:33 PM, David Westfall wrote:
I am trying to build Bacula to replace Bareos.  I am having problems compiling bat with the make command.

**** Steps Taken ****

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 - [hidden email]
Navy Email - [hidden email]
(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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: BAT compiles with qtcreator but not with make

David Westfall
I got it to compile by using a different computer.  The computer I was using was upgraded from openSUSE 13.2 to 42.1 to 42.2.  So I am guessing that a package or library no longer controlled by a package is on the system and causing the problem.

Thank you for the help.
 

--
David Westfall
Red-Inc Email - [hidden email]
Navy Email - [hidden email]
(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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: BAT compiles with qtcreator but not with make

Kern Sibbald

OK great. I am glad your problem is solved.

Best regards,

Kern


On 05/10/2017 08:03 PM, David Westfall wrote:
I got it to compile by using a different computer.  The computer I was using was upgraded from openSUSE 13.2 to 42.1 to 42.2.  So I am guessing that a package or library no longer controlled by a package is on the system and causing the problem.

Thank you for the help.
 

--
David Westfall
Red-Inc Email - [hidden email]
Navy Email - [hidden email]
(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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Loading...