Bug 46576 - FreeBSD 4.6 broke linux emulation install w/SVR4 emulation enabled.
Summary: FreeBSD 4.6 broke linux emulation install w/SVR4 emulation enabled.
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 4.6-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-emulation (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-28 13:20 UTC by Bruce Burden
Modified: 2004-12-24 08:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruce Burden 2002-12-28 13:20:00 UTC
	"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.

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.
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).
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-08-26 21:17:40 UTC
Responsible Changed
From-To: freebsd-bugs->emulation

Reassign to appropriate mailing list.
Comment 2 Alexey Zelkin freebsd_committer freebsd_triage 2004-12-24 08:36:23 UTC
State Changed
From-To: open->closed

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)