From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 05:03:19 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4159D10657FD for ; Fri, 3 Sep 2010 05:03:19 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 012408FC1F for ; Fri, 3 Sep 2010 05:03:18 +0000 (UTC) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1OrOQn-0002iC-JT; Fri, 03 Sep 2010 09:03:17 +0400 From: Boris Samorodov To: Mikle Krutov References: Date: Fri, 03 Sep 2010 09:03:17 +0400 In-Reply-To: (Mikle Krutov's message of "Thu, 2 Sep 2010 15:49:19 +0000") Message-ID: <61270570@bb.ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Linux emu: ELF file OS ABI invalid 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: Fri, 03 Sep 2010 05:03:19 -0000 On Thu, 2 Sep 2010 15:49:19 +0000 Mikle Krutov wrote: > Got a strange problem with some linux binaries > (utilset for Dwarf Fortress game, DFHack): > file reports them all as > 'ELF 32-bit LSB executable, Intel 80386, > version 1 (GNU/Linux), dynamically linked (uses > shared libs), for GNU/Linux 2.6.15, not stripped' > All are brandelf'd as in handbook. Good. > Utilset requires two libraries, libdfhack.so and > libdfconnect.so, that are reported as > 'ELF 32-bit LSB shared object, Intel 80386, > version 1 (GNU/Linux), dynamically linked, not > stripped'; both of them are brandelf'd, too. Not good. The FreeBSD Handbook (section 10.2.3, Installing a Random Linux RPM Based Application) forbids library branding. > So, i've put libs into /compat/linux/usr/lib/ and tried > to run one of tools and got: > ./dfprospector: error while loading shared libraries: > /usr/lib/libdfhack.so: ELF file OS ABI invalid > What could be the source of the problem? > I'm running 32-bit 8.1-STABLE FreeBSD right now. Please try native linux libraries and report back if that helps. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve