Bug 157424 - inconsistent output from ldd(1)
Summary: inconsistent output from ldd(1)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 8.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 13:30 UTC by graham bradley
Modified: 2017-12-31 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description graham bradley 2011-05-30 13:30:10 UTC
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.

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?
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.)
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:42 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped