From twp@ma-1.rootsweb.com Thu Apr 22 00:40:36 1999
Return-Path: <twp@ma-1.rootsweb.com>
Received: from ma-1.rootsweb.com (ma-1.rootsweb.com [209.192.148.153])
	by hub.freebsd.org (Postfix) with ESMTP id E026E14EA1
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Apr 1999 00:40:33 -0700 (PDT)
	(envelope-from twp@ma-1.rootsweb.com)
Received: (from twp@localhost)
	by ma-1.rootsweb.com (8.9.3/8.9.3) id DAA02875;
	Thu, 22 Apr 1999 03:38:02 -0400 (EDT)
Message-Id: <199904220738.DAA02875@ma-1.rootsweb.com>
Date: Thu, 22 Apr 1999 03:38:02 -0400 (EDT)
From: Tim Pierce <twp@rootsweb.com>
Sender: twp@ma-1.rootsweb.com
Reply-To: twp@rootsweb.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: /etc/rc uses wrong path for a.out libraries
X-Send-Pr-Version: 3.2

>Number:         11274
>Category:       i386
>Synopsis:       default FreeBSD 3.1 installation can't run a.out binaries.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dcs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 22 00:40:01 PDT 1999
>Closed-Date:    Fri May 7 21:25:01 PDT 1999
>Last-Modified:  Fri May  7 21:25:49 PDT 1999
>Originator:     Tim Pierce
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
RootsWeb Genealogical Data Cooperative
>Environment:

	

>Description:

	When /etc/rc creates ld.so.hints, the default search path for
	system libraries is /usr/lib/aout.  However, FreeBSD
	3.1-RELEASE puts a.out system libraries in
	/usr/lib/compat/aout.  Old a.out binaries can't be run until
	/etc/rc is changed to reflect the correct location of a.out
	libraries.

	See also PR# i386/8670 for a related issue.

>How-To-Repeat:

	Execute or try to build any a.out binary on a 3.1-RELEASE
	system.

>Fix:
	
	This patch to /etc/rc resolves the problem.  (If /usr/lib/aout
	is the correct place for a.out libraries, then /etc/rc should
	not be changed, but the libraries in /usr/lib/compat/aout
	should be moved.)

--- /etc/rc-3.1	Thu Apr 22 03:26:17 1999
+++ /etc/rc	Thu Apr 22 03:11:29 1999
@@ -281,7 +281,7 @@
 	if [ X"`sysctl -n hw.machine`" = X"i386" ]; then
 		# Default the a.out ldconfig path.
 		: ${ldconfig_paths_aout=${ldconfig_paths}}
-		_LDC=/usr/lib/aout
+		_LDC=/usr/lib/compat/aout
 		for i in $ldconfig_paths_aout; do
 			if test -d $i; then
 				_LDC="${_LDC} $i"

>Release-Note:
>Audit-Trail:

From: "Daniel C. Sobral" <dcs@newsguy.com>
To: twp@rootsweb.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: i386/11274: /etc/rc uses wrong path for a.out libraries
Date: Sat, 24 Apr 1999 06:05:20 +0900

 Tim Pierce wrote:
 > 
 > >Description:
 > 
 >         When /etc/rc creates ld.so.hints, the default search path for
 >         system libraries is /usr/lib/aout.  However, FreeBSD
 >         3.1-RELEASE puts a.out system libraries in
 >         /usr/lib/compat/aout.  Old a.out binaries can't be run until
 >         /etc/rc is changed to reflect the correct location of a.out
 >         libraries.
 > 
 >         See also PR# i386/8670 for a related issue.
 
 Err... description doesn't match reality. Could you please send
 /etc/defaults/rc.conf, /etc/rc.conf and /etc/rc.conf.local (if you
 have it)?
 
 --
 Daniel C. Sobral			(8-DCS)
 dcs@newsguy.com
 dcs@freebsd.org
 
 	"Well, Windows works, using a loose definition of 'works'..."
 
Responsible-Changed-From-To: freebsd-bugs->dcs 
Responsible-Changed-By: dcs 
Responsible-Changed-When: Sat Apr 24 12:09:12 PDT 1999 
Responsible-Changed-Why:  
I'm tracking it. 

From: Tim Pierce <twp@rootsweb.com>
To: "Daniel C. Sobral" <dcs@newsguy.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: i386/11274: /etc/rc uses wrong path for a.out libraries
Date: Wed, 28 Apr 1999 17:56:23 -0400

 Hi, Dan -
 
 Sorry for the delay in responding.
 
 On Sat, Apr 24, 1999 at 06:05:20AM +0900, Daniel C. Sobral wrote:
 > Tim Pierce wrote:
 > > 
 > > >Description:
 > > 
 > >         When /etc/rc creates ld.so.hints, the default search path for
 > >         system libraries is /usr/lib/aout.  However, FreeBSD
 > >         3.1-RELEASE puts a.out system libraries in
 > >         /usr/lib/compat/aout.  Old a.out binaries can't be run until
 > >         /etc/rc is changed to reflect the correct location of a.out
 > >         libraries.
 > > 
 > >         See also PR# i386/8670 for a related issue.
 > 
 > Err... description doesn't match reality.
 
 You're right.  When I backed out my changes and rebooted from a
 default configuration, the system built an ld cache with all the
 correct paths.  The distribution was not at fault.
 
 Some time before that bug report, when configuring my upgraded system,
 I had manually rebuilt the ld cache from the command line.  At the
 time I wasn't really aware of the aout/ELF transition and didn't check
 /etc/defaults/rc.conf, so I must have run ldconfig with the wrong
 paths, and built a bad cache myself.  I'm sorry about the bogus bug
 report.
 
 -- 
 Regards,
 Tim Pierce
 RootsWeb Genealogical Data Cooperative
 system obfuscator and hack-of-all-trades
 
State-Changed-From-To: open->closed 
State-Changed-By: dcs 
State-Changed-When: Fri May 7 21:25:01 PDT 1999 
State-Changed-Why:  
Originator reports PR bogus. 
>Unformatted:
