[Kst] Re: The crash when using a gsl-based fit plugin: possible solution

Nicolas Brisset nicolas.brisset at free.fr
Sat Mar 19 13:54:03 CET 2011


> It's not difficult to add such options but I don't think it will fix
> it, or have you tried?
I haven't tried anything yet, just read some.
 
> The bug report you mentioned is about build time because resolving all
> files was required by --as-needed.
> 
> But you have a runtime error.
> 
> Does 'ldd' list libgslcblas.so when you call it on a gsl plugin?
No:
nicolas at linux-cwbq:~/Code/kst_cmake/qtcreator-build/debug/build/lib/kst2/plugins> ldd libkst_fits_polynomial_weighted.so
        linux-gate.so.1 =>  (0xffffe000)
        libkstcore.so.2 => /media/linux2/Code/kst_cmake/qtcreator-build/debug/build/lib/libkstcore.so.2 (0xb767c000)
        libkstmath.so.2 => /media/linux2/Code/kst_cmake/qtcreator-build/debug/build/lib/libkstmath.so.2 (0xb758e000)
        libkstwidgets.so.2 => /media/linux2/Code/kst_cmake/qtcreator-build/debug/build/lib/libkstwidgets.so.2 (0xb74fd000)
        libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb7233000)
        libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb676c000)
        libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb6729000)
        libQtOpenGL.so.4 => /usr/lib/libQtOpenGL.so.4 (0xb6637000)
        libQtSvg.so.4 => /usr/lib/libQtSvg.so.4 (0xb65e0000)
        libgsl.so.0 => /usr/lib/libgsl.so.0 (0xb63cb000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb62da000)
        libm.so.6 => /lib/libm.so.6 (0xb62b0000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6292000)
        libc.so.6 => /lib/libc.so.6 (0xb6127000)
        librt.so.1 => /lib/librt.so.1 (0xb611d000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb6101000)
        libz.so.1 => /lib/libz.so.1 (0xb60ed000)
        libdl.so.2 => /lib/libdl.so.2 (0xb60e8000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb60e2000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb5ffc000)
        libpng14.so.14 => /usr/lib/libpng14.so.14 (0xb5fcf000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb5f48000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb5eff000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb5ef6000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb5edb000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb5eca000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb5ebf000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb5eb6000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb5eb0000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb5ea4000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb5ea0000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb5e69000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb5e57000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb5d1c000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0xb5cb8000)
        /lib/ld-linux.so.2 (0xb773d000)
        libpcre.so.0 => /lib/libpcre.so.0 (0xb5c88000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xb5c82000)
        libexpat.so.1 => /lib/libexpat.so.1 (0xb5c58000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb5c38000)
        libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb5c32000)
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb5c2d000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb5c20000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb5c1c000)

That sounds like an issue indeed.

 
> Here on Ubuntu we link against cblas:
> -- Found Gsl:
> --      includes : /usr/include/gsl;/usr/include/gsl/..
> --      libraries:
> /usr/lib/libgsl.so;/usr/lib/libgslcblas.so;/usr/lib/libm.so
> 
> Could you check the output of your cmake.
-- Found Gsl:
--      includes : /usr/include/gsl;/usr/include/gsl/..
--      libraries: /usr/lib/libgsl.so;/usr/lib/libm.so

Ok, so what would be the next step?

Nicolas


More information about the Kst mailing list