I’ve seen this issue before. On Debian Wheezy 7.9 x86.
I *think* it is a conflict between x86 and x64 versions of the libs. For some reason, when you compile on x86 (am I to assume you are running on x86 too?)
configure does not fail when it should. It clearly cannot find the binaries it needs, so the resulting make file in the src/cat directory has MYSQL_LIBS = {nothing} when it should have something like: MYSQL_LIBS = -L/usr/lib/i386-linux-gnu -lmysqlclient_r
So, it compiles just fine, but MySQL connectivity is broken.
If you’re on a 64-bit system, however, that blows my theory on why it happens.
However, I *know* one fix is to fix the makefile, and recompile. I’ve done it.
If you’ve installed from RPM, I am not sure how you can fix this issue except (perhaps) if you ARE indeed on x86, moving to an x64 OS. (This may be overkill,
and hopefully someone has a better answer to this).
Although, it was previously commented that “compiling from source is a really bad idea” in this case, the fix is simple. Put MYSQL_LIBS = -L/usr/lib/i386-linux-gnu
-lmysqlclient_r in the make file under /src/cat.
Since you are installing from RPMs, I hope someone else on this list has the fix for you.
Michael Munger, dCAP, MCPS, MCNPS, MBSS
High Powered Help, Inc.
Microsoft Certified Professional
Microsoft Certified Small Business Specialist
Digium Certified Asterisk Professional
michael AT highpoweredhelp DOT com
From: Hector Javier Agudelo Corredor [mailto:hejaco AT gmail DOT com]
Sent: Friday, January 29, 2016 7:42 PM
To: bacula-users AT lists.sourceforge DOT net
Subject: [Bacula-users] Error Director /usr/lib64/libbaccats-7.4.0.so: undefined symbol: mysql_init
HI team
I have installed bacula 7.4 with postgres 5.7.10 but when I set the mysql password in the file director.
dbname = "bacula"; dbuser = "root"; dbpassword = "Bacula2016.,"
But when I test settings file manager with the command
bacula-dir sudo -tc /etc/bacula/bacula-dir.conf
previously install the following packages:
gcc gcc-c ++ eadline-devel zlib-devel libacl mtx-devel and openssl-devel postfix
How I can fix this error? that the director does not connect to the database.