From owner-freebsd-ports@FreeBSD.ORG Tue Aug 31 19:06:34 2010 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 7289A10656AA for ; Tue, 31 Aug 2010 19:06:34 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0A6008FC08 for ; Tue, 31 Aug 2010 19:06:33 +0000 (UTC) Received: by wwb39 with SMTP id 39so46845wwb.1 for ; Tue, 31 Aug 2010 12:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to:date :message-id:subject:from:to:cc:content-type; bh=qZevNmucItyaJJsmagecxHSy2slU9RiHzKqDpon0L38=; b=YqgkyFevfWIIxlk7vYO/M9A8hzBUQjoRfINzhcuvSN8hFdevpkO0R22pUYL/TeCQLH xggOzSmeZXbwxgtsgQLTtZdhrSkvzvzjxeYOgk8edAWAOxr0LPRMdgxvm2CZRZZJkh47 ejOVnGQwumz3A8vM712Z11B4qFwYiNkLqXoMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=VDP0VZK+3F9oYBfdw3xR4vquQm75hIKnmbhrztGXCkwtJ55/LJSSMnz8H2IX7h52dl Er8KO7UbsQ9NRBb9IvImENUgBxR7h2X080CkYsCbgqr4VgCp+//zh2NwQ858E/LQCTRz fI2F0if9DRyjhTEAGWcxEa8/VVuJUoo4NCnmE= MIME-Version: 1.0 Received: by 10.227.142.139 with SMTP id q11mr7107835wbu.103.1283281592926; Tue, 31 Aug 2010 12:06:32 -0700 (PDT) Received: by 10.216.63.146 with HTTP; Tue, 31 Aug 2010 12:06:32 -0700 (PDT) Date: Tue, 31 Aug 2010 19:06:32 +0000 Message-ID: From: "b. f." To: jhell Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports@FreeBSD.org Subject: Re: math/blas linking to gfortran with LDADD?= -lgfortran X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 19:06:34 -0000 >The subject listed port fails to link during an upgrade from the >previous version. Looking into this further libblas.so.2 without being Would you elaborate, please? Where is a transcript showing the linking failure? Would you mail it to me off-list? >linked to gfortran is correct as in the already installed previous >version installed inspected with ldd(1) shows the same linking as the >new version without the -lgfortran linker flags. > I don't find this to be the case. Perhaps you could provide listings for `ldd -a /usr/local/lib/libblas.so.2`, `objdump -x /usr/local/lib/libblas.so.2`, and `make -C /usr/ports/math/blas -v -d l deinstall clean all`, with and without your change, off-list? >Attached is the patch that solves the linking problem. I do not see any >dependents listed for this port for any of the gcc* ports that can be >installed so therefore I have removed the -lgfortran from LDADD. ? USE_FORTRAN=yes ==> USE_GCC=4.4 You don't see any relevant undefined symbols in the blas libraries? With regards to your statements about math/lapack and profiling: it has been the case for some time that this port has built and installed these libraries by default, perhaps because this port has mainly been used by people concerned about numerical linear algebra and concrete measures of performance. I recently added the statement you quoted to allow users to avoid these libraries -- it intentionally mirrors the similar statement in the allied port math/blas, where the form is is dictated by the use of bsd.lib.mk to build the libraries. Given the typical use of these ports, I don't think it is unreasonable to enable profiling libraries by default. But if you don't like it, you can now easily opt out. Regards, b.