Comment 39 for bug 190227

Revision history for this message
Nicolás Wolovick (nwolovick) wrote : Re: [Bug 190227] Re: ia32 apps look for libs on the wrong place

On Wed, Jul 8, 2009 at 10:29 AM, Martin Karpinski <email address hidden>wrote:

> Thanks Nico! Your workaround worked.
>
> Never underestimate the power of getlibs ;)
>
> Now, am I to undestand that, at least in my case, the error message
>
> Gtk-Message: Failed to load module "gail":
> /usr/lib/gtk-2.0/modules/libgail.so: wrong ELF class: ELFCLASS64
>
> was caused by libgail being a 32bit library and not compatible with
> amd64 architecture?
>

Yeap.
As far as I know, amd64 architecture switches on-the-fly to i386, but once
you are there all the execution should remain 32 bits.
That is why some 32 bit applications can run perfectly on amd64, just stuff
everything on the ELF executable, including all dynamic libraries and you
are done.
If you want to stay modular and use the dynamic linking process, you should
feed all the 32 bits libs the app will ever need.
It seems libgail.so is not part (yet?) of the ia32-libs, though.

Best, Nico

>
> --
> ia32 apps look for libs on the wrong place
> https://bugs.launchpad.net/bugs/190227
> You received this bug notification because you are a direct subscriber
> of the bug.
>