<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>85151</bug_id>
          
          <creation_ts>2005-03-13 16:18 0000</creation_ts>
          <short_desc>Lesstif libraries link to Openmotif</short_desc>
          <delta_ts>2008-01-04 11:31:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sanni_taeter@yahoo.de</reporter>
          <assigned_to>maintainer-needed@gentoo.org</assigned_to>
          <cc>lanius@gentoo.org</cc>
    
    <cc>ralvy@warpmail.net</cc>
    
    <cc>richardvoigt@gmail.com</cc>
    
    <cc>stian@nixia.no</cc>

      

      
          <long_desc isprivate="0">
            <who>sanni_taeter@yahoo.de</who>
            <bug_when>2005-03-13 16:18:22 0000</bug_when>
            <thetext>If Openmotif is installed when emerging Lesstif, Lesstif links to Openmotif&apos;s
version of libraries, making them completely unusable (read: not working). The
problem appears to be that libraries in system directories are preferred over
the correct version in the build tree.

Note that uil links to both, libXm.so.2 (the corect one from Lesstif) and 
to libXm.so.3 (from Openmotif, indirectly via libMrm.so.2).


# ldd /usr/lib/lesstif-2.1/libDtPrint.so
        libXm.so.3 =&gt; /usr/lib/openmotif-2.2/libXm.so.3 (0x40011000)
        libXt.so.6 =&gt; /usr/lib/libXt.so.6 (0x4010f000)
        libSM.so.6 =&gt; /usr/lib/libSM.so.6 (0x4015c000)
        libICE.so.6 =&gt; /usr/lib/libICE.so.6 (0x40164000)
        libXp.so.6 =&gt; /usr/lib/libXp.so.6 (0x4017a000)
        libXext.so.6 =&gt; /usr/lib/libXext.so.6 (0x40182000)
        libX11.so.6 =&gt; /usr/lib/libX11.so.6 (0x40190000)
        libc.so.6 =&gt; /lib/libc.so.6 (0x402e4000)
        libdl.so.2 =&gt; /lib/libdl.so.2 (0x4040c000)
        /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x80000000)

# ldd /usr/lib/lesstif-2.1/libMrm.so
        libXm.so.3 =&gt; /usr/lib/openmotif-2.2/libXm.so.3 (0x4001c000)
        libXt.so.6 =&gt; /usr/lib/libXt.so.6 (0x4011a000)
        libSM.so.6 =&gt; /usr/lib/libSM.so.6 (0x40167000)
        libICE.so.6 =&gt; /usr/lib/libICE.so.6 (0x4016f000)
        libX11.so.6 =&gt; /usr/lib/libX11.so.6 (0x40185000)
        libc.so.6 =&gt; /lib/libc.so.6 (0x402d9000)
        libdl.so.2 =&gt; /lib/libdl.so.2 (0x40401000)
        /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x80000000)

# ldd /usr/lib/lesstif-2.1/libUil.so
        libXm.so.3 =&gt; /usr/lib/openmotif-2.2/libXm.so.3 (0x4001d000)
        libXt.so.6 =&gt; /usr/lib/libXt.so.6 (0x4011b000)
        libc.so.6 =&gt; /lib/libc.so.6 (0x401e1000)
        libX11.so.6 =&gt; /usr/lib/libX11.so.6 (0x40309000)
        libSM.so.6 =&gt; /usr/lib/libSM.so.6 (0x403e3000)
        libICE.so.6 =&gt; /usr/lib/libICE.so.6 (0x403ec000)
        /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x80000000)
        libdl.so.2 =&gt; /lib/libdl.so.2 (0x40429000)

# ldd /usr/lib/lesstif-2.1/uil
        libMrm.so.2 =&gt; /usr/lib/lesstif-2.1/libMrm.so.2 (0x40013000)
        libXm.so.2 =&gt; /usr/lib/lesstif-2.1/libXm.so.2 (0x40026000)
        libXp.so.6 =&gt; /usr/lib/libXp.so.6 (0x40155000)
        libXext.so.6 =&gt; /usr/lib/libXext.so.6 (0x4015d000)
        libXt.so.6 =&gt; /usr/lib/libXt.so.6 (0x4016b000)
        libSM.so.6 =&gt; /usr/lib/libSM.so.6 (0x401b8000)
        libICE.so.6 =&gt; /usr/lib/libICE.so.6 (0x401c0000)
        libX11.so.6 =&gt; /usr/lib/libX11.so.6 (0x401d7000)
        libfreetype.so.6 =&gt; /usr/lib/libfreetype.so.6 (0x402b1000)
        libfontconfig.so.1 =&gt; /usr/lib/libfontconfig.so.1 (0x40306000)
        libc.so.6 =&gt; /lib/libc.so.6 (0x4032a000)
        libXm.so.3 =&gt; /usr/lib/openmotif-2.2/libXm.so.3 (0x40452000)
        libdl.so.2 =&gt; /lib/libdl.so.2 (0x4054f000)
        libexpat.so.0 =&gt; /usr/lib/libexpat.so.0 (0x40553000)
        /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stian@nixia.no</who>
            <bug_when>2005-03-13 22:45:25 0000</bug_when>
            <thetext>From emerge openmotif:
 * This breaks applications linked against libXm.so.2.
 * You have to rebuild these applications with revdep-rebuild.
and library files where put in /usr/lib directly. How did you emerge these packages?

