Date: Mon, 23 Jul 2007 18:09:38 +0200 From: "Arjan Gijsberts" <a.gijsberts@student.tudelft.nl> To: <freebsd-ports@freebsd.org> Subject: Problem linking math-atlas libraries after update Message-ID: <001201c7cd43$e315d430$6f02020a@LaptopP3>
next in thread | raw e-mail | index | archive | help
Hi, Yesterday I have upgraded math/atlas-devel to version atlas3.7.34. Since then I receive several errors when trying to link my application with the libraries 'cblas' and 'clapack'. Needless to say, prior to the update everything was linking just fine. The errors that I get are 'undefined reference' for practically any cblas/lapack routine that I use (see below). I am compiling with the following libraries (tested for both g++ and g++42): g++ -I. -I/usr/local/include -L/usr/local/lib -lalapack -lf77blas -lcblas -latlas -lg2c -lm I have tried various variants of the order (although this should be the recommend one), with no success. Would anyone know how to analyze and/or resolve this problem? Any help will be greatly appreciated! Cheers, Arjan Gijsberts PS: I apologize if this mailinglist turns out not to be the right place to issue this question. --- errors --- liblssvm/LSSVM.o(.gnu.linkonce.t._ZN5boost7numeric8bindings5atlas6detail5getrfE11CBLAS_ORDERiiPdiPi+0x1c): In function `boost::numeric::bindings::atlas::detail::getrf(CBLAS_ORDER, int, int, double*, int, int*)': : undefined reference to `clapack_dgetrf' liblssvm/LSSVM.o(.gnu.linkonce.t._ZN5boost7numeric8bindings5atlas6detail5getriE11CBLAS_ORDERiPdiPKi+0x19): In function `boost::numeric::bindings::atlas::detail::getri(CBLAS_ORDER, int, double*, int, int const*)': : undefined reference to `clapack_dgetri' liblssvm/LSSVM.o(.gnu.linkonce.t._ZN5boost7numeric8bindings5atlas6detail4gemmE11CBLAS_ORDER15CBLAS_TRANSPOSES5_iiidPKdiS7_idPdi+0x37): In function `boost::numeric::bindings::atlas::detail::gemm(CBLAS_ORDER, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, double, double const*, int, double const*, int, double, double*, int)': : undefined reference to `cblas_dgemm' liblssvm/LSSVM.o(.gnu.linkonce.t._ZN5boost7numeric8bindings5atlas6detail4gemvE11CBLAS_ORDER15CBLAS_TRANSPOSEiidPKdiS7_idPdi+0x34): In function `boost::numeric::bindings::atlas::detail::gemv(CBLAS_ORDER, CBLAS_TRANSPOSE, int, int, double, double const*, int, double const*, int, double, double*, int)': : undefined reference to `cblas_dgemv' liblssvm/LSSVM.o(.gnu.linkonce.t._ZN5boost7numeric8bindings5atlas6detail5potrfE11CBLAS_ORDER10CBLAS_UPLOiPdi+0x19): In function `boost::numeric::bindings::atlas::detail::potrf(CBLAS_ORDER, CBLAS_UPLO, int, double*, int)': : undefined reference to `clapack_dpotrf' liblssvm/LSSVM.o(.gnu.linkonce.t._ZN5boost7numeric8bindings5atlas6detail5potriE11CBLAS_ORDER10CBLAS_UPLOiPdi+0x19): In function `boost::numeric::bindings::atlas::detail::potri(CBLAS_ORDER, CBLAS_UPLO, int, double*, int)': : undefined reference to `clapack_dpotri' liblssvm/LSSVM.o(.gnu.linkonce.t._ZN5boost7numeric8bindings5atlas6detail4symmE11CBLAS_ORDER10CBLAS_SIDE10CBLAS_UPLOiidPKdiS8_idPdi+0x37): In function `boost::numeric::bindings::atlas::detail::symm(CBLAS_ORDER, CBLAS_SIDE, CBLAS_UPLO, int, int, double, double const*, int, double const*, int, double, double*, int)': : undefined reference to `cblas_dsymm' liblssvm/Kernel.o(.gnu.linkonce.t._ZN5boost7numeric8bindings5atlas6detail3dotEiPKdiS5_i+0x19): In function `boost::numeric::bindings::atlas::detail::dot(int, double const*, int, double const*, int)': : undefined reference to `cblas_ddot' ---------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001201c7cd43$e315d430$6f02020a>