From brucegb@realtime.net  Sat Dec 28 05:19:26 2002
Return-Path: <brucegb@realtime.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3D1D137B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 28 Dec 2002 05:19:26 -0800 (PST)
Received: from dragon.realtime.net (dragon.realtime.net [205.238.132.78])
	by mx1.FreeBSD.org (Postfix) with SMTP id AF3FE43ED1
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 28 Dec 2002 05:19:25 -0800 (PST)
	(envelope-from brucegb@realtime.net)
Received: from tigerfish2.my.domain ([66.25.223.20]) by dragon.realtime.net ; Sat, 28 Dec 2002 02:08:45 -0600
Received: (from brucegb@localhost)
	by tigerfish2.my.domain (8.12.6/8.11.6) id gBS88hj1063886;
	Sat, 28 Dec 2002 02:08:43 -0600 (CST)
	(envelope-from brucegb)
Message-Id: <200212280808.gBS88hj1063886@tigerfish2.my.domain>
Date: Sat, 28 Dec 2002 02:08:43 -0600 (CST)
From: "brucegb@realtime.net" <brucegb@realtime.net>
Reply-To: "brucegb@realtime.net" <brucegb@realtime.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: FreeBSD 4.6 broke linux emulation install w/SVR4 emulation enabled.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46576
>Category:       kern
>Synopsis:       FreeBSD 4.6 broke linux emulation install w/SVR4 emulation enabled.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    emulation
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 28 05:20:00 PST 2002
>Closed-Date:    Fri Dec 24 08:40:18 GMT 2004
>Last-Modified:  Fri Dec 24 08:40:18 GMT 2004
>Originator:     brucegb@realtime.net
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD tigerprowl.my.domain 4.6-STABLE FreeBSD 4.6-STABLE #0: Sat Dec 28
01:10:50 GMT 2002     root@tigerprowl.my.domain:/usr/src/sys/compile/BRUCE  i386

>Description:
	"make install" of emulation/linux_base fails when SVR4 emulation and Linux
emulation enabled. Error is:

execution of glibc-2.2.4-31 script failed, exit status 0
*** Error code 1

Stop in /usr/ports/emulators/linux_base.

	To successfully install linux_base, it is necessary to unload the svr4.ko
module. The streams.ko module can stay loaded.

>How-To-Repeat:
	cvsup with the following /etc/cvsupfile:

*default  host=cvsup9.FreeBSD.org
*default  base=/usr
*default  prefix=/usr
*default  release=cvs
*default  delete
*default  tag=RELENG_4
#*default  date=2002.07.09.11.59.59 - works
#*default  date=2002.07.09.17.59.59 - fails

src-all
src-crypto
src-secure
doc-all


	Note the two date directives are commented out. Loading the /usr/src with the
first "date" directive will allow linux_base to install. Loading the /usr/src from the
second "date" directive will cause glibc_post_upgrade to exit with a signal 12.

	Also, it is necessary for SVR4 emulation to be enabled. This is in my
/etc/rc.conf file:

svr4_enable="YES"       # SysVR4 emulation loaded at startip (or NO).


>Fix:

	Unknown. Workaround is to kldunload the svr4.ko module. My guess is that the
cause is:

 Edit src/sys/svr4/svr4_sysvec.c
  Add delta 1.10.2.2 2002.07.09.14.12.43 robert

	The other code installed by the July 9 2002 17.59.59 cvsup was some usb files
and a lot of openssl and heimdal file changes.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->emulation 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Aug 26 20:17:40 GMT 2004 
Responsible-Changed-Why:  
Reassign to appropriate mailing list. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46576 
State-Changed-From-To: open->closed 
State-Changed-By: phantom 
State-Changed-When: Fri Dec 24 08:36:23 GMT 2004 
State-Changed-Why:  
All linux binaries are SYSV elf branded.  When svr4.ko is loaded -- it handles 
them.  So, in order to run linux binaries while svr4 enabled, you have to 
rebrand them first.  (call 'brandelf -t Linux <execfile>' for each binary) 


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