Linking of Bacula 7.4.x on Ubuntu 16.04 has the same problem described in this bug report.
It seems to me that something is wrong with the Ubuntu 16.04 packaging of MySQL. Bacula needs libmysqlclient_r.so to work correctly, and that shared library is not installed on Ubuntu 16.04 (at least not on my system). Thus when linking the Bacula catalog library, the mysql_init symbol is not defined. The "fix" in #22 from Marcos may work, but then the client library will be linked directly into Bacula rather than using the system shared object. Perhaps the libmysqlclient_r.so has been replaced in Ubuntu 16.04 with libmysqlclient.so, but if this is the case, it is somehow confusing the Bacula MySQL build. Consequently, as far as I am concerned, either the Ubuntu 16.04 package for MySQL is broken or it is changed in a way that is no longer compatible with Bacula or Bacula is no longer compatible with your released MySQL. Can someone clarify this point for me? Kern Sibbald Bacula Project Manager -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1570923 Title: bacula-dir won't start with "undefined symbol: mysql_init" To manage notifications about this bug go to: https://bugs.launchpad.net/bacula/+bug/1570923/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs