#293 tear off menu problem within nedit

open
nobody
None
5
2008-01-30
2008-01-30
David Mathog
No

There is a tear off problem with nedit 5.5 which appears when Nedit uses lesstif, and does not appear when it uses Motif. The bug was originally submitted to the Mandriva bug tracker since it appeared on that OS, but they claim not to have put any patches into Nedit or Lesstif which might have induced these symptoms. See:

http://qa.mandriva.com/show_bug.cgi?id=34899

In brief, once a tear off menu has been torn off, some option selected, and closed, subsequent "normal" uses of that menu are ignored. The menu pulls down normally and appears to have had an item selected, but nothing happens.

I just downloaded nedit 5.5 from sourceforge, the binary which is statically linked with motif, and it does not have this problem. Here is the version info from the one which works:

NEdit 5.5
Sep 30, 2004

Built on: Linux, 386, GNU C
Built at: Oct 1 2004, 15:55:40
With Motif: 2.1.30 [@(#)Motif Version 2.1.30]
Running Motif: 2.1 [unknown]
Server: StarNet Communications Corp. 8100
Visual: 24-bit TrueColor (ID 0x23, Default)
Locale: en_US

And here the version from the one which does not work:

NEdit 5.5
Sep 30, 2004

Built on: Linux, Pentium, GNU C
Built at: Mar 2 2007, 03:22:26
With Motif: 2.1.0 [@(#)GNU/LessTif Version 2.1 Release 0.93.94] (UNTESTED)
Running Motif: 2.1 [unknown]
Server: StarNet Communications Corp. 8100
Visual: 24-bit TrueColor (ID 0x23, Default)
Locale: en_US

Additionally, 'ldd nedit' output on the two binaries differ solely in the presence of this line in the version with the bug:

libXm.so.2 => /usr/lib/libXm.so.2 (0xb7e0d000)

and:

rpm -q --whatprovides /usr/lib/libXm.so.2
liblesstif2-0.93.94-12mdv2007.0

So it appears to be a lesstif issue.

Discussion

  • Logged In: YES
    user_id=1831226
    Originator: NO

    Just for info, I am the current maintainer for nedit and lesstif on Mandriva. As I wrote in the MDV bug report, we don't have any patches that I could see affecting this issue. You can see our exact builds for nedit and lesstif here:

    http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/lesstif/current/
    http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/nedit/current/

    to verify. The above output specifies Lesstif 0.93.94, but the reporter has also tested with Mandriva Linux 2008 - which uses Lesstif 0.95.0 - and observed the same issue.

    If you like, I can do a test build of nedit against openmotif on Mandriva as a comparison.

     
  • Logged In: NO

    Similar effect observed with dinotrace:

    Compiling on SUSE 9.2 using openmotif-2.2.3-6 dinotrace works fine.
    Compiling on SUSE 10.3 using openmotif-2-3-0-23 (lesstif-0.95.0) leads to unusable menues and warnings in the xterminal: "Waning: Cannot find callback list in XtAddCallBack".
    Compiling on my old SUSE 9.2 with openmotif-devel-2.2.3-6 and copying the executable to SUSE 10.3 with openmotif-2-3-0-23 works fine although I expected the old development package to be incompatible!
    So currently I simply compile on an old machine using openmotif-devel-2.2.3-6 and copy executables to the more modern ones.

    Ricardo Erckert (re(no spam at)erckert-ibe.de)