problems with libglade2...

Boris Samorodov bsam at
Fri Oct 20 20:26:11 UTC 2006

On Fri, 20 Oct 2006 10:15:04 -0400 William Bulley wrote:

> I am trying to run a Linux binary under FreeBSD Linux compatibility
> mode (linux_base-fc-4_9) on 6.2-PRERELEASE.

> The error I get is:

>    error while loading shared libraries: /usr/X11R6/lib/ ELF file OS ABI invalid

A FreeBSD library is found instead of a linux one.

> freebsd% pkg_info | grep -i glade
> libglade2-2.6.0     GNOME glade library

Seems that you didn't install devel/linux-libglade port.

> freebsd% ldd foobah
> foobah:
> foobah: error while loading shared libraries: /usr/X11R6/lib/ ELF file OS ABI invalid
> foobah: exit status 127
> freebsd% file foobah
> foobah: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped
> freebsd% file /usr/X11R6/lib/
> /usr/X11R6/lib/ ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), not stripped

> According to the "foobah" README:

>    Executable is tested to work with:
>    OS: Fedora Core 3, Suse 9.2
>    Platform: i386, Athlon, i686

> What am I missing?  What steps (short of tossing the whole idea out)
> should I take to successfully run the Linux binary "foobah"?  Thanks.

I didn't find foobah at the ports tree. Are you porting it? If so,
check out that all linux packages this program depends on are

Boris Samorodov (bsam)
Research Engineer, Telephone & Internet SP
FreeBSD committer, The Power To Serve

More information about the freebsd-questions mailing list