I have/had this bug running ddd under a new installation of Debian Lenny 5.05 amd64. It is now solved.

In my case this bug didn't only cause the error message, but also caused ddd to become sluggish or unresponsive, consume large amounts of CPU or hang when accessing menus. For example, clicking on Edit->Preferences and then changing tabs from General to Source would take many seconds, with top showing 10-20% CPU. Changing tabs to Data would sometimes complete and sometimes just hang, with CPU going to 40%. Clicking OK would then hang completely with CPU going to 100%. I would then have to kill ddd. This made ddd close to unusable.

The problem can be fixed by downgrading your version of the lesstif2 library /usr/lib/libXm.so.2.0.1

Unfortunately at the time of writing the oldstable Etch packages don't seem to be online. It looks like they've been removed from http://packages.debian.org/oldstable/ and don't yet show up in http://archive.debian.net/ I don't know if the Etch package would have been old enough anyway.

Going back further there is Sarge, available from http://archive.debian.net/
I used the Xm lib from the lesstif2 package version 0.93.94-11.4 and this solves the problem. Note that the library is still called libXm.so.2.0.1 but it's clearly different, since it works.

I've seen ddd fail on 4 successive invocations when using the original library, then succeed on 8 invocations using the new Xm library, changing tabs multiple times and opening and closing windows. I gave it this testing because the very first time I ran with the new library it worked for a moment and then failed. I can't explain this and can't reproduce it. My best (admittedly feeble) guess is that something was cached somewhere. Anyway, with the new lib in place I now can't get it to fail again. Yet :)

On many architectures you can probably download the Sarge package directly from the website, unpack it with dpkg -x, and copy the libXm to /usr/lib/ and be done.

Unfortunately Sarge packages aren't available for the amd64 architecture, so to get this to work I had to compile the package from source. Below therefore is a quick how-to for amd64 users who want to fix this problem on their system.

Thanks to the folks on this thread http://www.mail-archive.com/coo...@linux-mandrake.com/msg129902.html back in 2003 for providing the solution to this problem.

/rob

---------------------------------------------------------------------------------------------

amd64 how-to under Debian Lenny

1) the source can be downloaded from the Debian Sarge package page :

http://archive.debian.net/sarge/lesstif2

  the three links on the right hand side under Download Source Package.

2) Packages you need which are/are used as generic code-building packages:

sudo aptitude install fakeroot
sudo aptitude install autoconf
sudo aptitude install bison
sudo aptitude install debhelper
sudo aptitude install flex
sudo aptitude install libtool

  autoconf gets automake which is automake1.10
You actually need automake1.6 but that isn't available from the Lenny Repositories.
  We'll deal with this below.

  Packages you need which are development and specific to this build:

sudo aptitude install libice-dev libsm-dev libx11-dev libxext-dev libxp-dev libxt-dev libxrender-dev libxft-dev libfontconfig1-dev libfreetype6-dev

3) Following http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html
   In the directory containing your source tar files:

dpkg-source -x lesstif1-1_0.93.94-11.4.dsc

4) You have to edit the lesstif1-1-0.93.94/debian/rules file to remove the 1.6 references to aclocal and automake.
    Make sure you end up with calls to aclocal and automake just like that.

5) Run this.  It takes a few minutes.

cd lesstif1-1-0.93.94
dpkg-buildpackage -rfakeroot -b -d

6) It falls over eventually complaining about a man page, but not before it compiles
  the libs.  They are available from

debian/lesstif2/usr/lib/

  You might like to archive your original /usr/lib library before you

sudo cp libXm.so.2.0.1  /usr/lib/libXm.so.2.0.1





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to