Undefined references in svd_sparse_array.f

TimR
2012-11-20
2014-04-18
  • TimR
    TimR
    2012-11-20

    I get the following (below) undefined references. Everything is installed and in path. Any ideas on how to resolve these? Thank you.

    The arpack install is the following -

    Arpack installed - (on opensuse 12.2 and its build service repos)
      libarpack2-2.1-11.1.x86_64.rpm
      libarpack2-devel-2.1-11.1.x86_64.rpm

    …the errors …

    g++ -O2 -Wno-deprecated -I/usr/include -o svd_sparse_array-O2 svd_sparse_array.cc -

    L. -L/usr/lib64 -lpetey-O2 \\

            -L/usr/lib64 -lsparse-O2 -larpack -lgfortran

    ./libsparse-O2.a(svd_sparse_array-O2.o): In function `svd_sparse_array\':

    svd_sparse_array.f:(.text+0x445): undefined reference to `ssaupd\'

    svd_sparse_array.f:(.text+0x783): undefined reference to `sseupd\'

    svd_sparse_array.f:(.text+0xa1a): undefined reference to `saxpy\'

    svd_sparse_array.f:(.text+0xa51): undefined reference to `snrm2\'

    svd_sparse_array.f:(.text+0xb30): undefined reference to `smout\'

    /usr/lib64/libarpack.so: undefined reference to `slamch_\'

    /usr/lib64/libarpack.so: undefined reference to `cgemv_\'

    /usr/lib64/libarpack.so: undefined reference to `cscal_\'

    /usr/lib64/libarpack.so: undefined reference to `sdot_\'

    /usr/lib64/libarpack.so: undefined reference to `zlascl_\'

    /usr/lib64/libarpack.so: undefined reference to `dtrmm_\'

    /usr/lib64/libarpack.so: undefined reference to `strevc_\'

    /usr/lib64/libarpack.so: undefined reference to `dlartg_\'

    /usr/lib64/libarpack.so: undefined reference to `snrm2_\'

    /usr/lib64/libarpack.so: undefined reference to `clascl_\'

    /usr/lib64/libarpack.so: undefined reference to `dswap_\'

    /usr/lib64/libarpack.so: undefined reference to `slarfg_\'

    /usr/lib64/libarpack.so: undefined reference to `dger_\'

    /usr/lib64/libarpack.so: undefined reference to `slanst_\'

    /usr/lib64/libarpack.so: undefined reference to `slaev2_\'

    /usr/lib64/libarpack.so: undefined reference to `caxpy_\'

    /usr/lib64/libarpack.so: undefined reference to `dlarfg_\'

    /usr/lib64/libarpack.so: undefined reference to `zscal_\'

    /usr/lib64/libarpack.so: undefined reference to `sswap_\'

    /usr/lib64/libarpack.so: undefined reference to `dlabad_\'

    /usr/lib64/libarpack.so: undefined reference to `daxpy_\'

    /usr/lib64/libarpack.so: undefined reference to `dgeqr2_\'

    /usr/lib64/libarpack.so: undefined reference to `dsteqr_\'

    /usr/lib64/libarpack.so: undefined reference to `clartg_\'

    /usr/lib64/libarpack.so: undefined reference to `zgeqr2_\'

    /usr/lib64/libarpack.so: undefined reference to `slarf_\'

    /usr/lib64/libarpack.so: undefined reference to `strsen_\'

    /usr/lib64/libarpack.so: undefined reference to `sorm2r_\'

    /usr/lib64/libarpack.so: undefined reference to `cgeqr2_\'

    /usr/lib64/libarpack.so: undefined reference to `slasr_\'

    /usr/lib64/libarpack.so: undefined reference to `saxpy_\'

    /usr/lib64/libarpack.so: undefined reference to `dnrm2_\'

    /usr/lib64/libarpack.so: undefined reference to `ctrmm_\'

    /usr/lib64/libarpack.so: undefined reference to `dtrevc_\'

    /usr/lib64/libarpack.so: undefined reference to `clarnv_\'

    /usr/lib64/libarpack.so: undefined reference to `srot_\'

    /usr/lib64/libarpack.so: undefined reference to `dlanv2_\'

    /usr/lib64/libarpack.so: undefined reference to `ccopy_\'

    /usr/lib64/libarpack.so: undefined reference to `zlahqr_\'

    /usr/lib64/libarpack.so: undefined reference to `zgeru_\'

    /usr/lib64/libarpack.so: undefined reference to `sscal_\'

    /usr/lib64/libarpack.so: undefined reference to `dlanst_\'

    /usr/lib64/libarpack.so: undefined reference to `dcopy_\'

    /usr/lib64/libarpack.so: undefined reference to `dlarnv_\'

    /usr/lib64/libarpack.so: undefined reference to `slacpy_\'

    /usr/lib64/libarpack.so: undefined reference to `scnrm2_\'

    /usr/lib64/libarpack.so: undefined reference to `clacpy_\'

    /usr/lib64/libarpack.so: undefined reference to `dlasr_\'

    /usr/lib64/libarpack.so: undefined reference to `zlarnv_\'

    /usr/lib64/libarpack.so: undefined reference to `ssteqr_\'

    /usr/lib64/libarpack.so: undefined reference to `zlartg_\'

    /usr/lib64/libarpack.so: undefined reference to `cgeru_\'

    /usr/lib64/libarpack.so: undefined reference to `dscal_\'

    /usr/lib64/libarpack.so: undefined reference to `zdscal_\'

    /usr/lib64/libarpack.so: undefined reference to `strmm_\'

    /usr/lib64/libarpack.so: undefined reference to `ctrevc_\'

    /usr/lib64/libarpack.so: undefined reference to `sgeqr2_\'

    /usr/lib64/libarpack.so: undefined reference to `dtrsen_\'

    /usr/lib64/libarpack.so: undefined reference to `zgemv_\'

    /usr/lib64/libarpack.so: undefined reference to `ddot_\'

    /usr/lib64/libarpack.so: undefined reference to `zlaset_\'

    /usr/lib64/libarpack.so: undefined reference to `dlaset_\'

    /usr/lib64/libarpack.so: undefined reference to `ztrevc_\'

    /usr/lib64/libarpack.so: undefined reference to `claset_\'

    /usr/lib64/libarpack.so: undefined reference to `zunm2r_\'

    /usr/lib64/libarpack.so: undefined reference to `cunm2r_\'

    /usr/lib64/libarpack.so: undefined reference to `scopy_\'

    /usr/lib64/libarpack.so: undefined reference to `zdotc_\'

    /usr/lib64/libarpack.so: undefined reference to `clanhs_\'

    /usr/lib64/libarpack.so: undefined reference to `csscal_\'

    /usr/lib64/libarpack.so: undefined reference to `zlacpy_\'

    /usr/lib64/libarpack.so: undefined reference to `dlascl_\'

    /usr/lib64/libarpack.so: undefined reference to `dorm2r_\'

    /usr/lib64/libarpack.so: undefined reference to `slanhs_\'

    /usr/lib64/libarpack.so: undefined reference to `zaxpy_\'

    /usr/lib64/libarpack.so: undefined reference to `clahqr_\'

    /usr/lib64/libarpack.so: undefined reference to `dlacpy_\'

    /usr/lib64/libarpack.so: undefined reference to `zlanhs_\'

    /usr/lib64/libarpack.so: undefined reference to `ctrsen_\'

    /usr/lib64/libarpack.so: undefined reference to `slabad_\'

    /usr/lib64/libarpack.so: undefined reference to `dlapy2_\'

    /usr/lib64/libarpack.so: undefined reference to `dlaev2_\'

    /usr/lib64/libarpack.so: undefined reference to `slahqr_\'

    /usr/lib64/libarpack.so: undefined reference to `slapy2_\'

    /usr/lib64/libarpack.so: undefined reference to `ztrmm_\'

    /usr/lib64/libarpack.so: undefined reference to `dgemv_\'

    /usr/lib64/libarpack.so: undefined reference to `sgemv_\'

    /usr/lib64/libarpack.so: undefined reference to `slanv2_\'

    /usr/lib64/libarpack.so: undefined reference to `dlamch_\'

    /usr/lib64/libarpack.so: undefined reference to `slarnv_\'

    /usr/lib64/libarpack.so: undefined reference to `cdotc_\'

    /usr/lib64/libarpack.so: undefined reference to `sger_\'

    /usr/lib64/libarpack.so: undefined reference to `dlanhs_\'

    /usr/lib64/libarpack.so: undefined reference to `dlahqr_\'

    /usr/lib64/libarpack.so: undefined reference to `dznrm2_\'

    /usr/lib64/libarpack.so: undefined reference to `slascl_\'

    /usr/lib64/libarpack.so: undefined reference to `zcopy_\'

    /usr/lib64/libarpack.so: undefined reference to `slartg_\'

    /usr/lib64/libarpack.so: undefined reference to `slaset_\'

    /usr/lib64/libarpack.so: undefined reference to `ztrsen_\'

    /usr/lib64/libarpack.so: undefined reference to `drot_\'

    /usr/lib64/libarpack.so: undefined reference to `dlarf_\'

    collect2: error: ld returned 1 exit status

    make: ***  Error 1

    make: Leaving directory `/home/treyes/projects/Traj/libpetey/sparse\'

    make: ***  Error 2

     
  • Peter Mills
    Peter Mills
    2014-04-18

    This issue has been resolved via private e-mail messaging.