CC: | jonathan [...] leto.net,thierry.moisan [...] gmail.com |
Subject: | Problem with gsl_set_error_handler_off() and static gsl library |
If Math::GSL is built against a static gsl library,
gsl_set_error_handler_off() doesn't work as expected. Seems that
calling gsl_set_error_handler_off() will turn off the error handler for
the Math::GSL::Errno package only. As far as all other packages are
concerned, the default error handler is still on.
The best solution at the moment is to build Math::GSL against a shared
gsl library - but if you really must build against a static library
then, for some ideas on how to approach this issue, see
the "gsl_set_error_handler_off() and static gsl library" thread on math-
gsl-dev ( http://groups.google.com/group/math-gsl-
dev/t/fdd82288ee21f4f4?hl=en ). One simple but tedious solution
mentioned there (with patches for the Histogram, Histogram2D and SF
packages) is to create a gsl_set_error_handler_off function for each
and every package - so that each package is then capable of turning off
the default error handler.
OTOH, if you're quite happy to leave the default error handler on,
there's no need to take any action at all.
Cheers,
Rob