Linux emu: ELF file OS ABI invalid

Boris Samorodov bsam at
Fri Sep 3 05:03:19 UTC 2010

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.


> Utilset requires two libraries, and
>, 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/ 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, Telephone & Internet SP
FreeBSD Committer, The Power To Serve

More information about the freebsd-questions mailing list