From eric@knecht.neophilic.com  Mon Jan  9 21:59:40 2006
Return-Path: <eric@knecht.neophilic.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D09E716A420
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Jan 2006 21:59:40 +0000 (GMT)
	(envelope-from eric@knecht.neophilic.com)
Received: from knecht.neophilic.com (dsl081-247-036.sfo1.dsl.speakeasy.net [64.81.247.36])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E619B43D48
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Jan 2006 21:59:39 +0000 (GMT)
	(envelope-from eric@knecht.neophilic.com)
Received: from knecht.neophilic.com (localhost [127.0.0.1])
	by knecht.neophilic.com (8.13.4/8.13.5) with ESMTP id k09LxVsD001284
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 9 Jan 2006 13:59:36 -0800 (PST)
Received: (from eric@localhost)
	by knecht.neophilic.com (8.13.4/8.13.4/Submit) id k09LxVcA001283;
	Mon, 9 Jan 2006 13:59:31 -0800 (PST)
	(envelope-from eric)
Message-Id: <200601092159.k09LxVcA001283@knecht.neophilic.com>
Date: Mon, 9 Jan 2006 13:59:31 -0800 (PST)
From: Eric Allman <eric@sendmail.org>
Reply-To: Eric Allman <eric@sendmail.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: amd64 startup not initializing 32-bit librarys in ldconfig
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         91571
>Category:       amd64
>Synopsis:       amd64 startup not initializing 32-bit librarys in ldconfig
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    matteo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 09 22:00:14 GMT 2006
>Closed-Date:    Thu Mar 09 06:57:06 GMT 2006
>Last-Modified:  Thu Mar 09 06:57:06 GMT 2006
>Originator:     Eric Allman
>Release:        FreeBSD 6.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD knecht.neophilic.com 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Jan 7 14:01:13 PST 2006 root@newknecht.neophilic.com:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
	It appears that the system startup scripts (notably /etc/rc.d/ldconfig)
	do not run a pass over the 32-bit libraries (e.g., /usr/lib32,
	/usr/local/lib32).  As a result, 32-bit binaries immediately fail with
	"/usr/libexec/ld-elf.so.1: Shared object "libc.so.4" not found,
	required by ...".

>How-To-Repeat:
	Start up the system.
	Execute a 32-bit binary.

>Fix:

	Workaround is easy: hard-code the "ldconfig -32 ..." call in
	/etc/rc.local.
	True fix is probably to replicate /etc/rc.d/ldconfig into ldconfig32
	and do a proper search there.  Or maybe extend the existing script.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->matteo 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Sat Feb 11 11:36:28 UTC 2006 
Responsible-Changed-Why:  
I'll work on this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91571 
State-Changed-From-To: open->patched 
State-Changed-By: matteo 
State-Changed-When: Mon Feb 13 21:12:18 UTC 2006 
State-Changed-Why:  
Fixed in HEAD 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91571 
State-Changed-From-To: patched->	 closed 
State-Changed-By: matteo 
State-Changed-When: Thu Mar 9 06:56:40 UTC 2006 
State-Changed-Why:  
fixed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91571 
>Unformatted:
