From owner-freebsd-amd64@FreeBSD.ORG Wed Jan 19 22:42:10 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DCC716A4CE for ; Wed, 19 Jan 2005 22:42:10 +0000 (GMT) Received: from kheops.speedy.net.pe (kheops.speedy.net.pe [200.48.172.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA23343D58 for ; Wed, 19 Jan 2005 22:42:09 +0000 (GMT) (envelope-from rcc@speedy.net.pe) Received: from kheops.speedy.net.pe (kheops.speedy.net.pe [200.48.172.40]) by kheops.speedy.net.pe (Postfix) with ESMTP id 2CE4A26427 for ; Wed, 19 Jan 2005 17:44:20 -0500 (PET) Date: Wed, 19 Jan 2005 17:44:20 -0500 (PET) From: Richard Cotrina To: freebsd-amd64@freebsd.org Message-ID: <20050119173135.V18358@kheops.speedy.net.pe> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: elf-32 binaries compat X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 22:42:10 -0000 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