Comment 3 for bug 1882441

Revision history for this message
Yeti (yeti) wrote :

Funny thing, the modules fail to load with the same errors even with

  LD_PRELOAD=/lib/x86_64-linux-gnu/libm.so.6 gwyddion

despite the symbols being defined there. LD_PRELOAD does not influence dlopen()ed modules?

Anyway, when the program is simply compiled from source code (using ~/opt/gwyddion as installation prefix):

  sudo apt-get install libgtkglext1-dev libfftw3-dev
  wget http://gwyddion.net/download/2.56/gwyddion-2.56.tar.xz
  tar -tf gwyddion-2.56.tar.xz
  cd gwyddion-2.56
  ./configure --prefix=$HOME/opt/gwyddion
  make
  make install

it can be run

  ~/opt/gwyddion/bin/gwyddion

and works normally.

So this obviously some linking peculiarity when packaging. I suggest to start by adding

  --enable-library-bloat

configure option when packaging. It often makes things work when distros add evil linker flags. But it may be insufficient. We may have to add some explicit -lm when this option is enabled.