Bug 82178

Summary: missing 32bit subsystem
Product: Base System Reporter: &#321;ukasz Gryglicki <morgothdbma>
Component: amd64Assignee: freebsd-amd64 (Nobody) <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description &#321;ukasz Gryglicki 2005-06-12 23:10:23 UTC
      each time I want to run FreeBSD i386 binary I have answer that I haven't ld-elf32.so, I copied that library where system wanted me to, but now it wants libc.so.5, I cannot replace my 64bit libc.so with 32bit libc.so, mayby I shoul copy all 32bit files somewhere like /usr/32bit_world or something else. I don't know, can U tell me how to setup a 32bit subsytem inside 64bit system, I want at least run simple C programs. BTW: is there 32bit/64bit linux emulation in FreeBSD 5.4 amd64

Fix: 

some special hierarchy for 32bit apps and libs ... chroot ??
How-To-Repeat:       just try to run 32bit FreeBSD i386 hello world application on FreeBSD amd64 (dynamically linked)
Comment 1 sgk 2005-06-13 00:12:03 UTC
On Sun, Jun 12, 2005 at 10:10:11PM +0000, morgothdbma wrote:
> 
> >Synopsis:       missing 32bit subsystem
>       each time I want to run FreeBSD i386 binary I have answer
> that I haven't ld-elf32.so, I copied that library where system
> wanted me to, but now it wants libc.so.5, I cannot replace my 64bit
> libc.so with 32bit libc.so, mayby I shoul copy all 32bit files
> somewhere like /usr/32bit_world or something else.

> I don't know, can U tell me how to setup a 32bit subsytem inside
> 64bit system, I want at least run simple C programs. BTW: is there
> 32bit/64bit linux emulation in FreeBSD 5.4 amd64

Please read the freebsd-amd64 mailing list archive.  There
is ample information there to help answer your problem.

In short, install the source tree.  Add WITH_LIB32=yes
to /etc/make.conf.  Add

options         COMPAT_IA32             #Compatible with i386 binaries
options         LINPROCFS
options         COMPAT_43
options         COMPAT_LINUX32

to your kernel configuration file.  Follow the instructions
in /usr/src/UPDATING on procedure for updating your system.

After the system has rebooted, install the linux ports you
want.  You'll definitely want

linux-XFree86-libs-4.3.99.902_2 XFree86 libraries, Linux binary
linux_base-8-8.0_6  Base set of packages needed in Linux mode (only for i386)

-- 
Steve
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2005-11-25 16:41:44 UTC
State Changed
From-To: open->closed

This was answered by steve, and the topic belongs to freebsd-questions