From owner-freebsd-ports@FreeBSD.ORG Mon Jul 23 16:35:40 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7181E16A474 for ; Mon, 23 Jul 2007 16:35:40 +0000 (UTC) (envelope-from a.gijsberts@student.tudelft.nl) Received: from mailservice.tudelft.nl (mailservice.tudelft.nl [130.161.131.5]) by mx1.freebsd.org (Postfix) with ESMTP id 0EAA913C4A7 for ; Mon, 23 Jul 2007 16:35:39 +0000 (UTC) (envelope-from a.gijsberts@student.tudelft.nl) Received: from localhost (localhost [127.0.0.1]) by amavis (Postfix) with ESMTP id AA38F222F30 for ; Mon, 23 Jul 2007 18:11:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at tudelft.nl X-Spam-Flag: NO X-Spam-Score: -1.188 X-Spam-Level: X-Spam-Status: No, score=-1.188 tagged_above=-99 required=5 tests=[AWL=1.300, BAYES_00=-2.599, PROLO_LEO3=0.01, RDNS_NONE=0.1, STOX_REPLY_TYPE=0.001] Received: from mailservice.tudelft.nl ([127.0.0.1]) by localhost (tudelft.nl [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id R1wehVv6kE9g for ; Mon, 23 Jul 2007 18:11:21 +0200 (CEST) Received: from smtp-a.tudelft.nl (smtp-a.tudelft.nl [130.161.129.18]) by mx0.tudelft.nl (Postfix) with ESMTP id E1BEA222F10 for ; Mon, 23 Jul 2007 18:11:20 +0200 (CEST) Received: from LaptopP3 (unknown [217.201.139.117]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by smtp-a.tudelft.nl (Postfix) with ESMTP id D7898B3A62 for ; Mon, 23 Jul 2007 18:11:16 +0200 (CEST) Message-ID: <001201c7cd43$e315d430$6f02020a@LaptopP3> From: "Arjan Gijsberts" To: Date: Mon, 23 Jul 2007 18:09:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Subject: Problem linking math-atlas libraries after update X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2007 16:35:40 -0000 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' ---------