[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#728368: ITP: cpl-plugin-xsh -- ESO data reduction pipeline for XSHOOTER



On 01.11.2013 16:01, Ole Streicher wrote:
> Hi Julian,
> 
> after some code checking, I found out the following:
> 
> Only xsh_subtract_sky_single.c uses lapack, (functions SPBTRF and
> SPBTRS). They directly call the Fortran routines, without any conversion
> (see line 354f.), so in principle only lapack is needed; neither clapack
> nor lapacke. The call is however not portable and is bound to the
> specific Fortran convention (lower characters, one underscore etc),
> which is ugly but works for Debian (and Ubuntu).

its only used for a cholesky factorization in one place?
weird that functionality is available in CPL via cpl_solve{,_normal}
(maybe a bit slower).

> 
> So, in principle one could just link to lapack; however I could not find
> out how to do this (liblapack does not provide a liblapack.so). Linking
> to liblapacke works as a workaround on Debian unstable

liblapack-dev provides liblapack.so via the alternatives system.

> 
> On Ubuntu saucy, I have to add a "--no-as-needed" to the linker flags to
> get it linked. Since you also contributed to the lapack package: do you
> have an idea what happens there on Ubuntu? Is it wise to just add this flag?

libraries need to be placed behind objects needing them on the command line.
Make sure your libraries are full linked (libxsh in this case), if one
is not you can't link dependencies of this library without no-as-needed.


Reply to: