elf-32 binaries compat

Richard Cotrina rcc at speedy.net.pe
Wed Jan 19 14:42:10 PST 2005


Hi :

Is there any special configuration needed to run elf 32 (i386) binaries in
FreeBSD 5.3R/amd64 ?

I am trying to run some 32 bit application in a kernel that has the
following options enabled:

options		COMPAT_IA32
options		COMPAT_FREEBSD4

and i got the following error:

ELF interpreter /libexec/ld-elf32.so.1 not found

Searching the list i found out that lib32 needs to be enabled, so I did :

# cd /usr/src
# /usr/src/tools/lib32/build32.sh

It seems that it did not help because i still get an error when trying to
run the elf 32 application :

/usr/libexec/ld-elf.so.1: /usr/lib/libm.so.2: unsupported file layout

The question is how do I enable i386 compatibility (elf32)?. I don't have
/compat/ia32 or something similar despite the fact my kernel has compat
options enabled.

I also got the following:

# sysctl kern.elf32
kern.elf32.fallback_brand: -1

Any help or suggestion is welcome.

Thanks in advance

Richard Cotrina


More information about the freebsd-amd64 mailing list