From nobody@FreeBSD.org  Mon May 30 12:24:05 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3C3E8106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2011 12:24:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 2D4B98FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2011 12:24:05 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4UCO40o073175
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2011 12:24:04 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p4UCO4r2073174;
	Mon, 30 May 2011 12:24:04 GMT
	(envelope-from nobody)
Message-Id: <201105301224.p4UCO4r2073174@red.freebsd.org>
Date: Mon, 30 May 2011 12:24:04 GMT
From: Graham Bradley <gbradley@rocketmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: inconsistent output from ldd
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157424
>Category:       bin
>Synopsis:       inconsistent output from ldd(1)
>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:  Mon May 30 14:33:24 UTC 2011
>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:
