Bacula-users

Re: [Bacula-users] Bacula 7.0.4 director: Symbol not found _mysql_init on OSX 10.9 with MySQL 5.5.38

2014-06-26 05:47:15
Subject: Re: [Bacula-users] Bacula 7.0.4 director: Symbol not found _mysql_init on OSX 10.9 with MySQL 5.5.38
From: Kern Sibbald <kern AT sibbald DOT com>
To: Robert Oschwald <robertoschwald AT googlemail DOT com>, bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 26 Jun 2014 11:45:00 +0200
Hello,

I suspect that you had the MySQL development libraries loaded when you built Bacula, but on the machine where you are trying to run Bacula, you do not have the MySQL interface libraries loaded.  I am not sure what they are called on Mac, but they provide the shared object client libraries that allow Bacula to connect to the MySQL DB, which may be on the same system or somewhere on the network.  These libraries are supplied by whoever supplies MySQL.

On Linux systems, you can enter:

  ldd bacula-dir

and you will get a list of all the shared libraries that it needs, and one of them is probably missing.
On my system, (a slightly different Bacula version), it looks like:

    ...
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa122ad9000)
    libmysqlclient.so.18 => /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 (0x00007fa122591000)
    ...

On your system, I suspect that the equivalent of libmysqlclient.so.18 is missing.

Best regards,
Kern

On 06/26/2014 10:01 AM, Robert Oschwald wrote:
Currently working on the macports variants of Bacula 7.0.4.
FD, Bat and PostgreSQL8.4 server versions work flawlessly.

Building the MySQL variant with MySQL 5.5.38 compile ok, but when running the director, I get:

# bacula-dir -v -f
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
  Referenced from: /opt/local/lib/libbaccats-7.0.4.dylib
  Expected in: flat namespace

dyld: Symbol not found: _mysql_init
  Referenced from: /opt/local/lib/libbaccats-7.0.4.dylib
  Expected in: flat namespace

Bacula interrupted by signal 5: Trace/Breakpoint trap
Kaboom! bacula-dir, bacula-dir got signal 5 - Trace/Breakpoint trap at 26-Jun-2014 00:36:44. Attempting traceback.
Kaboom! exepath=/opt/local/sbin
Calling: /opt/local/sbin/btraceback /opt/local/sbin/bacula-dir 58689 /opt/local/var/bacula/working

All libs and bacula-dir are 64bit.

Any hints?


Rob



------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft


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

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users