Bacula-users

Re: [Bacula-users] compile of bacula 5.2.13 failing

2016-05-21 23:24:29
Subject: Re: [Bacula-users] compile of bacula 5.2.13 failing
From: Randy Katz <rkatz AT simplicityhosting DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Sat, 21 May 2016 20:23:15 -0700
the install on my directors has it. If I had to guess it looks related to the Windows backups, check the record, they all seem to have "x-schema:#V s s C o m p o n e n t M e t a d a t a" :

| RestoreObject | CREATE TABLE `RestoreObject` (
  `RestoreObjectId` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `ObjectName` blob NOT NULL,
  `RestoreObject` longblob NOT NULL,
  `PluginName` tinyblob NOT NULL,
  `ObjectLength` int(11) DEFAULT '0',
  `ObjectFullLength` int(11) DEFAULT '0',
  `ObjectIndex` int(11) DEFAULT '0',
  `ObjectType` int(11) DEFAULT '0',
  `FileIndex` int(10) unsigned DEFAULT '0',
  `JobId` int(10) unsigned NOT NULL,
  `ObjectCompression` int(11) DEFAULT '0',
  PRIMARY KEY (`RestoreObjectId`),
  KEY `JobId` (`JobId`)
) ENGINE=InnoDB AUTO_INCREMENT=224 DEFAULT CHARSET=latin1 |

a record:

|             223 | job_metadata.xml | < B A C K U P _ C O M P O N E N T S   x m l n s = " x - s c h e m a : # V s s C o m p o n e n t M e t a d a t a "   v e r s i o n = " 1 . 2 "   b o o t a b l e S y s t e m S t a t e B a c k u p = " y e s "   s e l e c t C o m p o n e n t s = " y e s "   b a c k u p T y p e = " i n c r e m e n t a l "   p a r t i a l F i l e S u p p o r t = " n o "   s n a p s h o t S e t I d = " 5 d 0 7 0 1 7 c - e 5 0 d - 4 9 4 8 - 9 b 9 9 - d 2 5 b 3 b 6 e a 1 2 4 " / >      | *all*      |          462 |              462 |  1463804807 |         25 |       693 |  6721 |                 0 |




On 5/21/2016 3:57 PM, Jerry Lowry wrote:
Well, I went back and checked.  zlib-devel is installed.  When I look at the config.log file it does show that zlib is included:
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/u
sr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstr
ap --enable-shared --enable-threads=posix --enable-checking=release --with-syste
m-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-
object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=
gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --en
able-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/ja
va/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tun
e=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix

But i don't see a config parameter that lets me set it.

The basis for this test system is to build a base level bacula install.  I then want to look at the database to see if there is actually a table RestoreObject. I have two working systems, but one fails doing the mysqldump of the catalog because it says this table is not found.  All that shows up in the directory for this table is the .frm and .ibd files.  If I try to run the mysqlcheck on the database all the tables are okay except this table.
What is this table used for?

Can you help me figure this out?

thanks.

On Sat, May 21, 2016 at 12:21 AM, Davide Franco <bacula-dev AT dflc DOT ch> wrote:

Hi Jerry,

Install zlib-devel package then run again the combo ./configure && make ...everything should be fine after this.

Regards

Davide

On May 21, 2016 09:18, "Kern Sibbald" <kern AT sibbald DOT com> wrote:
Hello,

Most likely you have something out of sync with your ./configure.  According to the config.out file lzo is not enabled, but the link is trying to include it.  So, you probably should redo your ./configure and do a make again, and it will probably work.  On the other hand if you want lzo compression (possibly used for the mysql client interface, then you must make sure the lzo development libraries are loaded on your system.

Best regards,
Kern


On 05/20/2016 06:33 PM, Jerry Lowry wrote:
List,
 I am setting up a test server for bacula and I am getting the following error:

Making libbaccats-mysql.la...
/usr/local/bacula-5.2.13/libtool --silent --tag=cxx --mode=link /usr/bin/g++ -D_BDB_PRIV_INTERFACE_  -o libbaccats-mysql.ls mysql.lo -export-dynamic -rpath /usr/lib64 -release 5.2.13 -soname libbaccats-5.2.13.so -R /usr/lib64/mysql -L/usr/lib64/mysql -lmysqlclient_r -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status

I have use this same configure script on a couple other systems that are running in production right now without any problems.

Here is the config.out file.

Configuration on Mon May 16 15:17:12 PDT 2016:

   Host:             x86_64-unknown-linux-gnu -- redhat
   Bacula version:         Bacula 5.2.13 (19 February 2013)
   Source code location:     .
   Install binaries:         /usr/bacula/bin
   Install libraries:         /usr/lib64
   Install config files:     /usr/bacula/bin
   Scripts directory:         /usr/bacula/bin
   Archive directory:         /tmp
   Working directory:         /usr/bacula/bin/working
   PID directory:         /var/run/bacula
   Subsys directory:         /var/run/bacula/working
   Man directory:         ${datarootdir}/man
   Data directory:         /usr/share
   Plugin directory:         /usr/lib64
   C Compiler:             gcc 4.4.7
   C++ Compiler:         /usr/bin/g++ 4.4.7
   Compiler flags:          -g -O2 -Wall -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

   Job Output Email:         name AT domain DOT com
   Traceback Email:         name AT domain DOT com
   SMTP Host Address:         mail.domain.com

   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
   readline support:         no
   TCP Wrappers support:     no
   TLS support:          no
   Encryption support:         no
   ZLIB support:         no
   LZO support:          no
   enable-smartalloc:         yes
   enable-lockmgr:         no
   bat support:          no
   enable-gnome:         no
   enable-bwx-console:         no
   enable-tray-monitor:      no
   client-only:          no
   build-dird:             yes
   build-stored:         yes
   Plugin support:         yes
   AFS support:          no
   ACL support:          no
   XATTR support:         yes
   Python support:         no
   systemd support:         no
   Batch insert enabled:     None

  What am I missing?

thanks



------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j


_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users




------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j


_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users