<div dir="ltr"><div><div>Hi,<br><br><br></div>I'm struggling with <a href="http://gnudatalanguage.sourceforge.net/">GDL</a> so that it can be added to oi-userland. Currently it builds successfully but 4 of 178 tests fail.<br></div>The point is these tests fail due to missing symbols in <span style="font-family:monospace,monospace">gdl</span> executable, e.g.:<br><br><br>.....<br><span style="font-family:monospace,monospace">symbol not found: cblas_chemm           (/usr/lib/64/libgsl.so.19)</span><br>.....<br><div><br></div><div>Definitely it missing symbols because those symbols are located in the <span style="font-family:monospace,monospace">/usr/lib/64/libgslcblas.so</span> library.<br></div><div>Funny thing is, that <span style="font-family:monospace,monospace">CMake</span> does attempt to link this library:<br><br><br><br><span style="font-family:monospace,monospace">[100%] Linking CXX executable gdl<br>cd /projects/oi-userland/components/scientific/gdl/build/amd64/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/gdl.dir/link.txt --verbose=1<br>/usr/gcc/4.9/bin/g++    -m64 -O3 -DNDEBUG   -m64 CMakeFiles/gdl.dir/CFMTLexer.cpp.o CMakeFiles/gdl.dir/FMTIn.cpp.o CMakeFiles/gdl.dir/FMTLexer.cpp.o CMakeFiles/gdl.dir/FMTOut.cpp.o CMakeFiles/gdl.dir/FMTParser.cpp.o CMakeFiles/gdl.dir/GDLInterpreter.cpp.o CMakeFiles/gdl.dir/GDLLexer.cpp.o CMakeFiles/gdl.dir/GDLParser.cpp.o CMakeFiles/gdl.dir/GDLTreeParser.cpp.o CMakeFiles/gdl.dir/allix.cpp.o CMakeFiles/gdl.dir/arrayindex.cpp.o CMakeFiles/gdl.dir/assocdata.cpp.o CMakeFiles/gdl.dir/basegdl.cpp.o CMakeFiles/gdl.dir/basic_fun.cpp.o CMakeFiles/gdl.dir/basic_fun_cl.cpp.o CMakeFiles/gdl.dir/basic_fun_jmg.cpp.o CMakeFiles/gdl.dir/basic_op.cpp.o CMakeFiles/gdl.dir/color.cpp.o CMakeFiles/gdl.dir/convert2.cpp.o CMakeFiles/gdl.dir/convol.cpp.o CMakeFiles/gdl.dir/convol_inc0.cpp.o CMakeFiles/gdl.dir/convol_inc1.cpp.o CMakeFiles/gdl.dir/convol_inc2.cpp.o CMakeFiles/gdl.dir/datatypes.cpp.o CMakeFiles/gdl.dir/datatypesref.cpp.o CMakeFiles/gdl.dir/dcommon.cpp.o CMakeFiles/gdl.dir/dcompiler.cpp.o CMakeFiles/gdl.dir/default_io.cpp.o CMakeFiles/gdl.dir/dialog.cpp.o CMakeFiles/gdl.dir/dinterpreter.cpp.o CMakeFiles/gdl.dir/dnode.cpp.o CMakeFiles/gdl.dir/dpro.cpp.o CMakeFiles/gdl.dir/dstructdesc.cpp.o CMakeFiles/gdl.dir/dstructgdl.cpp.o CMakeFiles/gdl.dir/dvar.cpp.o CMakeFiles/gdl.dir/envt.cpp.o CMakeFiles/gdl.dir/extrat.cpp.o CMakeFiles/gdl.dir/fftw.cpp.o CMakeFiles/gdl.dir/file.cpp.o CMakeFiles/gdl.dir/fmtnode.cpp.o CMakeFiles/gdl.dir/gdleventhandler.cpp.o CMakeFiles/gdl.dir/gdlexception.cpp.o CMakeFiles/gdl.dir/gdlgstream.cpp.o CMakeFiles/gdl.dir/gdlxstream.cpp.o CMakeFiles/gdl.dir/gdljournal.cpp.o CMakeFiles/gdl.dir/gdlpsstream.cpp.o CMakeFiles/gdl.dir/gdlpython.cpp.o CMakeFiles/gdl.dir/gdlsvgstream.cpp.o CMakeFiles/gdl.dir/gdlwidget.cpp.o CMakeFiles/gdl.dir/gdlwidgeteventhandler.cpp.o CMakeFiles/gdl.dir/gdlwxstream.cpp.o CMakeFiles/gdl.dir/gdlzstream.cpp.o CMakeFiles/gdl.dir/getfmtast.cpp.o CMakeFiles/gdl.dir/graphicsdevice.cpp.o CMakeFiles/gdl.dir/basic_pro.cpp.o CMakeFiles/gdl.dir/basic_pro_jmg.cpp.o CMakeFiles/gdl.dir/grib.cpp.o CMakeFiles/gdl.dir/gshhs.cpp.o CMakeFiles/gdl.dir/gsl_fun.cpp.o CMakeFiles/gdl.dir/gsl_matrix.cpp.o CMakeFiles/gdl.dir/hash.cpp.o CMakeFiles/gdl.dir/hdf5_fun.cpp.o CMakeFiles/gdl.dir/hdf_fun.cpp.o CMakeFiles/gdl.dir/hdf_pro.cpp.o CMakeFiles/gdl.dir/ifmt.cpp.o CMakeFiles/gdl.dir/image.cpp.o CMakeFiles/gdl.dir/initct.cpp.o CMakeFiles/gdl.dir/initsysvar.cpp.o CMakeFiles/gdl.dir/io.cpp.o CMakeFiles/gdl.dir/lapack.cpp.o CMakeFiles/gdl.dir/least_squares.cpp.o CMakeFiles/gdl.dir/libinit.cpp.o CMakeFiles/gdl.dir/libinit_ac.cpp.o CMakeFiles/gdl.dir/libinit_cl.cpp.o CMakeFiles/gdl.dir/libinit_gm.cpp.o CMakeFiles/gdl.dir/libinit_jmg.cpp.o CMakeFiles/gdl.dir/libinit_mes.cpp.o CMakeFiles/gdl.dir/libinit_ng.cpp.o CMakeFiles/gdl.dir/libinit_jp.cpp.o CMakeFiles/gdl.dir/list.cpp.o CMakeFiles/gdl.dir/magick_cl.cpp.o CMakeFiles/gdl.dir/math_fun.cpp.o CMakeFiles/gdl.dir/math_fun_ac.cpp.o CMakeFiles/gdl.dir/math_fun_gm.cpp.o CMakeFiles/gdl.dir/math_fun_jmg.cpp.o CMakeFiles/gdl.dir/math_fun_ng.cpp.o CMakeFiles/gdl.dir/math_utl.cpp.o CMakeFiles/gdl.dir/matrix_cholesky.cpp.o CMakeFiles/gdl.dir/matrix_invert.cpp.o CMakeFiles/gdl.dir/mpi.cpp.o CMakeFiles/gdl.dir/ncdf_att_cl.cpp.o CMakeFiles/gdl.dir/ncdf_cl.cpp.o CMakeFiles/gdl.dir/ncdf_dim_cl.cpp.o CMakeFiles/gdl.dir/ncdf_var_cl.cpp.o CMakeFiles/gdl.dir/ncdf4_group.cpp.o CMakeFiles/gdl.dir/new.cpp.o CMakeFiles/gdl.dir/newprognode.cpp.o CMakeFiles/gdl.dir/nullgdl.cpp.o CMakeFiles/gdl.dir/objects.cpp.o CMakeFiles/gdl.dir/ofmt.cpp.o CMakeFiles/gdl.dir/overload.cpp.o CMakeFiles/gdl.dir/plotting_axis.cpp.o CMakeFiles/gdl.dir/plotting_contour.cpp.o CMakeFiles/gdl.dir/plotting_convert_coord.cpp.o CMakeFiles/gdl.dir/plotting_cursor.cpp.o CMakeFiles/gdl.dir/plotting_device.cpp.o CMakeFiles/gdl.dir/plotting_erase.cpp.o CMakeFiles/gdl.dir/plotting_image.cpp.o CMakeFiles/gdl.dir/plotting_map_proj.cpp.o CMakeFiles/gdl.dir/plotting_misc.cpp.o CMakeFiles/gdl.dir/plotting_oplot.cpp.o CMakeFiles/gdl.dir/plotting_plot.cpp.o CMakeFiles/gdl.dir/plotting_plots.cpp.o CMakeFiles/gdl.dir/plotting_polyfill.cpp.o CMakeFiles/gdl.dir/plotting_shade_surf.cpp.o CMakeFiles/gdl.dir/plotting_surface.cpp.o CMakeFiles/gdl.dir/plotting_windows.cpp.o CMakeFiles/gdl.dir/plotting_xyouts.cpp.o CMakeFiles/gdl.dir/plotting.cpp.o CMakeFiles/gdl.dir/print.cpp.o CMakeFiles/gdl.dir/print_tree.cpp.o CMakeFiles/gdl.dir/prognode.cpp.o CMakeFiles/gdl.dir/prognode_lexpr.cpp.o CMakeFiles/gdl.dir/prognodeexpr.cpp.o CMakeFiles/gdl.dir/read.cpp.o CMakeFiles/gdl.dir/semshm.cpp.o CMakeFiles/gdl.dir/sigfpehandler.cpp.o CMakeFiles/gdl.dir/str.cpp.o CMakeFiles/gdl.dir/terminfo.cpp.o CMakeFiles/gdl.dir/topython.cpp.o CMakeFiles/gdl.dir/typetraits.cpp.o CMakeFiles/gdl.dir/widget.cpp.o CMakeFiles/gdl.dir/gdl.cpp.o  -o gdl  -L/usr/openwin/lib/64  antlr/libantlr.a -ldl /usr/lib/64/libncurses.so /usr/lib/64/libform.so /usr/lib/64/libreadline.so /usr/lib/64/libhistory.so /usr/lib/64/libz.so /usr/lib/64/libpng.so /usr/lib/64/libz.so -fopenmp <font size="4"><b>/usr/lib/64/libgsl.so /usr/lib/64/libgslcblas.so</b></font> /usr/lib/64/libplplotd.so /usr/lib/64/libplplotcxxd.so /usr/lib/64/libGraphicsMagick.so /usr/lib/64/libGraphicsMagick++.so -L/usr/lib/amd64 -pthreads -m64 -m64 -L/usr/openwin/lib/64 -lwx_baseu-2.8 -lwx_gtk2u_core-2.8 -lwx_gtk2u_adv-2.8 -lnetcdf /usr/lib/64/libhdf5.so /usr/lib/64/libhdf5_hl.so /usr/lib/64/libhdf5.so /usr/lib/64/libz.so /usr/lib/64/libdl.so /usr/lib/64/libm.so /usr/lib/64/libfftw3.so /usr/lib/64/libfftw3f.so /usr/lib/64/libSM.so /usr/lib/64/libICE.so /usr/lib/64/libX11.so /usr/lib/64/libXext.so -lsocket -lnsl /usr/lib/64/libpng.so /usr/lib/64/libgsl.so /usr/lib/64/libgslcblas.so /usr/lib/64/libplplotd.so /usr/lib/64/libplplotcxxd.so /usr/lib/64/libGraphicsMagick.so /usr/lib/64/libGraphicsMagick++.so -lwx_baseu-2.8 -lwx_gtk2u_core-2.8 -lwx_gtk2u_adv-2.8 -lnetcdf /usr/lib/64/libhdf5_hl.so /usr/lib/64/libdl.so /usr/lib/64/libm.so /usr/lib/64/libfftw3.so /usr/lib/64/libfftw3f.so /usr/lib/64/libSM.so /usr/lib/64/libICE.so /usr/lib/64/libX11.so /usr/lib/64/libXext.so -lsocket -lnsl -Wl,-R/usr/openwin/lib/64:/usr/lib/64:</span><br><br></div><div>but no <span style="font-family:monospace,monospace"><b>libgslcblas.so</b><span class="gmail-"> </span></span>is recorded in the <span style="font-family:monospace,monospace">gdl</span> executable:<br><br><span style="font-family:monospace,monospace">dsend@oi-dev:/projects/oi-userland/components/scientific/gdl$ ldd build/prototype/i386/usr/bin/gdl <br>        libdl.so.1 =>    /usr/lib/64/libdl.so.1<br>        libreadline.so.6 =>      /usr/lib/64/libreadline.so.6<br>        libz.so.1 =>     /usr/lib/64/libz.so.1<br>        libpng16.so.16 =>        /usr/lib/64/libpng16.so.16<br>       <b> libgsl.so.19 =>  /usr/lib/64/libgsl.so.19</b><br>        libplplotd.so.11 =>      /usr/lib/64/libplplotd.so.11<br>        libplplotcxxd.so.10 =>   /usr/lib/64/libplplotcxxd.so.10<br>        libGraphicsMagick++.so.12 =>     /usr/lib/64/libGraphicsMagick++.so.12<br>        libwx_baseu-2.8.so.0 =>  /usr/lib/64/libwx_baseu-2.8.so.0<br>        libwx_gtk2u_core-2.8.so.0 =>     /usr/lib/64/libwx_gtk2u_core-2.8.so.0<br>        libwx_gtk2u_adv-2.8.so.0 =>      /usr/lib/64/libwx_gtk2u_adv-2.8.so.0<br>        libnetcdf.so.11 =>       /usr/lib/64/libnetcdf.so.11<br>        libhdf5.so.10 =>         /usr/lib/64/libhdf5.so.10<br>        libm.so.2 =>     /usr/lib/64/libm.so.2<br>        libfftw3.so.3 =>         /usr/lib/64/libfftw3.so.3<br>        libfftw3f.so.3 =>        /usr/lib/64/libfftw3f.so.3<br>        libX11.so.4 =>   /usr/openwin/lib/64/libX11.so.4<br>        libsocket.so.1 =>        /usr/lib/64/libsocket.so.1<br>        libnsl.so.1 =>   /usr/lib/64/libnsl.so.1<br>        libstdc++.so.6 =>        /usr/lib/64/libstdc++.so.6<br>        librt.so.1 =>    /usr/lib/64/librt.so.1<br>        libgomp.so.1 =>  /usr/lib/64/libgomp.so.1<br>        libgcc_s.so.1 =>         /usr/lib/64/libgcc_s.so.1<br>        libpthread.so.1 =>       /usr/lib/64/libpthread.so.1<br>        libc.so.1 =>     /usr/lib/64/libc.so.1<br>        libtermcap.so.1 =>       /lib/64/libtermcap.so.1<br>        libltdl.so.7 =>  /usr/lib/64/libltdl.so.7<br>        libcsirocsa.so.0 =>      /usr/lib/64/libcsirocsa.so.0<br>        libqsastime.so.0 =>      /usr/lib/64/libqsastime.so.0<br>        libGraphicsMagick.so.3 =>        /usr/lib/amd64/libGraphicsMagick.so.3<br>        libgtk-x11-2.0.so.0 =>   /usr/lib/64/libgtk-x11-2.0.so.0<br>        libgdk-x11-2.0.so.0 =>   /usr/lib/64/libgdk-x11-2.0.so.0<br>        libXinerama.so.1 =>      /usr/lib/64/libXinerama.so.1<br>        libgdk_pixbuf-2.0.so.0 =>        /usr/lib/64/libgdk_pixbuf-2.0.so.0<br>        libpango-1.0.so.0 =>     /usr/lib/64/libpango-1.0.so.0<br>        libgobject-2.0.so.0 =>   /usr/lib/64/libgobject-2.0.so.0<br>        libglib-2.0.so.0 =>      /usr/lib/64/libglib-2.0.so.0<br>        libXxf86vm.so.1 =>       /usr/lib/64/libXxf86vm.so.1<br>        libSM.so.6 =>    /usr/lib/64/libSM.so.6<br>        libjpeg.so.62 =>         /usr/lib/64/libjpeg.so.62<br>        libtiff.so.5 =>  /usr/lib/64/libtiff.so.5<br>        libSDL-1.2.so.0 =>       /usr/lib/64/libSDL-1.2.so.0<br>        libhdf5_hl.so.10 =>      /usr/lib/64/libhdf5_hl.so.10<br>        libcurl.so.4 =>  /usr/lib/64/libcurl.so.4<br>        libxcb.so.1 =>   /usr/lib/64/libxcb.so.1<br>        libXext.so.0 =>  /usr/lib/64/libXext.so.0<br>        libmp.so.2 =>    /lib/64/libmp.so.2<br>        libmd.so.1 =>    /lib/64/libmd.so.1<br>        libwebp.so.5 =>  /usr/lib/64/libwebp.so.5<br>        liblcms2.so.2 =>         /usr/lib/64/liblcms2.so.2<br>        libfreetype.so.6 =>      /usr/lib/64/libfreetype.so.6<br>        libjasper.so.1 =>        /usr/lib/64/libjasper.so.1<br>        libjpeg.so.8 =>  /usr/lib/libjpeg8-turbo/lib/amd64/libjpeg.so.8<br>        libbz2.so.1 =>   /usr/lib/64/libbz2.so.1<br>        libxml2.so.2 =>  /usr/lib/64/libxml2.so.2<br>        libgmodule-2.0.so.0 =>   /usr/lib/amd64/libgmodule-2.0.so.0<br>        libpangocairo-1.0.so.0 =>        /usr/lib/amd64/libpangocairo-1.0.so.0<br>        libXfixes.so.1 =>        /usr/lib/amd64/libXfixes.so.1<br>        libatk-1.0.so.0 =>       /usr/lib/amd64/libatk-1.0.so.0<br>        libcairo.so.2 =>         /usr/lib/amd64/libcairo.so.2<br>        libgio-2.0.so.0 =>       /usr/lib/amd64/libgio-2.0.so.0<br>        libpangoft2-1.0.so.0 =>  /usr/lib/amd64/libpangoft2-1.0.so.0<br>        libfontconfig.so.1 =>    /usr/lib/amd64/libfontconfig.so.1<br>        libXrender.so.1 =>       /usr/lib/64/libXrender.so.1<br>        libXrandr.so.2 =>        /usr/lib/64/libXrandr.so.2<br>        libXcursor.so.1 =>       /usr/lib/64/libXcursor.so.1<br>        libXcomposite.so.1 =>    /usr/lib/64/libXcomposite.so.1<br>        libXdamage.so.1 =>       /usr/lib/64/libXdamage.so.1<br>        libffi.so.6 =>   /usr/lib/amd64/libffi.so.6<br>        libICE.so.6 =>   /usr/lib/64/libICE.so.6<br>        liblzma.so.5 =>  /usr/lib/64/liblzma.so.5<br>        libnghttp2.so.14 =>      /usr/lib/64/libnghttp2.so.14<br>        libssh2.so.1 =>  /usr/lib/64/libssh2.so.1<br>        libssl.so.1.0.0 =>       /lib/64/libssl.so.1.0.0<br>        libcrypto.so.1.0.0 =>    /lib/64/libcrypto.so.1.0.0<br>        libgss.so.1 =>   /usr/lib/64/libgss.so.1<br>        liblber-2.4.so.2 =>      /usr/lib/64/liblber-2.4.so.2<br>        libldap_r-2.4.so.2 =>    /usr/lib/64/libldap_r-2.4.so.2<br>        libXau.so.6 =>   /usr/lib/amd64/libXau.so.6<br>        libXdmcp.so.6 =>         /usr/lib/amd64/libXdmcp.so.6<br>        libharfbuzz.so.0 =>      /usr/lib/64/libharfbuzz.so.0<br>        libpixman-1.so.0 =>      /usr/lib/64/libpixman-1.so.0<br>        libEGL.so.1 =>   /usr/lib/64/libEGL.so.1<br>        libX11-xcb.so.1 =>       /usr/lib/64/libX11-xcb.so.1<br>        libxcb-render.so.0 =>    /usr/lib/64/libxcb-render.so.0<br>        libGL.so.1 =>    /usr/lib/64/libGL.so.1<br>        libresolv.so.2 =>        /usr/lib/amd64/libresolv.so.2<br>        libexpat.so.1 =>         /usr/lib/64/libexpat.so.1<br>        libsasl.so.1 =>  /usr/lib/amd64/libsasl.so.1<br>        libgraphite2.so.3 =>     /usr/lib/64/libgraphite2.so.3<br>        libxcb-dri2.so.0 =>      /usr/lib/64/libxcb-dri2.so.0<br>        libxcb-xfixes.so.0 =>    /usr/lib/64/libxcb-xfixes.so.0<br>        libxcb-dri3.so.0 =>      /usr/lib/64/libxcb-dri3.so.0<br>        libxcb-present.so.0 =>   /usr/lib/64/libxcb-present.so.0<br>        libxcb-sync.so.1 =>      /usr/lib/64/libxcb-sync.so.1<br>        libxshmfence.so.1 =>     /usr/lib/64/libxshmfence.so.1<br>        libdrm.so.2 =>   /usr/lib/xorg/amd64/libdrm.so.2<br>        libglapi.so.0 =>         /usr/lib/amd64/libglapi.so.0<br>        libxcb-glx.so.0 =>       /usr/lib/amd64/libxcb-glx.so.0<br>        libdevinfo.so.1 =>       /lib/64/libdevinfo.so.1<br>        libnvpair.so.1 =>        /lib/64/libnvpair.so.1<br>        libsec.so.1 =>   /lib/64/libsec.so.1<br>        libgen.so.1 =>   /lib/64/libgen.so.1<br>        libavl.so.1 =>   /lib/64/libavl.so.1<br>        libidmap.so.1 =>         /usr/lib/64/libidmap.so.1<br>        libuutil.so.1 =>         /lib/64/libuutil.so.1<br>        libcurses.so.1 =>        /lib/64/libcurses.so.1<br>        libXevie.so.1 =>         /usr/lib/64/libXevie.so.1<br>        libXss.so.1 =>   /usr/lib/64/libXss.so.1</span><br></div><div><br></div><div>But that's not the end. When I copy the very same linking command executed by CMake and execute it manually I get what I expect:<br><span style="font-family:monospace,monospace"><br>dsend@oi-dev:/projects/oi-userland/components/scientific/gdl/build/amd64/src$ ldd gdl <br>        libdl.so.1 =>    /usr/lib/64/libdl.so.1<br>        libncurses.so.5 =>       /usr/lib/64/libncurses.so.5<br>        libform.so.1 =>  /usr/lib/64/libform.so.1<br>        libreadline.so.6 =>      /usr/lib/64/libreadline.so.6<br>        libhistory.so.6 =>       /usr/lib/64/libhistory.so.6<br>        libz.so.1 =>     /usr/lib/64/libz.so.1<br>        libpng16.so.16 =>        /usr/lib/64/libpng16.so.16<br>        <b>libgsl.so.19 =>  /usr/lib/64/libgsl.so.19</b><br>       <b> libgslcblas.so.0 =>      /usr/lib/64/libgslcblas.so.0</b><br>        libplplotd.so.11 =>      /usr/lib/64/libplplotd.so.11<br>        libplplotcxxd.so.10 =>   /usr/lib/64/libplplotcxxd.so.10</span><br><br><br></div><div>and boom!  <span style="font-family:monospace,monospace"><b>libgslcblas.so<span class="gmail-"> </span></b></span>appears as expected and tests pass.<br></div><div><br></div><div>I ran out of ideas why this happens. Maybe I spent too much time on this problem and cannot see anything right now.<br></div><div>Maybe I'm missing something obvious so another pair of eyes would be great :) <br>Any ideas?<br><br></div><div>You can find the component package files here: <a href="https://github.com/dsendkowski/oi-userland/tree/gdl">https://github.com/dsendkowski/oi-userland/tree/gdl<br></a><br></div><div><br></div><div><br></div><div>regards,<br></div><div>Darek<br><br></div><div><br><br><br></div><div><br><br><br><br></div></div>