From owner-freebsd-questions@FreeBSD.ORG Mon Jan 7 19:44:09 2008 Return-Path: Delivered-To: questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D61D16A418 for ; Mon, 7 Jan 2008 19:44:09 +0000 (UTC) (envelope-from mi+mill@aldan.algebra.com) Received: from outbound-mail.mlp.com (outbound-mail.mlp.com [204.212.175.37]) by mx1.freebsd.org (Postfix) with ESMTP id D645D13C45D for ; Mon, 7 Jan 2008 19:44:08 +0000 (UTC) (envelope-from mi+mill@aldan.algebra.com) Received: from misha (Not Verified[10.5.105.98]) by outbound-mail.mlp.com with MailMarshal (v6, 1, 5, 586) id ; Mon, 07 Jan 2008 14:29:05 -0500 From: Mikhail Teterin To: questions@freebsd.org Date: Mon, 7 Jan 2008 14:29:02 -0500 User-Agent: KMail/1.7.1 Organization: Virtual Estates, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801071429.03892.mi+mill@aldan.algebra.com> Cc: Subject: 32-bit FreeBSD binary on amd64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2008 19:44:09 -0000 Hello! I'm struggling with a 32-bit FreeBSD executable, which is identified as: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped Unfortunately, the executable would not run: /libexec/ld-elf.so.1: /lib/libm.so.4: unsupported file layout I don't understand, why it is trying to use the 64-bit /lib/libm.so.4 instead of the readily available /usr/lib32/libm.so.4 ? Other 32-bit binaries have no problems on this same machine... Was it not linked correctly? Is there a way to correct it? brandelf-ing did not help, for example... Thanks! -mi