[bug-notifications] [amanda 0004970]: Amanda 3.3.1 fails because it is built against system libglib-2.0 instead of csw's libglib-2.0.so.0
Mantis Bug Tracker
noreply at opencsw.org
Thu Jun 28 18:00:30 CEST 2012
A NOTE has been added to this issue.
======================================================================
https://www.opencsw.org/mantis/view.php?id=4970
======================================================================
Reported By: rodbruce
Assigned To:
======================================================================
Project: amanda
Issue ID: 4970
Category: upgrade
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-06-28 17:20 CEST
Last Modified: 2012-06-28 18:00 CEST
======================================================================
Summary: Amanda 3.3.1 fails because it is built against
system libglib-2.0 instead of csw's libglib-2.0.so.0
Description:
After upgrading to 3.3.1 when I try to run amcheck I get:
ld.so.1: amcheck: fatal: relocation error: file
/opt/csw/lib/amanda/libamanda-3.3.1.so: symbol g_slist_free_full:
referenced symbol not found
Using ldd I can see that libamanda-3.3.1.so is using the system
libglib-2.0:
ldd /opt/csw/lib/amanda/libamanda-3.3.1.so
libcurl.so.4 => /opt/csw/lib/i386/libcurl.so.4
libidn.so.11 => /opt/csw/lib/i386/libidn.so.11
libssl.so.1.0.0 => /opt/csw/lib/i386/libssl.so.1.0.0
libcrypto.so.1.0.0 => /opt/csw/lib/i386/libcrypto.so.1.0.0
libz.so.1 => /opt/csw/lib/pentium_pro+mmx/libz.so.1
libm.so.2 => /lib/libm.so.2
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0
libpthread.so.1 => /lib/libpthread.so.1
libthread.so.1 => /lib/libthread.so.1
librt.so.1 => /lib/librt.so.1
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libresolv.so.2 => /lib/libresolv.so.2
libintl.so.8 => /opt/csw/lib/i386/libintl.so.8
libc.so.1 => /lib/libc.so.1
libiconv.so.2 => /opt/csw/lib/libiconv.so.2
libdl.so.1 => /lib/libdl.so.1
libaio.so.1 => /lib/libaio.so.1
libmd.so.1 => /lib/libmd.so.1
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
======================================================================
----------------------------------------------------------------------
(0009988) maciej (manager) - 2012-06-28 18:00
https://www.opencsw.org/mantis/view.php?id=4970#c9988
----------------------------------------------------------------------
I tried to reproduce this on the buildfarm:
maciej at testing10x [testing10x]:~ $ ldd
/opt/csw/lib/amanda/libamanda-3.3.1.so
libcurl.so.4 => /opt/csw/lib/i386/libcurl.so.4
libidn.so.11 => /opt/csw/lib/i386/libidn.so.11
libssl.so.1.0.0 => /opt/csw/lib/i386/libssl.so.1.0.0
libcrypto.so.1.0.0 => /opt/csw/lib/i386/libcrypto.so.1.0.0
libz.so.1 => /opt/csw/lib/pentium_pro+mmx/libz.so.1
libm.so.2 => /lib/libm.so.2
libgmodule-2.0.so.0 => /opt/csw/lib/i386/libgmodule-2.0.so.0
libgobject-2.0.so.0 => /opt/csw/lib/i386/libgobject-2.0.so.0
libgthread-2.0.so.0 => /opt/csw/lib/i386/libgthread-2.0.so.0
libpthread.so.1 => /lib/libpthread.so.1
libthread.so.1 => /lib/libthread.so.1
librt.so.1 => /lib/librt.so.1
libglib-2.0.so.0 => /opt/csw/lib/i386/libglib-2.0.so.0
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libresolv.so.2 => /lib/libresolv.so.2
libintl.so.8 => /opt/csw/lib/i386/libintl.so.8
libc.so.1 => /lib/libc.so.1
libiconv.so.2 => /opt/csw/lib/libiconv.so.2
libdl.so.1 => /lib/libdl.so.1
libaio.so.1 => /lib/libaio.so.1
libmd.so.1 => /lib/libmd.so.1
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
So the difference is that on your system you get:
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
and here I get:
libglib-2.0.so.0 => /opt/csw/lib/i386/libglib-2.0.so.0
So there must be a difference between your system and the buildfarm.
A couple things to check. The RPATH:
maciej at testing10x [testing10x]:~ $ /usr/ccs/bin/dump -Lv
/opt/csw/lib/amanda/libamanda-3.3.1.so | grep RPATH
[23] RPATH /opt/csw/lib/$ISALIST:/opt/csw/lib
...looks good. The library file is present...
maciej at testing10x [testing10x]:~ $ ls -l /opt/csw/lib/libglib-2.0.so.0
lrwxrwxrwx 1 root root 23 Feb 13 16:38
/opt/csw/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.2800.8
maciej at testing10x [testing10x]:~ $ ls -l
/opt/csw/lib/libglib-2.0.so.0.2800.8
-rwxr-xr-x 1 root bin 1504536 Dec 11 2011
/opt/csw/lib/libglib-2.0.so.0.2800.8
...and the package is installed.
maciej at testing10x [testing10x]:~ $ /usr/sbin/pkgchk -l -p
/opt/csw/lib/libglib-2.0.so.0
NOTE: Couldn't lock the package database.
Pathname: /opt/csw/lib/libglib-2.0.so.0
Type: symbolic link
Source of link: libglib-2.0.so.0.2800.8
Referenced by the following packages:
CSWlibglib2-0-0
Current status: installed
Can you run the same and see if you get the same results?
More information about the bug-notifications
mailing list