[Pkg-scicomp-devel] Bug#410883: Linking libufsparse.so requires
	explicit linking of BLAS and C math libraries
    LUK ShunTim 
    shuntim.luk at polyu.edu.hk
       
    Wed Feb 14 10:01:23 CET 2007
    
    
  
Package: libufsparse
Version: 1.2-7
Severity: important
Hello,
The current build of libufsparse.so requires explicit linking with BLAS and the 
C math library when it is used. The result of compiling umfpack_di_demo.c 
without such explicit linking showed:
<quote>
$ gcc -I/usr/include/ufsparse -o umfpack_di_demo umfpack_di_demo.c \ 
      -L/usr/lib -lumfpack -lamd
/usr/lib/libumfpack.so: undefined reference to `sqrt'
/usr/lib/libumfpack.so: undefined reference to `dscal_'
/usr/lib/libumfpack.so: undefined reference to `dgemv_'
/usr/lib/libumfpack.so: undefined reference to `ztrsv_'
/usr/lib/libumfpack.so: undefined reference to `pow'
/usr/lib/libumfpack.so: undefined reference to `dgemm_'
/usr/lib/libumfpack.so: undefined reference to `log10'
/usr/lib/libumfpack.so: undefined reference to `zgemv_'
/usr/lib/libumfpack.so: undefined reference to `dtrsm_'
/usr/lib/libumfpack.so: undefined reference to `dger_'
/usr/lib/libumfpack.so: undefined reference to `zgeru_'
/usr/lib/libumfpack.so: undefined reference to `dtrsv_'
/usr/lib/libumfpack.so: undefined reference to `zgemm_'
/usr/lib/libumfpack.so: undefined reference to `ztrsm_'
collect2: ld returned 1 exit status
</quote>
It'd be much more convenient for the user if such dependency is automatically 
taken care of so that just linking with libufsparse is sufficient. 
Regards,
ST 
-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages libufsparse depends on:
ii  atlas3-sse2              3.6.0-20.5      Automatically Tuned Linear Algebra
ii  lapack3                  3.0.20000531a-6 library of linear algebra routines
ii  libc6                    2.3.6.ds1-11    GNU C Library: Shared libraries
ii  refblas3                 1.2-8           Basic Linear Algebra Subroutines 3
libufsparse recommends no packages.
-- no debconf information
    
    
More information about the Pkg-scicomp-devel
mailing list