Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200426 - app-emulation/emul-linux-x86-xlibs breaks 32bit motif apps
Summary: app-emulation/emul-linux-x86-xlibs breaks 32bit motif apps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 201344 (view as bug list)
Depends on:
Blocks: emul-tracker 208904 209912
  Show dependency tree
 
Reported: 2007-11-26 18:53 UTC by Andy Wang
Modified: 2008-03-20 06:49 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
uil binary from 32-bit openmotif build. (uil,309.53 KB, application/octet-stream)
2007-11-29 17:11 UTC, Andy Wang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Wang 2007-11-26 18:53:48 UTC
The openmotif libraries (libMrm.so, etc) installed by app-emulation/emul-linux-x86-xlibs ends up in /usr/lib32/openmotif-2.2.

There isn't an LDPATH specified in /etc/env.d that includes /usr/lib32/openmotif-2.2 so ld.so.conf doesn't contain that dir, and there's no symlink in /usr/lib32 (or any other directory in ld.so.conf) to the motif libraries.  I've worked around it temporarily by creating my own /etc/env.d/99motif32 file.
Comment 1 Mike Doty (RETIRED) gentoo-dev 2007-11-28 06:39:17 UTC
emul-linux-x86-xlibs-20071128 is in the tree, I think it will fix your issue, but I don't what you're using to test.  please remove your env.d entry and emerge this package.  reopen if still broken.
Comment 2 Andy Wang 2007-11-29 17:11:46 UTC
Created attachment 137324 [details]
uil binary from 32-bit openmotif build.

Still broken.  The motif libraries are still only in /usr/lib32/openmotif-2.2 and there's no LD_LIBRARY_PATH update to allow the linker to find the 32-bit libs.

I use clearcase at work and the clearcase clients are motif based.  You could also use a 32-bit application from openmotif (specifically uil, I've attached a 32-bit version for you to try).

Here's the ldd output without my env.d file:
        linux-gate.so.1 =>  (0xffffe000)
        libMrm.so.3 => not found
        libXm.so.3 => not found
        libXmu.so.6 => /usr/lib32/libXmu.so.6 (0xf7f45000)
        libXt.so.6 => /usr/lib32/libXt.so.6 (0xf7ef5000)
        libSM.so.6 => /usr/lib32/libSM.so.6 (0xf7eea000)
        libICE.so.6 => /usr/lib32/libICE.so.6 (0xf7ed2000)
        libXp.so.6 => /usr/lib32/libXp.so.6 (0xf7eca000)
        libXext.so.6 => /usr/lib32/libXext.so.6 (0xf7ebb000)
        libX11.so.6 => /usr/lib32/libX11.so.6 (0xf7dcf000)
        libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7dcb000)
        libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf7dc4000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf7dc0000)
        libc.so.6 => /lib32/libc.so.6 (0xf7c90000)
        /lib/ld-linux.so.2 (0xf7f8b000)

Here's the ldd output with my file in place:
wang@awang ~ $ ldd uil
        linux-gate.so.1 =>  (0xffffe000)
        libMrm.so.3 => /usr/lib32/openmotif-2.2/libMrm.so.3 (0xf7f75000)
        libXm.so.3 => /usr/lib32/openmotif-2.2/libXm.so.3 (0xf7d32000)
        libXmu.so.6 => /usr/lib32/libXmu.so.6 (0xf7d1c000)
        libXt.so.6 => /usr/lib32/libXt.so.6 (0xf7ccc000)
        libSM.so.6 => /usr/lib32/libSM.so.6 (0xf7cc1000)
        libICE.so.6 => /usr/lib32/libICE.so.6 (0xf7ca9000)
        libXp.so.6 => /usr/lib32/libXp.so.6 (0xf7ca1000)
        libXext.so.6 => /usr/lib32/libXext.so.6 (0xf7c92000)
        libX11.so.6 => /usr/lib32/libX11.so.6 (0xf7ba6000)
        libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7ba2000)
        libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf7b9b000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf7b97000)
        libc.so.6 => /lib32/libc.so.6 (0xf7a67000)
        /lib/ld-linux.so.2 (0xf7fc5000)
Comment 3 Andy Wang 2007-11-29 17:12:15 UTC
reopening since it's still broken.
Comment 4 Evildad 2007-11-30 07:44:52 UTC
It also breaks net-misc/icaclient-10.6

The following error appears with app-emulation/emul-linux-x86-xlibs-20071128-r1
installed:

#wfcmgr 
/opt/ICAClient/wfcmgr.bin: error while loading shared libraries: libXm.so.3: wrong ELF class: ELFCLASS64

Downgrading to app-emulation/emul-linux-x86-xlibs-10.0 solves the problem for me.
But this breaks dependencies with app-emulation/emul-linux-x86-medialibs-20071114

Hope this can be solved

Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-12-05 12:20:36 UTC
*** Bug 201344 has been marked as a duplicate of this bug. ***
Comment 6 Erik Quaeghebeur 2007-12-05 23:17:44 UTC
(In reply to comment #4)
> It also breaks net-misc/icaclient-10.6

I can confirm that, there is also a forum post: <http://forums.gentoo.org/viewtopic-p-4574714.html#4574714>.

Please advise on a workaround until this is fixed.
Comment 7 Olivier Crete (RETIRED) gentoo-dev 2007-12-05 23:45:08 UTC
Downgrading the emul packages is the workaround...
Comment 8 Andy Wang 2007-12-06 05:59:15 UTC
For a workaround that doesn't require a downgrade read comment #1.
create /etc/env.d/99motif32 with the following one line:
LDPATH=/usr/lib32/openmotif-2.2

run env-update

This will add /usr/lib32/openmotif-2.2 to ld.so.conf thus allowing the linker to find the motif libraries.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2008-02-23 15:52:29 UTC
amd64 folks, you might want to bump this thing to use openmotif-2.3.0-r1 which installs to a sane location again. :)
Comment 10 Ulrich Müller gentoo-dev 2008-03-12 19:01:09 UTC
(In reply to comment #9)
> amd64 folks, you might want to bump this thing to use openmotif-2.3.0-r1 which
> installs to a sane location again. :)

+1
Comment 11 Christian Faulhammer (RETIRED) gentoo-dev 2008-03-17 19:29:03 UTC
Can anyone check if the 20060316 version fixes this problem?
Comment 12 Ulrich Müller gentoo-dev 2008-03-17 19:38:31 UTC
(In reply to comment #11)
> Can anyone check if the 20060316 version fixes this problem?

s/2006/2008/
Comment 13 Christian Faulhammer (RETIRED) gentoo-dev 2008-03-20 06:49:12 UTC
Thanks welp, your fix did it.  Please check out other bugs you might have fixed with your emul-linux-x86-* bumps.