I don&apos;t use openmotif or lesstif, but I would believe that you normally don&apos;t install them both on the same system.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2005-03-14 05:57:29 0000</bug_when>
            <thetext>fixed in motif-config-0.5</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sanni_taeter@yahoo.de</who>
            <bug_when>2005-03-15 01:57:48 0000</bug_when>
            <thetext>Those last two comments are contradicting each other. If I can&apos;t have motif
and lesstif on the same system, what is motif-config for? And even if I could
have lesstif only, doesn&apos;t change the fact that lesstif&apos;s build system searches
for libraries in it&apos;s destination before it&apos;s own built tree, instead of the
other way like everything else does. This still causes problems when upgrading.

Also, the fix in motif-config-0.5 does not work, sorry:

sh# ls /usr/lib/libXm.so.3
/usr/lib/libXm.so.3

sh# emerge -B lesstif
    [...]
sh# ls /usr/lib/libXm.so.3
ls: /usr/lib/libXm.so.3: No such file or directory
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2005-03-15 02:37:45 0000</bug_when>
            <thetext>Just remerge your lesstif/openmotif versions with motif-config-0.5 installed and this bug is fixed. Stian&apos;s comment was completly off topic.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sanni_taeter@yahoo.de</who>
            <bug_when>2005-03-15 20:54:56 0000</bug_when>
            <thetext>I was already using motif-config-0.5 .. problem is, with regular emerges 
it tells me

 * Starting installation of a new motif version.
 * Note: You can&apos;t use any motif app during this process.

at the start and

 * Finishing installation.
 * Note: You can now use your motif apps again.

near the end. That&apos;s bad, for it disables regular motif apps when 
emerging *lesstif*.

Now, when doing an &quot;emerge -B lesstif&quot;, the second message 
does not even show up, and consequently, the original state is
never restored, motif is disabled permanently. Just think what
happens when building binary packages for a larger number of 
packages .. after motif/lesstif, further building of any motif
app fails and requires manual intervention!

I&apos;m sure that is not the intended behaviour.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2005-03-16 03:20:40 0000</bug_when>
            <thetext>&gt;  That&apos;s bad, for it disables regular motif apps when emerging *lesstif*.
Yeah, but i couldn&apos;t find a different solution.

&gt; I&apos;m sure that is not the intended behaviour.
No, i&apos;m searching for a fix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>richardvoigt@gmail.com</who>
            <bug_when>2005-03-18 19:21:07 0000</bug_when>
            <thetext>Seems to me that motif-config is totally broken.

I got not found: Xm.so.3 messages, so:

I figured emerge --oneshot openmotif should fix the problem.
It emerged motif-config 0.5 and the latest openmotif 2.2.3-r5 but even after env-update and starting a new shell, still the same linker shared library not found error.

I tried motif-config, and there were no profiles.  I don&apos;t think that the &quot;Now you can use motif apps again&quot; message ever showed up.

BTW, what directory should I build motif apps against?  I was using /usr/include/openmotif-2.2, does motif-config set a centralized motif include directory?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>richardvoigt@gmail.com</who>
            <bug_when>2005-03-18 19:21:53 0000</bug_when>
            <thetext>Seems to me that motif-config is totally broken.

I got not found: Xm.so.3 messages, so:

I figured emerge --oneshot openmotif should fix the problem.
It emerged motif-config 0.5 and the latest openmotif 2.2.3-r5 but even after env-update and starting a new shell, still the same linker shared library not found error.

I tried motif-config, and there were no profiles.  I don&apos;t think that the &quot;Now you can use motif apps again&quot; message ever showed up.

BTW, what directory should I build motif apps against?  I was using /usr/include/openmotif-2.2, does motif-config set a centralized motif include directory?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>richardvoigt@gmail.com</who>
            <bug_when>2005-03-18 19:23:44 0000</bug_when>
            <thetext>ack!  Sorry about the double post, I added myself to CC, and the browser filled in the Comments field automatically.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2005-03-22 08:27:12 0000</bug_when>
            <thetext>this is a different problem, please post a complete log of the merge process, what are your emerge options?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2005-03-23 10:43:40 0000</bug_when>
            <thetext>the original problem is fixed now, if you still have your problem open another bug</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sanni_taeter@yahoo.de</who>
            <bug_when>2005-03-24 15:13:19 0000</bug_when>
            <thetext>I really hate to say this, *again*, but, it still is not. The same problem 
with &quot;emerge -B&quot; as described above now has moved to &quot;emerge -K&quot;, i.e., motif 
includes and libs are disabled and never reenabled when installing binary
packages.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2005-03-24 23:10:02 0000</bug_when>
            <thetext>next try.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sanni_taeter@yahoo.de</who>
            <bug_when>2005-04-18 20:42:48 0000</bug_when>
            <thetext>not fixed in -r2
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2005-04-26 06:58:14 0000</bug_when>
            <thetext>it will be fixed in stable when the testing ebuilds go into stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sanni_taeter@yahoo.de</who>
            <bug_when>2006-03-21 18:14:53 0000</bug_when>
            <thetext>When will that be?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-06-27 03:25:39 0000</bug_when>
            <thetext>Re-assign wrt Bug 23545, maintainer retired.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-06-29 16:51:51 0000</bug_when>
            <thetext>Those motif versions are long stable</thetext>
          </long_desc>
      
    </bug>

</bugzilla>