Problem with linking to gsl library

Added by Juri Fiaschi 2 months ago

Hi, I am experiencing a problem in the compilation of the RESUMMINO code on IRIDIS5.
The code requires the following modules, that I am loading before the compilation:
cmake, boost, gsl

After pre-configuring the installation with cmake, I proceed with the compilation and everything goes smooth until the end when I get the following message:

/usr/bin/ld: warning:, needed by //usr/lib64/atlas/, may conflict with
liblibresummino.a( In function `Fit(double*, double*, int, double, double, double, double, double, double)': undefined reference to `gsl_multifit_fdfsolver_jac'
collect2: error: ld returned 1 exit status
make2: * [bin/resummino] Error 1
[src/CMakeFiles/resummino.dir/all] Error 2
make: *
* [all] Error 2

it is very weird that the "gsl_multifit_fdfsolver_jac" function is not found, as it is definitely there.
I made sure the gsl path is correct (also no problem has been found during the compilation where several gsl functions are called frequently in the code).
I have tried different versions of gsl as well, all giving the same error.

Please provide with some support.
If more info are needed, just let me know.