Dirk Eddelbuettel a écrit :
> On 18 December 2007 at 12:03, Aurelien Jarno wrote:
> | Package: libgsl0ldbl
> | Version: 1.10-2
> | Severity: serious
> | 
> | libgsl is using symbols from libcblas.so, but is not linked with it. That
> | breaks at link time when -Wl,--as-needed is used, which is now the
> | default for programs using qmake.
> 
> AFAIK that that is a feature as the _binaries_ building against GSL can use
> Atlas or the native blas:

How is that practically done? Does both libraries have the same ABI?

> [EMAIL PROTECTED]:~> ldd /usr/bin/gsl-histogram
>         libgsl.so.0 => /usr/lib/libgsl.so.0 (0xb7def000)
>         libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0xb7dbd000)
>         libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7d97000)
>         libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7c4a000)
>         /lib/ld-linux.so.2 (0xb7fd5000)
> [EMAIL PROTECTED]:~> ldd -r /usr/bin/gsl-histogram
>         libgsl.so.0 => /usr/lib/libgsl.so.0 (0xb7dc5000)
>         libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0xb7d93000)
>         libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7d6d000)
>         libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7c20000)
>         /lib/ld-linux.so.2 (0xb7fab000)

The problem does not appear at runtime, but at link time.

> Also note
> 
> [EMAIL PROTECTED]:~> gsl-config --libs
> -L/usr/lib -lgsl -lgslcblas -lm
> [EMAIL PROTECTED]:~>                       

Unfortunately it is not enough when built with -Wl,--as-needed. If the
binaries does not uses any cblas symbol, the link fails. See for example
bug#456872.

> Isn't what you're asking for is sticking libgslcblas back into GSL?  Upstream
> would disagree.

If gsl uses symbols from cblas, it has to be linked with it. In case you
want to be able to use two different implementations of blas, I guess
the best is too ship two flavour of gsl.

-- 
  .''`.  Aurelien Jarno             | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [EMAIL PROTECTED]         | [EMAIL PROTECTED]
   `-    people.debian.org/~aurel32 | www.aurel32.net



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to