Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 May 2011 12:24:04 GMT
From:      Graham Bradley <gbradley@rocketmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/157424: inconsistent output from ldd
Message-ID:  <201105301224.p4UCO4r2073174@red.freebsd.org>
Resent-Message-ID: <201105301230.p4UCUBFx028429@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         157424
>Category:       misc
>Synopsis:       inconsistent output from ldd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 30 12:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Graham Bradley
>Release:        8.2-RELEASE
>Organization:
>Environment:
FreeBSD mrtoad.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
symptom: various commands that work on the host failed on a jail (mrtoad).  e.g.

mrtoad# gmd5sum
/libexec/ld-elf.so.1: /usr/local/lib/libintl.so.9: unsupported file layout

Assuming this is a dependency issue, tried...

ldd `which gmd5sum`
/usr/local/bin/gmd5sum:
        libintl.so.9 => not found (0x0)mrtoad# ldd -a /usr/local/bin/bash
        libc.so.7 => /usr/lib32/libc.so.7 (0x2809a000)

ok, except that the libintl.so.9 file is there, and if I try bash....
`
mrtoad# ldd `which bash`
/usr/local/bin/bash:
        libncurses.so.8 => /lib/libncurses.so.8 (0x8006e3000)
        libintl.so.9 => /usr/local/lib/libintl.so.9 (0x800830000)
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x800939000)
        libc.so.7 => /lib/libc.so.7 (0x800b33000)

the library file libintl.so.9 is found and bash works ok.

>How-To-Repeat:
Install 8.2 from dvd onto empty disc.

create a jail from scratch using the ezjail-admin.

I have suspicion that I installed some items by storing the pkg files?
(No bad dependencies reported on pkg_add.)
>Fix:
Fix: deinstall and reinstall of sysutils/coreutils  by....
cd /usr/ports/sysutils/coreutils
make install
make deinstall
make reinstall

This is a fix, but I'd like to understand how ldd can find the lib for one installed command but not the other.  Is this truly a bug (tables getting out of step) or have I overlooked something?

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105301224.p4UCO4r2073174>