symbol lookup error in libbaccats-5.2.5.so

Bug #949508 reported by Tobin Davis
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
bacula (Ubuntu)
Fix Released
High
Adam Conrad

Bug Description

On armel & armhf, running "bacula-dir -t -c /etc/bacula/bacula-dir.conf" fails with:
bacula-dir: symbol lookup error: /usr/lib/bacula/libbaccats-5.2.5.so: undefined symbol: mysql_thread_safe

ldd reports:
# ldd /usr/lib/bacula/libbaccats-5.2.5.so
        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6f2b000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6e4b000)
        /lib/arm-linux-gnueabihf/ld-linux.so.3 (0xb6fe6000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6e3a000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6dd0000)

Works on amd64:
$ ldd /usr/lib/bacula/libbaccats-5.2.5.so
        linux-vdso.so.1 => (0x00007fffc4961000)
        libmysqlclient.so.18 => /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 (0x00007f72165fd000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f72162fd000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7215f3c000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7215d26000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7215b0f000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f721590a000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f72156ed000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f72153f3000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7216d4b000)
$ sudo bacula-dir -t -c /etc/bacula/bacula-dir.conf
$

Conf file attached.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bacula-director-mysql 5.2.5-0ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-1500.3-armadaxp 3.0.17
Uname: Linux 3.0.0-1500-armadaxp armv7l
ApportVersion: 1.94-0ubuntu1
Architecture: armhf
Date: Wed Mar 7 15:21:32 2012
ProcEnviron:
 SHELL=/bin/bash
 TERM=screen-bce
 LANG=en_US.UTF-8
 LANGUAGE=en_US:
SourcePackage: bacula
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Tobin Davis (gruemaster) wrote :
Revision history for this message
Tobin Davis (gruemaster) wrote :

Fails on i386 as well.

tags: added: i386
Tobin Davis (gruemaster)
Changed in bacula (Ubuntu):
importance: Undecided → High
Changed in bacula (Ubuntu):
status: New → Confirmed
Tobin Davis (gruemaster)
Changed in bacula (Ubuntu):
assignee: nobody → Scott Moser (smoser)
Revision history for this message
Tobin Davis (gruemaster) wrote :

It looks like the issue is when compiling against multiarch enabled libraries. The initial patch in 5.2.5-0ubuntu1 only fixes x86_64, but not the true problem.

Revision history for this message
Adam Conrad (adconrad) wrote :

I've got a fix for this testing locally.

Adam Conrad (adconrad)
Changed in bacula (Ubuntu):
assignee: Scott Moser (smoser) → Adam Conrad (adconrad)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bacula - 5.2.5-0ubuntu4

---------------
bacula (5.2.5-0ubuntu4) precise; urgency=low

  * Drop mysql-search-lib-x86_64-linux-gnu.patch in favour of a new
    mysql-use-mysql_config.patch that uses mysql_config to find our
    various search paths, and fix multiarch builds (LP: #949508)
 -- Adam Conrad <email address hidden> Wed, 07 Mar 2012 19:51:59 -0700

Changed in bacula (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.