Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Sep 2010 09:03:17 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Mikle Krutov <nekoexmachina@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Linux emu: ELF file OS ABI invalid
Message-ID:  <61270570@bb.ipt.ru>
In-Reply-To: <AANLkTi=fmtT3zhQ53KfD9VG_f-WWX3uGKToK9rsUTCNz@mail.gmail.com> (Mikle Krutov's message of "Thu, 2 Sep 2010 15:49:19 %2B0000")
References:  <AANLkTi=fmtT3zhQ53KfD9VG_f-WWX3uGKToK9rsUTCNz@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61270570>