Bug 45209

Summary: Broken Linux ABI Emulation in FreeBSD 4.7#0 (7.1_1) - Important !!
Product: Base System Reporter: feh
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 1.0-RELEASE   
Hardware: Any   
OS: Any   

Description feh 2002-11-11 13:50:01 UTC
 Hi,
 
 sorry for freely posting this PR without going thru the www.freebsd.org - your web server is broken:
 
 "Forbidden
 
 You don't have permission to access /send-pr.html on this server."
 
 Now the bug itself:
 
 System: 
 
 orion# uname -a
 FreeBSD orion.fehnet.de 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Sat Nov  9 18:56:59 CET 2002     root@orion.fehnet.de:/usr/src/sys/compile/ORION  i386
 
 Here, a console log:
 
 orion# file fsavser.4.14.4062.bin 
 fsavser.4.14.4062.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped
 orion# chmod +x fsavser.4.14.4062.bin 
 orion# ./fsavser.4.14.4062.bin 
 ELF binary type "0" not known.
 Abort
 orion# brandelf -t Linux fsavser.4.14.4062.bin 
 orion# ./fsavser.4.14.4062.bin
 ELF binary type "3" not known.
 Abort
 
 What happened? 
 I tried to install FSecure's AV tool on my new system (4.3 -> 4.7). The binary is working under FreeBSD 4.3, if its brandelf'ed for Linux.
 
 The new Linux emulation 7.1.1 does not recognize the binary to be Linux anymore.
 
 Workaround:
 Removed the Linux compatibilty 7.1_1. and installed those from 4.6 (6.1_1). 
 
 orion# pkg_info | grep linux
 linux_base-6.1_1    The base set of packages needed in Linux mode
 
 
  From my point of view, this is a major bug in 7.1_1.
 
 regards.
 --eh. 
 +-----------------------------------------------------------------------+
 |  fff        hh         http://www.fehcom.de        Dr. Erwin Hoffmann |
 | ff          hh                                                        |
 | ff    eee   hhhh      ccc   ooo    mm mm  mm       Wiener Weg 8       |
 | fff  ee ee  hh  hh   cc   oo   oo  mmm  mm  mm     50858 Koeln        |
 | ff  ee eee  hh  hh  cc   oo     oo mm   mm  mm                        |
 | ff  eee     hh  hh   cc   oo   oo  mm   mm  mm     Tel 0221 484 4923  |
 | ff   eeee   hh  hh    ccc   ooo    mm   mm  mm     Fax 0221 484 4924  |
 +-----------------------------------------------------------------------+
Comment 1 ru freebsd_committer freebsd_triage 2002-11-12 10:03:39 UTC
Responsible Changed
From-To: gnats-admin->bugs

Re-file.
Comment 2 ru freebsd_committer freebsd_triage 2002-11-12 10:05:52 UTC
State Changed
From-To: open->feedback

Was the linux.ko loaded or compiled statically into the kernel?
Comment 3 ru freebsd_committer freebsd_triage 2002-11-12 13:13:48 UTC
State Changed
From-To: feedback->closed

Originator reports that he was missing the enable_linux="YES" 
line in /etc/rc.conf.