From wrsomsky@halcyon.com Fri May 21 21:54:06 1999
Return-Path: <wrsomsky@halcyon.com>
Received: from smtp04.nwnexus.com (smtp04.nwnexus.com [206.63.63.52])
	by hub.freebsd.org (Postfix) with ESMTP id B751514C18
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 21 May 1999 21:54:04 -0700 (PDT)
	(envelope-from wrsomsky@halcyon.com)
Received: from gramarye (evt-lx100-ip46.nwnexus.net [204.57.235.46])
	by smtp04.nwnexus.com (8.8.8/8.8.8) with ESMTP id VAA08072
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 21 May 1999 21:53:58 -0700 (PDT)
Received: (from wrsomsky@localhost)
	by gramarye (8.9.3/8.9.3) id TAA17465;
	Fri, 21 May 1999 19:17:29 -0700 (PDT)
	(envelope-from wrsomsky)
Message-Id: <199905220217.TAA17465.gramarye.wrsomsky@halcyon.com>
Date: Fri, 21 May 1999 19:17:29 -0700 (PDT)
From: "William R. Somsky" <wrsomsky@halcyon.com>
Reply-To: wrsomsky@halcyon.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Patch for aout "ld.so" difficulties
X-Send-Pr-Version: 3.2

>Number:         11828
>Category:       bin
>Synopsis:       Patch for aout "ld.so" difficulties
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 21 22:00:00 PDT 1999
>Closed-Date:    Wed Jun 23 17:23:52 PDT 1999
>Last-Modified:  Wed Jun 23 17:24:10 PDT 1999
>Originator:     William R. Somsky
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
>Environment:

	FreeBSD 3.2-STABLE machine trying to maintain compatibilty
	w/ aout executables.

>Description:

	A buildworld/installworld fails to build and install
	/usr/libexec/ld.so for back aout compatibility,
	even if COMPAT22=YES is defined in /etc/make.conf

>How-To-Repeat:

	Build and Install "world" on a 3.2-STABLE box with
	COMPAT22 defined, but no pre-existing /usr/libexec/ld.so
	(which would mask it not being built and installed).

>Fix:

	Proposed patch follows:

*** /usr/src/libexec/Makefile.old	Fri May 21 19:08:23 1999
--- /usr/src/libexec/Makefile		Fri May 21 19:09:32 1999
***************
*** 11,17 ****
  SUBDIR+=mail.local smrsh
  .endif
  
! .if ${OBJFORMAT} == aout
  SUBDIR+=rtld-aout
  .endif
  
--- 11,17 ----
  SUBDIR+=mail.local smrsh
  .endif
  
! .if ${OBJFORMAT} == aout || defined(COMPAT1X) || defined(COMPAT20) || defined(COMPAT21) || defined(COMPAT22)
  SUBDIR+=rtld-aout
  .endif
  


>Release-Note:
>Audit-Trail:

From: Ruslan Ermilov <ru@ucb.crimea.ua>
To: "William R. Somsky" <wrsomsky@halcyon.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/11828: Patch for aout "ld.so" difficulties
Date: Sat, 22 May 1999 10:12:44 +0300

 Apparently, ld.so will be built and installed during ``make world''
 if you specify -DWANT_AOUT.
 
 In 3.1, legacy support is built by default, and one needs to specify
 -DNOAOUT to avoid this.  This has been changed in 3.2:
 
 +------------------
 | # head /usr/src/UPDATING
 | Updating Information for FreeBSD current users
 | 
 | This file is maintained by imp@village.org.  Please send new entries
 | directly to him.  See end of file for further details.
 | 
 | 19990510:
 | 	Previously, one would define "NOAOUT" to keep from building
 | 	the legacy a.out bits.  Now one would define "WANT_AOUT" to
 | 	build them.
 +------------------
 
 
 -- 
 Ruslan Ermilov		Sysadmin and DBA of the
 ru@ucb.crimea.ua	United Commercial Bank
 +380.652.247.647	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
 

From: "William R. Somsky" <wrsomsky@halcyon.com>
To: Ruslan Ermilov <ru@ucb.crimea.ua>
Cc: "William R. Somsky" <wrsomsky@halcyon.com>,
	FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/11828: Patch for aout "ld.so" difficulties
Date: Sat, 22 May 1999 02:18:46 -0700

 On Sat, May 22, 1999 at 10:12:44AM +0300, Ruslan Ermilov wrote:
 > Apparently, ld.so will be built and installed during ``make world''
 > if you specify -DWANT_AOUT.
 > 
 > In 3.1, legacy support is built by default, and one needs to specify
 > -DNOAOUT to avoid this.  This has been changed in 3.2:
 > 
 > +------------------
 > | # head /usr/src/UPDATING
 > | Updating Information for FreeBSD current users
 > | 
 > | This file is maintained by imp@village.org.  Please send new entries
 > | directly to him.  See end of file for further details.
 > | 
 > | 19990510:
 > | 	Previously, one would define "NOAOUT" to keep from building
 > | 	the legacy a.out bits.  Now one would define "WANT_AOUT" to
 > | 	build them.
 > +------------------
 
 Ok, I see it now.  But shouldn't COMPAT22 perhaps imply that then?
 Setting COMPAT22 seems to do everything except make ld.so.
 Or should WANT_AOUT be mentioned in /etc/make.conf?
 
 ________________________________________________________________________
 William R. Somsky                                   wrsomsky@halcyon.com
 Physicist, Baritone, Guitarist           http://www.halcyon.com/wrsomsky
 

From: "David O'Brien" <motminh@NUXI.com>
To: freebsd-gnats-submit@freebsd.org, wrsomsky@halcyon.com
Cc:  
Subject: Re: bin/11828: Patch for aout "ld.so" difficulties
Date: Sat, 22 May 1999 09:29:13 -0700

 Setting "COMPAT22"  does not "do everything else".  All "COMPAT22" does
 is uudecode a bunch of files and put them in place.  There is no other
 magic behind "COMPAT22".
 
State-Changed-From-To: open->closed 
State-Changed-By: msmith 
State-Changed-When: Wed Jun 23 17:23:52 PDT 1999 
State-Changed-Why:  
The correct fix appears to be "use -DWANT_AOUT". 
>Unformatted:
